|
LSST Applications g00d0e8bbd7+edbf708997,g03191d30f7+9ce8016dbd,g1955dfad08+0bd186d245,g199a45376c+5137f08352,g1fd858c14a+a888a50aa2,g262e1987ae+45f9aba685,g29ae962dfc+1c7d47a24f,g2cef7863aa+73c82f25e4,g35bb328faa+edbf708997,g3fd5ace14f+eed17d2c67,g47891489e3+6dc8069a4c,g53246c7159+edbf708997,g64539dfbff+c4107e45b5,g67b6fd64d1+6dc8069a4c,g74acd417e5+f452e9c21a,g786e29fd12+af89c03590,g7ae74a0b1c+a25e60b391,g7aefaa3e3d+2025e9ce17,g7cc15d900a+2d158402f9,g87389fa792+a4172ec7da,g89139ef638+6dc8069a4c,g8d4809ba88+c4107e45b5,g8d7436a09f+e96c132b44,g8ea07a8fe4+db21c37724,g98df359435+aae6d409c1,ga2180abaac+edbf708997,gac66b60396+966efe6077,gb632fb1845+88945a90f8,gbaa8f7a6c5+38b34f4976,gbf99507273+edbf708997,gca7fc764a6+6dc8069a4c,gd7ef33dd92+6dc8069a4c,gda68eeecaf+7d1e613a8d,gdab6d2f7ff+f452e9c21a,gdbb4c4dda9+c4107e45b5,ge410e46f29+6dc8069a4c,ge41e95a9f2+c4107e45b5,geaed405ab2+e194be0d2b,w.2025.47
LSST Data Management Base Package
|
A description of a field in a table. More...
#include <Field.h>
Public Types | |
| using | Element = typename FieldBase<T>::Element |
| Type used to store field data in the table (a field may have multiple elements). | |
| using | Value = T |
| the type returned by BaseRecord::get | |
| using | Reference = T & |
| the type returned by BaseRecord::operator[] (non-const) | |
| using | ConstReference = const T & |
| the type returned by BaseRecord::operator[] (const) | |
Public Member Functions | |
| Field (std::string const &name, std::string const &doc, std::string const &units="", FieldBase< T > const &size=FieldBase< T >()) | |
| Construct a new field. | |
| Field (std::string const &name, std::string const &doc, FieldBase< T > const &size) | |
| Construct a new field. | |
| Field (Field const &)=default | |
| Field (Field &&) noexcept=default | |
| Field & | operator= (Field const &)=default |
| Field & | operator= (Field &&) noexcept=default |
| ~Field () noexcept=default | |
| std::string const & | getName () const noexcept |
| Return the name of the field. | |
| std::string const & | getDoc () const noexcept |
| Return the documentation for the field. | |
| std::string const & | getUnits () const noexcept |
| Return the units for the field. | |
| Field< T > | copyRenamed (std::string const &newName) const |
| Return a new Field with a new name and other properties the same as this. | |
| std::size_t | getElementCount () const noexcept |
| Return the number of subfield elements (always one for scalars). | |
Static Public Member Functions | |
| static std::string | getTypeString () |
| Return a string description of the field type. | |
Protected Member 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. | |
Static Protected Member Functions | |
| static FieldBase | makeDefault () noexcept |
| Needed to allow Keys to be default-constructed. | |
Friends | |
| std::ostream & | operator<< (std::ostream &os, Field< T > const &field) |
| Stringification. | |
A description of a field in a table.
Field combines a type with the field name, documentation, units, and in some cases, the size of the field.
Specializations for different field types are inherited through FieldBase; see the documentation for those specializations for additional information about particular field types.
|
inherited |
the type returned by BaseRecord::operator[] (const)
Definition at line 44 of file FieldBase.h.
| using lsst::afw::table::Field< T >::Element = typename FieldBase<T>::Element |
|
inherited |
the type returned by BaseRecord::operator[] (non-const)
Definition at line 43 of file FieldBase.h.
|
inherited |
the type returned by BaseRecord::get
Definition at line 42 of file FieldBase.h.
|
inline |
Construct a new field.
| [in] | name | Name of the field. Schemas provide extra functionality for names whose components are separated by underscores. Field names should be limited to letters, numbers, and underscores. |
| [in] | doc | Documentation for the field. Should not contain single-quotes to avoid FITS round-trip problems. |
| [in] | units | Units for the field. Should not contain single-quotes to avoid FITS round-trip problems. |
| [in] | size | Size of the field as an integer, if appropriate. Field types that accept a size have a FieldBase that is implicitly constructable from an integer, so the argument type should be considered to effectively be int; using FieldBase here allows use to throw when the signature does not match the field type. |
Definition at line 44 of file Field.h.
|
inline |
Construct a new field.
| [in] | name | Name of the field. Schemas provide extra functionality for names whose components are separated by underscores. Field names should be limited to letters, numbers, and underscores. |
| [in] | doc | Documentation for the field. |
| [in] | size | Size of the field as an integer, if appropriate. Field types that accept a size have a FieldBase that is implicitly constructable from an integer, so the argument type should be considered to effectively be int; using FieldBase here allows use to throw when the signature does not match the field type. |
Definition at line 61 of file Field.h.
|
default |
|
defaultnoexcept |
|
defaultnoexcept |
|
inline |
Return a new Field with a new name and other properties the same as this.
Definition at line 89 of file Field.h.
|
inlineprotectedinherited |
Used to implement BaseRecord::operator[] (const).
Definition at line 78 of file FieldBase.h.
|
inlinenoexcept |
|
inlinenoexceptinherited |
Return the number of subfield elements (always one for scalars).
Definition at line 48 of file FieldBase.h.
|
inlinenoexcept |
|
inlineprotectedinherited |
|
staticinherited |
Return a string description of the field type.
Definition at line 56 of file FieldBase.cc.
|
inlinenoexcept |
|
inlineprotectedinherited |
|
inlinestaticprotectednoexceptinherited |
|
defaultnoexcept |
|
default |
|
inlineprotectedinherited |
|
inlineprotectedinherited |
|
friend |
Stringification.
Definition at line 80 of file Field.h.