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 | Static Public Member Functions | Protected Member Functions | List of all members
lsst::afw::table::ColumnViewT< RecordT > Class Template Reference

#include <BaseColumnView.h>

Inheritance diagram for lsst::afw::table::ColumnViewT< RecordT >:
lsst::afw::table::BaseColumnView lsst::afw::table::SourceColumnViewT< RecordT >

Public Types

typedef RecordT Record
 
typedef RecordT::Table Table
 

Public Member Functions

boost::shared_ptr< TablegetTable () const
 Return the table that owns the records. More...
 
- Public Member Functions inherited from lsst::afw::table::BaseColumnView
boost::shared_ptr< BaseTablegetTable () const
 Return the table that owns the records. More...
 
Schema getSchema () const
 Return the schema that defines the fields. More...
 
template<typename T >
ndarray::ArrayRef< T, 1 > const operator[] (Key< T > const &key) const
 Return a 1-d array corresponding to a scalar field (or subfield). More...
 
template<typename T >
ndarray::ArrayRef< T, 2, 1 > const operator[] (Key< Array< T > > const &key) const
 Return a 2-d array corresponding to an array field. More...
 
ndarray::result_of::vectorize
< detail::FlagExtractor,
ndarray::Array< Field< Flag >
::Element const, 1 > >::type 
operator[] (Key< Flag > const &key) const
 Return a 1-d array expression corresponding to a flag bit. More...
 
BitsColumn getBits (std::vector< Key< Flag > > const &keys) const
 Return an integer array with the given Flag fields repacked into individual bits. More...
 
BitsColumn getAllBits () const
 Return an integer array with all Flag fields repacked into individual bits. More...
 
 ~BaseColumnView ()
 

Static Public Member Functions

template<typename InputIterator >
static ColumnViewT make (boost::shared_ptr< Table > const &table, InputIterator first, InputIterator last)
 Construct a BaseColumnView from an iterator range. More...
 
- Static Public Member Functions inherited from lsst::afw::table::BaseColumnView
template<typename InputIterator >
static BaseColumnView make (boost::shared_ptr< BaseTable > const &table, InputIterator first, InputIterator last)
 Construct a BaseColumnView from an iterator range. More...
 
template<typename InputIterator >
static bool isRangeContiguous (boost::shared_ptr< BaseTable > const &table, InputIterator first, InputIterator last)
 Return true if the given record iterator range is continuous and the records all belong to the given table. More...
 

Protected Member Functions

 ColumnViewT (BaseColumnView const &base)
 
- Protected Member Functions inherited from lsst::afw::table::BaseColumnView
 BaseColumnView (boost::shared_ptr< BaseTable > const &table, int recordCount, void *buf, ndarray::Manager::Ptr const &manager)
 

Detailed Description

template<typename RecordT>
class lsst::afw::table::ColumnViewT< RecordT >

Definition at line 168 of file BaseColumnView.h.

Member Typedef Documentation

template<typename RecordT >
typedef RecordT lsst::afw::table::ColumnViewT< RecordT >::Record

Definition at line 171 of file BaseColumnView.h.

template<typename RecordT >
typedef RecordT::Table lsst::afw::table::ColumnViewT< RecordT >::Table

Definition at line 172 of file BaseColumnView.h.

Constructor & Destructor Documentation

template<typename RecordT >
lsst::afw::table::ColumnViewT< RecordT >::ColumnViewT ( BaseColumnView const &  base)
inlineexplicitprotected

Definition at line 185 of file BaseColumnView.h.

185 : BaseColumnView(base) {}
BaseColumnView(boost::shared_ptr< BaseTable > const &table, int recordCount, void *buf, ndarray::Manager::Ptr const &manager)

Member Function Documentation

template<typename RecordT >
boost::shared_ptr< Table > lsst::afw::table::ColumnViewT< RecordT >::getTable ( ) const
inline

Return the table that owns the records.

Definition at line 175 of file BaseColumnView.h.

175 { return boost::static_pointer_cast<Table>(BaseColumnView::getTable()); }
boost::shared_ptr< BaseTable > getTable() const
Return the table that owns the records.
template<typename RecordT >
template<typename InputIterator >
static ColumnViewT lsst::afw::table::ColumnViewT< RecordT >::make ( boost::shared_ptr< Table > const &  table,
InputIterator  first,
InputIterator  last 
)
inlinestatic

Construct a BaseColumnView from an iterator range.

The iterators must dereference to a reference or const reference to a record. If the record data is not contiguous in memory, throws lsst::pex::exceptions::RuntimeError.

Definition at line 179 of file BaseColumnView.h.

179  {
180  return ColumnViewT(BaseColumnView::make(table, first, last));
181  }
ColumnViewT(BaseColumnView const &base)
static BaseColumnView make(boost::shared_ptr< BaseTable > const &table, InputIterator first, InputIterator last)
Construct a BaseColumnView from an iterator range.

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