| LSSTApplications
    20.0.0
    LSSTDataManagementBasePackage | 
 
 
 
Go to the documentation of this file.
    2 #ifndef AFW_TABLE_Field_h_INCLUDED 
    3 #define AFW_TABLE_Field_h_INCLUDED 
   46             : 
FieldBase<T>(size), _name(
name), _doc(doc), _units(units) {}
 
   68     ~
Field() noexcept = default;
 
   71     std::
string const& 
getName() const noexcept { 
return _name; }
 
   82         if (!
field.getDoc().empty()) 
os << 
", doc=\"" << 
field.getDoc() << 
"\"";
 
   83         if (!
field.getUnits().empty()) 
os << 
", units=\"" << 
field.getUnits() << 
"\"";
 
  102 #endif  // !AFW_TABLE_Field_h_INCLUDED 
  
Field(std::string const &name, std::string const &doc, std::string const &units="", FieldBase< T > const &size=FieldBase< T >())
Construct a new field.
Field(Field const &)=default
friend std::ostream & operator<<(std::ostream &os, Field< T > const &field)
Stringification.
std::string const  & getDoc() const noexcept
Return the documentation for the field.
T Element
the type of subfields (the same as the type itself for scalars)
A base class for image defects.
Field base class default implementation (used for numeric scalars and lsst::geom::Angle).
A description of a field in a table.
std::string const  & getUnits() const noexcept
Return the units for the field.
static std::string getTypeString()
Return a string description of the field type.
std::string const  & getName() const noexcept
Return the name of the field.
FieldBase< T >::Element Element
Type used to store field data in the table (a field may have multiple elements).
Field< T > copyRenamed(std::string const &newName) const
Return a new Field with a new name and other properties the same as this.
Field(std::string const &name, std::string const &doc, FieldBase< T > const &size)
Construct a new field.
Field(Field &&) noexcept=default