|
lsst.afw g3a5ebb7d8a+28b83bf6a5
|
Specialization for Flag fields. More...
#include <Flag.h>
Public Types | |
| using | Value = bool |
| the type returned by BaseRecord::get | |
| using | Element = std::int64_t |
| the actual storage type (shared by multiple flag fields) | |
| using | Reference |
| the type returned by BaseRecord::operator[] (non-const) | |
| using | ConstReference |
| the type returned by BaseRecord::operator[] (const) | |
Public Member Functions | |
| std::size_t | getElementCount () const |
| Return the number of subfield elements (always one for scalars). | |
| FieldBase ()=default | |
| FieldBase (std::size_t) | |
| FieldBase (FieldBase const &)=default | |
| FieldBase (FieldBase &&)=default | |
| FieldBase & | operator= (FieldBase const &)=default |
| FieldBase & | operator= (FieldBase &&)=default |
| ~FieldBase ()=default | |
Static Public Member Functions | |
| static std::string | getTypeString () |
| Return a string description of the field type. | |
Protected Member Functions | |
| void | stream (std::ostream &os) const |
| Defines how fields are printed. | |
| Reference | getReference (Element *p, ndarray::Manager::Ptr const &) const |
| Used to implement BaseRecord::operator[] (non-const). | |
| ConstReference | getConstReference (Element const *p, ndarray::Manager::Ptr const &) const |
| Used to implement BaseRecord::operator[] (const). | |
| Value | getValue (Element const *p, ndarray::Manager::Ptr const &) const |
| Used to implement BaseRecord::get. | |
| void | setValue (Element *p, ndarray::Manager::Ptr const &, Value v) const |
| Used to implement BaseRecord::set. | |
Static Protected Member Functions | |
| static FieldBase | makeDefault () noexcept |
| Needed to allow Keys to be default-constructed. | |
Specialization for Flag fields.
Flag fields are handled specially in many places, because their keys have both an offset into an integer element and the bit in that element; while other fields have one or more elements per field, Flags have multiple fields per element. This means we can't put all the custom code for Flag in FieldBase, and because Flags have an explicit Key specialization, we put the record access implementation in Key.
| using lsst::afw::table::FieldBase< Flag >::ConstReference |
the type returned by BaseRecord::operator[] (const)
Definition at line 44 of file FieldBase.h.
| using lsst::afw::table::FieldBase< Flag >::Element = std::int64_t |
| using lsst::afw::table::FieldBase< Flag >::Reference |
the type returned by BaseRecord::operator[] (non-const)
Definition at line 43 of file FieldBase.h.
| using lsst::afw::table::FieldBase< Flag >::Value = bool |
the type returned by BaseRecord::get
|
default |
|
inline |
|
default |
|
default |
|
default |
|
inlineprotected |
Used to implement BaseRecord::operator[] (const).
Definition at line 78 of file FieldBase.h.
|
inline |
|
inlineprotected |
Used to implement BaseRecord::operator[] (non-const).
Definition at line 75 of file FieldBase.h.
|
inlinestatic |
|
inlineprotected |
Used to implement BaseRecord::get.
Definition at line 81 of file FieldBase.h.
|
inlinestaticprotectednoexcept |
Needed to allow Keys to be default-constructed.
Definition at line 69 of file FieldBase.h.
|
default |
|
default |
|
inlineprotected |
Used to implement BaseRecord::set.
Definition at line 84 of file FieldBase.h.
|
inlineprotected |