2 #ifndef AFW_TABLE_Key_h_INCLUDED 3 #define AFW_TABLE_Key_h_INCLUDED 53 class Key :
public KeyBase<T>,
public FieldBase<T> {
65 template <
typename OtherT>
69 template <
typename OtherT>
75 return _offset ==
other._offset && this->getElementCount() ==
other.getElementCount();
97 bool isValid() const noexcept {
return _offset >= 0; }
106 Key(
Key const&) noexcept =
default;
107 Key(
Key&&) noexcept =
default;
108 Key& operator=(
Key const&) noexcept =
default;
109 Key& operator=(
Key&&) noexcept =
default;
110 ~
Key() noexcept =
default;
115 <<
", nElements=" <<
key.getElementCount() <<
")";
132 template <
typename T>
140 #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.
std::size_t hash_value() const noexcept
Return a hash of this object.
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.
ItemVariant const * other
std::size_t hashCombine(std::size_t seed) noexcept
Combine hashes.
static std::string getTypeString()
Return a string description of the field type.
size_t operator()(argument_type const &obj) const noexcept
Key() noexcept
Default construct a field.