|
LSST Applications g00d0e8bbd7+8c5ae1fdc5,g013ef56533+603670b062,g083dd6704c+2e189452a7,g199a45376c+0ba108daf9,g1c5cce2383+bc9f6103a4,g1fd858c14a+cd69ed4fc1,g210f2d0738+c4742f2e9e,g262e1987ae+612fa42d85,g29ae962dfc+83d129e820,g2cef7863aa+aef1011c0b,g35bb328faa+8c5ae1fdc5,g3fd5ace14f+5eaa884f2a,g47891489e3+e32160a944,g53246c7159+8c5ae1fdc5,g5b326b94bb+dcc56af22d,g64539dfbff+c4742f2e9e,g67b6fd64d1+e32160a944,g74acd417e5+c122e1277d,g786e29fd12+668abc6043,g87389fa792+8856018cbb,g88cb488625+47d24e4084,g89139ef638+e32160a944,g8d7436a09f+d14b4ff40a,g8ea07a8fe4+b212507b11,g90f42f885a+e1755607f3,g97be763408+34be90ab8c,g98df359435+ec1fa61bf1,ga2180abaac+8c5ae1fdc5,ga9e74d7ce9+43ac651df0,gbf99507273+8c5ae1fdc5,gc2a301910b+c4742f2e9e,gca7fc764a6+e32160a944,gd7ef33dd92+e32160a944,gdab6d2f7ff+c122e1277d,gdb1e2cdc75+1b18322db8,ge410e46f29+e32160a944,ge41e95a9f2+c4742f2e9e,geaed405ab2+0d91c11c6d,w.2025.44
LSST Data Management Base Package
|
#include <BaseColumnView.h>
Public Types | |
| using | Record = RecordT |
| using | Table = typename RecordT::Table |
Public Member Functions | |
| std::shared_ptr< Table > | getTable () const |
| Return the table that owns the records. | |
| ColumnViewT (ColumnViewT const &)=default | |
| ColumnViewT (ColumnViewT &&)=default | |
| ColumnViewT & | operator= (ColumnViewT const &)=default |
| ColumnViewT & | operator= (ColumnViewT &&)=default |
| ~ColumnViewT ()=default | |
| Schema | getSchema () const |
| Return the schema that defines the fields. | |
| 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). | |
| 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. | |
| ndarray::result_of::vectorize< detail::FlagExtractor, ndarray::Array< Field< Flag >::Elementconst, 1 > >::type | operator[] (Key< Flag > const &key) const |
| Return a 1-d array expression corresponding to a flag bit. | |
| ndarray::Array< double, 1 > const | get_radians_array (Key< Angle > const &key) const |
| Return an array column as a double array in radians. | |
| BitsColumn | getBits (std::vector< Key< Flag > > const &keys) const |
| Return an integer array with the given Flag fields repacked into individual bits. | |
| BitsColumn | getAllBits () const |
| Return an integer array with all Flag fields repacked into individual bits. | |
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. | |
| template<typename InputIterator> | |
| static BaseColumnView | make (std::shared_ptr< BaseTable > const &table, InputIterator first, InputIterator last) |
| Construct a BaseColumnView from an iterator range. | |
| 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. | |
Protected Member Functions | |
| ColumnViewT (BaseColumnView const &base) | |
Definition at line 173 of file BaseColumnView.h.
| using lsst::afw::table::ColumnViewT< RecordT >::Record = RecordT |
Definition at line 175 of file BaseColumnView.h.
| using lsst::afw::table::ColumnViewT< RecordT >::Table = typename RecordT::Table |
Definition at line 176 of file BaseColumnView.h.
|
default |
|
default |
|
default |
|
inlineexplicitprotected |
Definition at line 196 of file BaseColumnView.h.
|
inherited |
Return an array column as a double array in radians.
Definition at line 117 of file BaseColumnView.cc.
|
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.
| pex::exceptions::LengthError | if the schema has more than 64 Flag fields. |
Definition at line 157 of file BaseColumnView.cc.
|
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.
| pex::exceptions::LengthError | if keys.size() > 64 |
Definition at line 127 of file BaseColumnView.cc.
|
inlineinherited |
Return the schema that defines the fields.
Definition at line 89 of file BaseColumnView.h.
|
inline |
Return the table that owns the records.
Definition at line 179 of file BaseColumnView.h.
|
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 221 of file BaseColumnView.h.
|
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 200 of file BaseColumnView.h.
|
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 185 of file BaseColumnView.h.
|
default |
|
default |
|
inherited |
Return a 2-d array corresponding to an array field.
Definition at line 84 of file BaseColumnView.cc.
|
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.
Definition at line 101 of file BaseColumnView.cc.
|
inherited |
Return a 1-d array corresponding to a scalar field (or subfield).
Definition at line 71 of file BaseColumnView.cc.