2 #ifndef AFW_TABLE_Key_h_INCLUDED 3 #define AFW_TABLE_Key_h_INCLUDED 51 class Key :
public KeyBase<T>,
public FieldBase<T> {
63 template <
typename OtherT>
67 template <
typename OtherT>
73 return _offset == other._offset && this->getElementCount() == other.getElementCount();
89 bool isValid()
const {
return _offset >= 0; }
100 Key& operator=(
Key const&) =
default;
101 Key& operator=(
Key&&) =
default;
107 <<
", nElements=" <<
key.getElementCount() <<
")";
122 #endif // !AFW_TABLE_Key_h_INCLUDED Field base class default implementation (used for numeric scalars and lsst::geom::Angle).
bool operator!=(Key< OtherT > const &other) const
Equality comparison.
int getOffset() const
Return the offset (in bytes) of this field within a record.
bool operator==(CoordKey const &lhs, CoordKey const &rhs)
Compare CoordKeys for equality using the constituent Keys.
bool operator==(Key< OtherT > const &other) const
Equality comparison.
ItemVariant const * other
bool isValid() const
Return true if the key was initialized to valid offset.
bool operator==(Key const &other) const
Equality comparison.
A base class for image defects.
bool operator!=(Key const &other) const
Equality comparison.
Base class for all records.
A class used as a handle to a particular field in a table.
Key()
Default construct a field.
static std::string getTypeString()
Return a string description of the field type.