2 #ifndef AFW_TABLE_Key_h_INCLUDED
3 #define AFW_TABLE_Key_h_INCLUDED
9 namespace lsst {
namespace afw {
namespace table {
50 class Key :
public KeyBase<T>,
public FieldBase<T> {
93 inline friend std::ostream & operator<<(std::ostream & os, Key<T>
const & key) {
95 <<
", nElements=" << key.getElementCount() <<
")";
111 #endif // !AFW_TABLE_Key_h_INCLUDED
bool operator!=(Key< OtherT > const &other) const
Equality comparison.
Field base class default implementation (used for numeric scalars and Angle).
static FieldBase makeDefault()
Needed to allow Keys to be default-constructed.
int getOffset() const
Return the offset (in bytes) of this field within a record.
bool isValid() const
Return true if the key was initialized to valid offset.
Key()
Default construct a field.
bool operator!=(Key const &other) const
Equality comparison.
static std::string getTypeString()
Return a string description of the field type.
int getElementCount() const
Return the number of subfield elements (always one for scalars).
Key(int offset, FieldBase< T > const &fb=FieldBase< T >())
Base class for all records.
A class used as a handle to a particular field in a table.
bool operator==(Key const &other) const
Equality comparison.
bool operator==(Key< OtherT > const &other) const
Equality comparison.