lsst.afw  13.0-92-g8ecf155+1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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

std::shared_ptr< Table > getTable () const
 Return the table that owns the records. More...
 
- Public Member Functions inherited from lsst::afw::table::BaseColumnView
std::shared_ptr< BaseTable > getTable () 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 (std::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 (std::shared_ptr< BaseTable > const &table, InputIterator first, InputIterator last)
 Construct a BaseColumnView from an iterator range. More...
 
template<typename InputIterator >
static bool isRangeContiguous (std::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 (std::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 165 of file BaseColumnView.h.

Member Typedef Documentation

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

Definition at line 167 of file BaseColumnView.h.

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

Definition at line 168 of file BaseColumnView.h.

Constructor & Destructor Documentation

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

Definition at line 182 of file BaseColumnView.h.

Member Function Documentation

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

Return the table that owns the records.

Definition at line 171 of file BaseColumnView.h.

template<typename RecordT >
template<typename InputIterator >
static ColumnViewT lsst::afw::table::ColumnViewT< RecordT >::make ( std::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 177 of file BaseColumnView.h.


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