lsst.afw
tickets.DM-23835-g31c64b24f1
|
Go to the documentation of this file.
2 #ifndef LSST_AFW_TABLE_Flag_h_INCLUDED
3 #define LSST_AFW_TABLE_Flag_h_INCLUDED
49 "Constructor disabled (this Field type is not sized).");
106 template <
typename OtherT>
110 template <
typename OtherT>
148 Key(
Key const &) =
default;
157 <<
", bit=" <<
key.getBit() <<
")";
166 return (*p) & (
Element(1) << _bit);
178 explicit Key(
int offset,
int bit) : _offset(offset), _bit(bit) {}
189 struct hash<
lsst::afw::table::Key<lsst::afw::table::Flag>> {
196 #endif // !LSST_AFW_TABLE_Flag_h_INCLUDED
std::int64_t Element
the actual storage type (shared by multiple flag fields)
bool operator!=(Key< OtherT > const &other) const
void setValue(Element *p, ndarray::Manager::Ptr const &, Value v) const
Used to implement BaseRecord::set.
Key() noexcept
Default construct a field.
Key()
Default construct a field.
Key & operator=(Key const &) noexcept=default
~FieldBase() noexcept=default
A base class for Key that allows subfield keys to be extracted for some field types.
void stream(std::ostream &os) const
Defines how fields are printed.
std::size_t hash_value() const noexcept
Return a hash of this object.
bool isValid() const
Return true if the key was initialized to valid offset.
int getElementCount() const
Return the number of subfield elements (always one for scalars).
bool operator==(Key const &other) const
bool operator!=(Key const &other) const
Base class for all records.
A class used as a handle to a particular field in a table.
int getBit() const
The index of this field's bit within the integer it shares with other Flag fields.
friend std::ostream & operator<<(std::ostream &os, Key< Flag > const &key)
Stringification.
T Element
the type of subfields (the same as the type itself for scalars)
static const bool HAS_NAMED_SUBFIELDS
A base class for image defects.
#define LSST_EXCEPT(type,...)
bool operator==(Key< OtherT > const &other) const
Equality comparison.
std::size_t hashCombine(std::size_t seed) noexcept
Field base class default implementation (used for numeric scalars and lsst::geom::Angle).
static std::string getTypeString()
Return a string description of the field type.
size_t operator()(argument_type const &obj) const noexcept
static std::string getTypeString()
Return a string description of the field type.
const ItemVariant * other
Value getValue(Element const *p, ndarray::Manager::Ptr const &) const
Used to implement BaseRecord::get.
T Value
the type returned by BaseRecord::get
bool Value
the type returned by BaseRecord::get
bool operator==(Key< OtherT > const &other) const noexcept
Equality comparison.
FieldBase & operator=(FieldBase const &) noexcept=default
int getOffset() const
Return the offset in bytes of the integer element that holds this field's bit.
Key specialization for Flag.