23 #ifndef AFW_TABLE_arrays_h_INCLUDED
24 #define AFW_TABLE_arrays_h_INCLUDED
29 namespace lsst {
namespace afw {
namespace table {
61 std::string
const &
name,
62 std::string
const & doc,
63 std::string
const & unit,
64 std::vector<T>
const & docData
79 std::string
const & name,
80 std::string
const & doc,
81 std::string
const & unit,
154 #endif // !AFW_TABLE_arrays_h_INCLUDED
A proxy class for Array with deep assignment operators.
Defines the fields and offsets for a table.
A FunctorKey used to get or set a ndarray::Array from a sequence of scalar Keys.
A proxy type for name lookups in a Schema.
table::Key< std::string > name
ArrayKey slice(int begin, int end) const
Return a FunctorKey corresponding to a range of elements.
ArrayKey(Key< T > const &begin, int size)
bool operator==(ArrayKey< T > const &other) const
Compare the FunctorKey for equality with another, using the underlying scalar Keys.
Tag types used to declare specialized field types.
static ArrayKey addFields(Schema &schema, std::string const &name, std::string const &doc, std::string const &unit, std::vector< T > const &docData)
ArrayKey()
Default constructor; instance will not be usuable unless subsequently assigned to.
A multidimensional strided array.
Base class for all records.
A class used as a handle to a particular field in a table.
virtual void set(BaseRecord &record, ndarray::Array< T const, 1, 1 > const &value) const
Set an array in the given record.
bool operator!=(ArrayKey< T > const &other) const
Compare the FunctorKey for equality with another, using the underlying scalar Keys.
virtual ndarray::ArrayRef< T const, 1, 1 > getConstReference(BaseRecord const &record) const
Get const reference array from the given record.
int getSize() const
Return the number of elements in the array.
virtual ndarray::ArrayRef< T, 1, 1 > getReference(BaseRecord &record) const
Get non-const reference array from the given record.
bool isValid() const
Return True if the FunctorKey contains valid scalar keys.
Key< T > operator[](int i) const
Return a scalar Key for an element of the array.