2 #ifndef AFW_TABLE_DETAIL_Access_h_INCLUDED
3 #define AFW_TABLE_DETAIL_Access_h_INCLUDED
7 #include "ndarray/Manager.h"
36 if (!
static_cast<Key<T> const &
>(kb).isValid()) {
38 pex::exceptions::LogicError,
40 "Cannot extract subfield key from invalid key of type '%s' "
41 "(most often this is caused by failing to setup centroid or shape slots)") %
52 if (!
static_cast<Key<Array<T> > const &>(kb).isValid()) {
53 throw LSST_EXCEPT(pex::exceptions::LogicError,
54 (boost::format(
"Cannot extract subfield key from invalid key of type '%s' ") %
81 schema._impl->_recordSize += bytes;
89 #endif // !AFW_TABLE_DETAIL_Access_h_INCLUDED
Defines the fields and offsets for a table.
static Key< Array< T > > extractRange(KeyBase< Array< T > > const &kb, int begin, int end)
static void padSchema(Schema &schema, int bytes)
static Key< T > makeKey(int offset)
static Key< T > makeKey(Field< T > const &field, int offset)
static Key< typename Key< T >::Element > extractElement(KeyBase< T > const &kb, int n)
A description of a field in a table.
static Key< Flag > makeKey(int offset, int bit)
Tag types used to declare specialized field types.
T Element
the type of subfields (the same as the type itself for scalars)
A base class for Key that allows subfield keys to be extracted for some field types.
A class used as a handle to a particular field in a table.
Key specialization for Flag.
afw::table::Schema schema