#include <BaseColumnView.h>
|
| std::shared_ptr< Table > | 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...
|
| |
|
| template<typename InputIterator > |
| static ColumnViewT | make (std::shared_ptr< Table > const &table, InputIterator first, InputIterator last) |
| | Construct a BaseColumnView from an iterator range. More...
|
| |
| 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...
|
| |
template<typename RecordT>
class lsst::afw::table::ColumnViewT< RecordT >
Definition at line 165 of file BaseColumnView.h.
template<typename RecordT >
template<typename RecordT >
template<typename RecordT >
| BitsColumn lsst::afw::table::BaseColumnView::getAllBits |
( |
| ) |
const |
|
inherited |
Return an integer array with all Flag fields repacked into individual bits.
The returned object contains both the int64 array and accessors to obtain a mask given a Key or field name.
- Exceptions
-
| pex::exceptions::LengthError | if the schema has more than 64 Flag fields. |
| BitsColumn lsst::afw::table::BaseColumnView::getBits |
( |
std::vector< Key< Flag > > const & |
keys | ) |
const |
|
inherited |
Return an integer array with the given Flag fields repacked into individual bits.
The returned object contains both the int64 array and accessors to obtain a mask given a Key or field name.
- Exceptions
-
| pex::exceptions::LengthError | if keys.size() > 64 |
| Schema lsst::afw::table::BaseColumnView::getSchema |
( |
| ) |
const |
|
inlineinherited |
Return the schema that defines the fields.
Definition at line 89 of file BaseColumnView.h.
template<typename RecordT >
template<typename InputIterator >
| bool lsst::afw::table::BaseColumnView::isRangeContiguous |
( |
std::shared_ptr< BaseTable > const & |
table, |
|
|
InputIterator |
first, |
|
|
InputIterator |
last |
|
) |
| |
|
staticinherited |
Return true if the given record iterator range is continuous and the records all belong to the given table.
This tests exactly the same requiremetns needed to construct a column view, so if this test succeeds, BaseColumnView::make should as well.
Definition at line 207 of file BaseColumnView.h.
template<typename InputIterator >
| BaseColumnView lsst::afw::table::BaseColumnView::make |
( |
std::shared_ptr< BaseTable > const & |
table, |
|
|
InputIterator |
first, |
|
|
InputIterator |
last |
|
) |
| |
|
staticinherited |
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 186 of file BaseColumnView.h.
template<typename RecordT >
template<typename InputIterator >
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.
template<typename T >
| ndarray::ArrayRef<T, 1> const lsst::afw::table::BaseColumnView::operator[] |
( |
Key< T > const & |
key | ) |
const |
|
inherited |
Return a 1-d array corresponding to a scalar field (or subfield).
template<typename T >
| ndarray::ArrayRef<T, 2, 1> const lsst::afw::table::BaseColumnView::operator[] |
( |
Key< Array< T > > const & |
key | ) |
const |
|
inherited |
Return a 2-d array corresponding to an array field.
| ndarray::result_of::vectorize<detail::FlagExtractor, ndarray::Array<Field<Flag>::Element const, 1> >::type lsst::afw::table::BaseColumnView::operator[] |
( |
Key< Flag > const & |
key | ) |
const |
|
inherited |
Return a 1-d array expression corresponding to a flag bit.
In C++, the return value is a lazy ndarray expression template that performs the bitwise & operation on every element when that element is requested. In Python, the result will be copied into a bool NumPy array.
The documentation for this class was generated from the following file: