LSSTApplications  10.0-2-g4f67435,11.0.rc2+1,11.0.rc2+12,11.0.rc2+3,11.0.rc2+4,11.0.rc2+5,11.0.rc2+6,11.0.rc2+7,11.0.rc2+8
LSSTDataManagementBasePackage
Public Types | Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
lsst.afw.table::BitsColumn Class Reference

A packed representation of a collection of Flag field columns. More...

#include <BaseColumnView.h>

Public Types

typedef boost::int64_t IntT
 

Public Member Functions

ndarray::Array< IntT, 1, 1 > getArray () const
 
IntT getBit (Key< Flag > const &key) const
 
IntT getBit (std::string const &name) const
 
IntT getMask (Key< Flag > const &key) const
 
IntT getMask (std::string const &name) const
 
std::vector< SchemaItem< Flag >
> const & 
getSchemaItems () const
 

Private Member Functions

 BitsColumn (int size)
 

Private Attributes

ndarray::Array< IntT, 1, 1 > _array
 
std::vector< SchemaItem< Flag > > _items
 

Friends

class BaseColumnView
 

Detailed Description

A packed representation of a collection of Flag field columns.

The packing of bits here is not necessarily the same as the packing using in the actual table, as the latter may contain more than 64 bits spread across multiple integers.

A BitsColumn can only be constructed by calling BaseColumnView::getBits().

Definition at line 38 of file BaseColumnView.h.

Member Typedef Documentation

typedef boost::int64_t lsst.afw.table::BitsColumn::IntT

Definition at line 41 of file BaseColumnView.h.

Constructor & Destructor Documentation

lsst.afw.table::BitsColumn::BitsColumn ( int  size)
explicitprivate

Member Function Documentation

ndarray::Array<IntT,1,1> lsst.afw.table::BitsColumn::getArray ( ) const
inline

Definition at line 43 of file BaseColumnView.h.

43 { return _array; }
ndarray::Array< IntT, 1, 1 > _array
IntT lsst.afw.table::BitsColumn::getBit ( Key< Flag > const &  key) const
IntT lsst.afw.table::BitsColumn::getBit ( std::string const &  name) const
IntT lsst.afw.table::BitsColumn::getMask ( Key< Flag > const &  key) const
inline

Definition at line 48 of file BaseColumnView.h.

48 { return IntT(1) << getBit(key); }
IntT getBit(Key< Flag > const &key) const
IntT lsst.afw.table::BitsColumn::getMask ( std::string const &  name) const
inline

Definition at line 49 of file BaseColumnView.h.

49 { return IntT(1) << getBit(name); }
table::Key< std::string > name
Definition: ApCorrMap.cc:71
IntT getBit(Key< Flag > const &key) const
std::vector< SchemaItem<Flag> > const& lsst.afw.table::BitsColumn::getSchemaItems ( ) const
inline

Definition at line 52 of file BaseColumnView.h.

52 { return _items; }
std::vector< SchemaItem< Flag > > _items

Friends And Related Function Documentation

friend class BaseColumnView
friend

Definition at line 57 of file BaseColumnView.h.

Member Data Documentation

ndarray::Array<IntT,1,1> lsst.afw.table::BitsColumn::_array
private

Definition at line 61 of file BaseColumnView.h.

std::vector< SchemaItem<Flag> > lsst.afw.table::BitsColumn::_items
private

Definition at line 62 of file BaseColumnView.h.


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