LSSTApplications
20.0.0
LSSTDataManagementBasePackage
|
Go to the documentation of this file.
22 #ifndef ASTSHIM_TABLE_H
23 #define ASTSHIM_TABLE_H
40 :
KeyMap(reinterpret_cast<AstKeyMap *>(astTable(
"%s", options.c_str()))) {
60 return static_cast<DataType>(retVal);
64 int retVal =
Object::getI(
"ColumnLength(" + column +
")");
113 explicit Table(AstTable *rawTable) :
KeyMap(reinterpret_cast<AstKeyMap *>(rawTable)) {
int columnLength(std::string const &column) const
std::string columnUnit(std::string const &column) const
void assertOK(AstObject *rawPtr1=nullptr, AstObject *rawPtr2=nullptr)
Throw std::runtime_error if AST's state is bad.
int columnNdim(std::string const &column) const
std::vector< int > columnShape(std::string const &column)
Abstract base class for all AST objects.
int columnLenC(std::string const &column) const
int getNRow() const
Get NRow: The number of rows currently in the Table.
Table & operator=(Table const &)=delete
std::string getClassName() const
Get Class: the name of the class (e.g.
int getI(std::string const &attrib) const
Get the value of an attribute as an int.
Table(AstTable *rawTable)
Construct a Table from a raw AstTable.
int getNColumn() const
Get NColumn: The number of columns currently in the Table.
Table(std::string const &options="")
Table(Table const &)=default
AST wrapper classes and functions.
std::string const getC(std::string const &attrib) const
Get the value of an attribute as a string.
DataType
Data types held by a KeyMap.
AstObject const * getRawPtr() const
Get the raw AST pointer.
std::string columnName(int index) const
DataType columnType(std::string const &column) const
Table & operator=(Table &&)=default
KeyMap is used to store a set of values with associated keys which identify the values.