Template Struct FieldBase

Inheritance Relationships

Derived Types

Struct Documentation

template<typename T>
struct FieldBase

Field base class default implementation (used for numeric scalars and lsst::geom::Angle).

Subclassed by lsst::afw::table::Key< afw::table::Array< Scalar > >, lsst::afw::table::Key< afw::table::Flag >, lsst::afw::table::Key< afw::table::RecordId >, lsst::afw::table::Key< CentroidElement >, lsst::afw::table::Key< double >, lsst::afw::table::Key< Element >, lsst::afw::table::Key< ErrElement >, lsst::afw::table::Key< float >, lsst::afw::table::Key< FluxErrElement >, lsst::afw::table::Key< int >, lsst::afw::table::Key< lsst::afw::table::Array< int > >, lsst::afw::table::Key< lsst::afw::table::Array< Scalar > >, lsst::afw::table::Key< lsst::geom::Angle >, lsst::afw::table::Key< Mag >, lsst::afw::table::Key< MagErrElement >, lsst::afw::table::Key< meas::base::Flux >, lsst::afw::table::Key< RecordId >, lsst::afw::table::Key< Scalar >, lsst::afw::table::Field< T >, lsst::afw::table::Key< T >

Public Types

typedef T Value

the type returned by BaseRecord::get

typedef T &Reference

the type returned by BaseRecord::operator[] (non-const)

typedef T const &ConstReference

the type returned by BaseRecord::operator[] (const)

typedef T Element

the type of subfields (the same as the type itself for scalars)

Public Functions

int getElementCount() const

Return the number of subfield elements (always one for scalars).

FieldBase()
FieldBase(int)
FieldBase(FieldBase const&)
FieldBase(FieldBase&&)
FieldBase &operator=(FieldBase const&)
FieldBase &operator=(FieldBase&&)
~FieldBase()

Public Static Functions

static std::string getTypeString()

Return a string description of the field type.

Protected Functions

void stream(std::ostream &os) const

Defines how Fields are printed.

Reference getReference(Element *p, ndarray::Manager::Ptr const&) const

Used to implement BaseRecord::operator[] (non-const).

ConstReference getConstReference(Element const *p, ndarray::Manager::Ptr const&) const

Used to implement BaseRecord::operator[] (const).

Value getValue(Element const *p, ndarray::Manager::Ptr const&) const

Used to implement BaseRecord::get.

void setValue(Element *p, ndarray::Manager::Ptr const&, Value v) const

Used to implement BaseRecord::set.

Protected Static Functions

static FieldBase makeDefault()

Needed to allow Keys to be default-constructed.