|
lsst.afw g47a37159df+45adbcf3d0
|
Key specialization for Flag. More...
#include <Flag.h>
Public Types | |
| using | Value |
| the type returned by BaseRecord::get | |
| using | Reference |
| the type returned by BaseRecord::operator[] (non-const) | |
| using | ConstReference |
| the type returned by BaseRecord::operator[] (const) | |
| using | Element |
| the type of subfields (the same as the type itself for scalars) | |
Public Member Functions | |
| template<typename OtherT> | |
| bool | operator== (Key< OtherT > const &other) const |
| Equality comparison. | |
| template<typename OtherT> | |
| bool | operator!= (Key< OtherT > const &other) const |
| bool | operator== (Key const &other) const |
| bool | operator!= (Key const &other) const |
| std::size_t | hash_value () const noexcept |
| Return a hash of this object. | |
| std::size_t | getOffset () const |
| Return the offset in bytes of the integer element that holds this field's bit. | |
| std::size_t | getBit () const |
| The index of this field's bit within the integer it shares with other Flag fields. | |
| bool | isValid () const |
| Return true if the key was initialized to valid offset. | |
| Key () | |
| Default construct a field. | |
| Key (Key const &)=default | |
| Key (Key &&)=default | |
| Key & | operator= (Key const &)=default |
| Key & | operator= (Key &&)=default |
| ~Key ()=default | |
| bool | operator== (Key< OtherT > const &other) const noexcept |
| Equality comparison. | |
| bool | operator== (Key const &other) const noexcept |
| bool | operator!= (Key< OtherT > const &other) const noexcept |
| bool | operator!= (Key const &other) const noexcept |
| std::size_t | hash_value () const noexcept |
| Return a hash of this object. | |
| std::size_t | getOffset () const noexcept |
| Return the offset (in bytes) of this field within a record. | |
| bool | isValid () const noexcept |
| Return true if the key was initialized to valid offset. | |
| Key () noexcept | |
| Default construct a field. | |
| Key (Key const &) noexcept=default | |
| Key (Key &&) noexcept=default | |
| Key & | operator= (Key const &) noexcept=default |
| Key & | operator= (Key &&) noexcept=default |
| ~Key () noexcept=default | |
| std::size_t | getElementCount () const noexcept |
| Return the number of subfield elements (always one for scalars). | |
| Key< FieldBase< Flag >::Element > | getStorage () const |
| Return a key corresponding to the integer element where this field's bit is packed. | |
Static Public Member Functions | |
| static std::string | getTypeString () |
| Return a string description of the field type. | |
Static Public Attributes | |
| static bool const | HAS_NAMED_SUBFIELDS |
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. | |
| 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. | |
Friends | |
| class | detail::Access |
| class | BaseRecord |
| std::ostream & | operator<< (std::ostream &os, Key< Flag > const &key) |
| Stringification. | |
| class | detail::Access |
| class | BaseRecord |
| std::ostream & | operator<< (std::ostream &os, Key< Flag > const &key) |
| Stringification. | |
Key specialization for Flag.
Flag fields are special; their keys need to contain not only the offset to the integer element they share with other Flag fields, but also their position in that shared field.
Flag fields operate mostly like a bool field, but they do not support reference access, and internally they are packed into an integer shared by multiple fields so the marginal cost of each Flag field is only one bit.
| 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 |
the type of subfields (the same as the type itself for scalars)
Definition at line 45 of file FieldBase.h.
| 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 |
the type returned by BaseRecord::get
Definition at line 42 of file FieldBase.h.
|
inline |
|
default |
|
default |
|
default |
|
inlinenoexcept |
|
defaultnoexcept |
|
defaultnoexcept |
|
defaultnoexcept |
|
inline |
|
inlineprotectedinherited |
Used to implement BaseRecord::operator[] (const).
Definition at line 78 of file FieldBase.h.
|
inlineprotected |
Used to implement BaseRecord::operator[] (const).
Definition at line 78 of file FieldBase.h.
|
inlinenoexcept |
Return the number of subfield elements (always one for scalars).
Definition at line 48 of file FieldBase.h.
|
inline |
|
inlinenoexcept |
|
inlineprotectedinherited |
Used to implement BaseRecord::operator[] (non-const).
Definition at line 75 of file FieldBase.h.
|
inlineprotected |
Used to implement BaseRecord::operator[] (non-const).
Definition at line 75 of file FieldBase.h.
|
inherited |
Return a key corresponding to the integer element where this field's bit is packed.
Definition at line 15 of file KeyBase.cc.
|
static |
Return a string description of the field type.
Definition at line 51 of file FieldBase.cc.
|
inlineprotectedinherited |
Used to implement BaseRecord::get.
Definition at line 81 of file FieldBase.h.
|
inlineprotected |
Used to implement BaseRecord::get.
Definition at line 81 of file FieldBase.h.
|
inlinenoexcept |
|
inlinenoexcept |
|
inline |
|
inlinenoexcept |
|
inlinestaticprotectednoexcept |
Needed to allow Keys to be default-constructed.
Definition at line 69 of file FieldBase.h.
|
inline |
|
inlinenoexcept |
|
inline |
|
inlinenoexcept |
|
defaultnoexcept |
|
default |
|
defaultnoexcept |
|
default |
|
inline |
|
inlinenoexcept |
|
inline |
Equality comparison.
Two keys with different types are never equal. Keys with the same type are equal if they point to the same location in a table, regardless of what Schema they were constructed from (for instance, if a field has a different name in one Schema than another, but is otherwise the same, the two keys will be equal).
|
inlinenoexcept |
Equality comparison.
Two keys with different types are never equal. Keys with the same type are equal if they point to the same location in a table, regardless of what Schema they were constructed from (for instance, if a field has a different name in one Schema than another, but is otherwise the same, the two keys will be equal).
|
inlineprotectedinherited |
Used to implement BaseRecord::set.
Definition at line 84 of file FieldBase.h.
|
inlineprotected |
Used to implement BaseRecord::set.
Definition at line 84 of file FieldBase.h.
|
inlineprotected |
Defines how Fields are printed.
Definition at line 72 of file FieldBase.h.
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
static |