LSSTApplications
20.0.0
LSSTDataManagementBasePackage
|
Go to the documentation of this file.
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; }
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
Key() noexcept
Default construct a field.
bool operator==(Key const &other) const noexcept
bool operator!=(Key< OtherT > const &other) const noexcept
std::size_t hash_value() const noexcept
Return a hash of this object.
ItemVariant const * other
Base class for all records.
A class used as a handle to a particular field in a table.
bool isValid() const noexcept
Return true if the key was initialized to valid offset.
Key(Key const &) noexcept=default
A base class for image defects.
std::size_t hashCombine(std::size_t seed) noexcept
Combine hashes.
Field base class default implementation (used for numeric scalars and lsst::geom::Angle).
size_t operator()(argument_type const &obj) const noexcept
bool operator==(Key< OtherT > const &other) const noexcept
Equality comparison.
Key(Key &&) noexcept=default
int getOffset() const noexcept
Return the offset (in bytes) of this field within a record.