LSSTApplications  10.0+286,10.0+36,10.0+46,10.0-2-g4f67435,10.1+152,10.1+37,11.0,11.0+1,11.0-1-g47edd16,11.0-1-g60db491,11.0-1-g7418c06,11.0-2-g04d2804,11.0-2-g68503cd,11.0-2-g818369d,11.0-2-gb8b8ce7
LSSTDataManagementBasePackage
Public Types | Public Member Functions | Private Attributes | List of all members
lsst::afw::table::detail::FlagExtractor Struct Reference

Functor to compute a flag bit, used to create an ndarray expression template for flag columns. More...

#include <BaseColumnView.h>

Public Types

typedef Field< Flag >::Element argument_type
 
typedef bool result_type
 

Public Member Functions

result_type operator() (argument_type element) const
 
 FlagExtractor (Key< Flag > const &key)
 

Private Attributes

argument_type _mask
 

Detailed Description

Functor to compute a flag bit, used to create an ndarray expression template for flag columns.

Definition at line 12 of file BaseColumnView.h.

Member Typedef Documentation

Definition at line 13 of file BaseColumnView.h.

Definition at line 14 of file BaseColumnView.h.

Constructor & Destructor Documentation

lsst::afw::table::detail::FlagExtractor::FlagExtractor ( Key< Flag > const &  key)
inlineexplicit

Definition at line 18 of file BaseColumnView.h.

18 : _mask(argument_type(1) << key.getBit()) {}

Member Function Documentation

result_type lsst::afw::table::detail::FlagExtractor::operator() ( argument_type  element) const
inline

Definition at line 16 of file BaseColumnView.h.

16 { return element & _mask; }

Member Data Documentation

argument_type lsst::afw::table::detail::FlagExtractor::_mask
private

Definition at line 21 of file BaseColumnView.h.


The documentation for this struct was generated from the following file: