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 noexcept {
return _offset >= 0; }
98 Key(
Key const&) noexcept =
default;
99 Key(
Key&&) noexcept =
default;
100 Key& operator=(
Key const&) noexcept =
default;
101 Key& operator=(
Key&&) noexcept =
default;
102 ~
Key() noexcept =
default;
107 <<
", nElements=" <<
key.getElementCount() <<
")";
123 #endif // !AFW_TABLE_Key_h_INCLUDED bool operator!=(Key const &other) const noexcept
Equality comparison.
bool operator==(Key< OtherT > const &other) const noexcept
Equality comparison.
Field base class default implementation (used for numeric scalars and lsst::geom::Angle).
int getOffset() const noexcept
Return the offset (in bytes) of this field within a record.
bool operator==(Key const &other) const noexcept
Equality comparison.
bool operator!=(Key< OtherT > const &other) const noexcept
Equality comparison.
bool operator==(CoordKey const &lhs, CoordKey const &rhs)
Compare CoordKeys for equality using the constituent Keys.
ItemVariant const * other
bool isValid() const noexcept
Return true if the key was initialized to valid offset.
A base class for image defects.
Base class for all records.
A class used as a handle to a particular field in a table.
static std::string getTypeString()
Return a string description of the field type.
Key() noexcept
Default construct a field.