lsst.afw  13.0-102-g6486c126f
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Static Protected Member Functions | List of all members
lsst::afw::table::FieldBase< T > Struct Template Reference

Field base class default implementation (used for numeric scalars and Angle). More...

#include <FieldBase.h>

Inheritance diagram for lsst::afw::table::FieldBase< T >:
lsst::afw::table::Key< afw::table::Flag > lsst::afw::table::Key< afw::table::RecordId > lsst::afw::table::Key< double > lsst::afw::table::Key< float > lsst::afw::table::Key< int > lsst::afw::table::Key< lsst::afw::geom::Angle > lsst::afw::table::Key< lsst::afw::table::Array< double > > lsst::afw::table::Key< lsst::afw::table::Array< int > > lsst::afw::table::Key< RecordId > lsst::afw::table::Field< T > lsst::afw::table::Key< T >

Public Types

typedef T Value
 the type returned by BaseRecord::get More...
 
typedef T & Reference
 the type returned by BaseRecord::operator[] (non-const) More...
 
typedef T const & ConstReference
 the type returned by BaseRecord::operator[] (const) More...
 
typedef T Element
 the type of subfields (the same as the type itself for scalars) More...
 

Public Member Functions

int getElementCount () const
 Return the number of subfield elements (always one for scalars). More...
 
 FieldBase ()
 
 FieldBase (int)
 

Static Public Member Functions

static std::string getTypeString ()
 Return a string description of the field type. More...
 

Protected Member Functions

void stream (std::ostream &os) const
 Defines how Fields are printed. More...
 
Reference getReference (Element *p, ndarray::Manager::Ptr const &) const
 Used to implement BaseRecord::operator[] (non-const). More...
 
ConstReference getConstReference (Element const *p, ndarray::Manager::Ptr const &) const
 Used to implement BaseRecord::operator[] (const). More...
 
Value getValue (Element const *p, ndarray::Manager::Ptr const &) const
 Used to implement BaseRecord::get. More...
 
void setValue (Element *p, ndarray::Manager::Ptr const &, Value v) const
 Used to implement BaseRecord::set. More...
 

Static Protected Member Functions

static FieldBase makeDefault ()
 Needed to allow Keys to be default-constructed. More...
 

Detailed Description

template<typename T>
struct lsst::afw::table::FieldBase< T >

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

Definition at line 44 of file FieldBase.h.

Member Typedef Documentation

◆ ConstReference

template<typename T>
typedef T const& lsst::afw::table::FieldBase< T >::ConstReference

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

Definition at line 47 of file FieldBase.h.

◆ Element

template<typename T>
typedef T lsst::afw::table::FieldBase< T >::Element

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

Definition at line 48 of file FieldBase.h.

◆ Reference

template<typename T>
typedef T& lsst::afw::table::FieldBase< T >::Reference

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

Definition at line 46 of file FieldBase.h.

◆ Value

template<typename T>
typedef T lsst::afw::table::FieldBase< T >::Value

the type returned by BaseRecord::get

Definition at line 45 of file FieldBase.h.

Constructor & Destructor Documentation

◆ FieldBase() [1/2]

template<typename T>
lsst::afw::table::FieldBase< T >::FieldBase ( )
inline

Definition at line 59 of file FieldBase.h.

◆ FieldBase() [2/2]

template<typename T>
lsst::afw::table::FieldBase< T >::FieldBase ( int  )
inline

Definition at line 60 of file FieldBase.h.

Member Function Documentation

◆ getConstReference()

template<typename T>
ConstReference lsst::afw::table::FieldBase< T >::getConstReference ( Element const *  p,
ndarray::Manager::Ptr const &   
) const
inlineprotected

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

Definition at line 76 of file FieldBase.h.

◆ getElementCount()

template<typename T>
int lsst::afw::table::FieldBase< T >::getElementCount ( ) const
inline

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

Definition at line 51 of file FieldBase.h.

◆ getReference()

template<typename T>
Reference lsst::afw::table::FieldBase< T >::getReference ( Element *  p,
ndarray::Manager::Ptr const &   
) const
inlineprotected

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

Definition at line 73 of file FieldBase.h.

◆ getTypeString()

template<typename T>
static std::string lsst::afw::table::FieldBase< T >::getTypeString ( )
static

Return a string description of the field type.

◆ getValue()

template<typename T>
Value lsst::afw::table::FieldBase< T >::getValue ( Element const *  p,
ndarray::Manager::Ptr const &   
) const
inlineprotected

Used to implement BaseRecord::get.

Definition at line 79 of file FieldBase.h.

◆ makeDefault()

template<typename T>
static FieldBase lsst::afw::table::FieldBase< T >::makeDefault ( )
inlinestaticprotected

Needed to allow Keys to be default-constructed.

Definition at line 67 of file FieldBase.h.

◆ setValue()

template<typename T>
void lsst::afw::table::FieldBase< T >::setValue ( Element *  p,
ndarray::Manager::Ptr const &  ,
Value  v 
) const
inlineprotected

Used to implement BaseRecord::set.

Definition at line 82 of file FieldBase.h.

◆ stream()

template<typename T>
void lsst::afw::table::FieldBase< T >::stream ( std::ostream &  os) const
inlineprotected

Defines how Fields are printed.

Definition at line 70 of file FieldBase.h.


The documentation for this struct was generated from the following file: