LDMX Software
|
Public Member Functions | |
BaseTableCondition (const std::string &name, const std::vector< std::string > &columns) | |
Create table with given set of columns. | |
unsigned int | getColumnNumber (const std::string &colname) const |
Get a the column number for the given column name. | |
unsigned int | getColumnCount () const |
Get the number of columns. | |
const std::string & | getColumnName (unsigned int icol) const |
Get the name of the given column. | |
unsigned int | getRowId (unsigned int irow) const |
Get the id for the given row. | |
const std::vector< std::string > & | getColumnNames () const |
Get the names of the columns. | |
std::size_t | getRowCount () const |
Get the number of rows. | |
void | setIdMask (unsigned int mask) |
Set an AND mask to be applied to the id. | |
unsigned int | getIdMask () const |
Get the AND mask to be applied to the id. | |
virtual std::ostream & | streamRow (std::ostream &s, int irow) const |
Streams a given row of this table. | |
Public Member Functions inherited from framework::ConditionsObject | |
ConditionsObject (const std::string &name) | |
Class constructor. | |
virtual | ~ConditionsObject () |
Destructor. | |
std::string | getName () const |
Get the name of this object. | |
Protected Member Functions | |
std::size_t | findKey (unsigned int id) const |
std::size_t | findKeyInsert (unsigned int id) const |
Protected Attributes | |
std::vector< std::string > | columns_ |
unsigned int | columnCount_ |
std::vector< uint32_t > | keys_ |
unsigned int | idMask_ |
Definition at line 21 of file SimpleTableCondition.h.
|
inline |
Create table with given set of columns.
Definition at line 24 of file SimpleTableCondition.h.
|
protected |
Definition at line 23 of file BaseTableCondition.cxx.
|
protected |
Definition at line 33 of file BaseTableCondition.cxx.
|
inline |
Get the number of columns.
Definition at line 44 of file SimpleTableCondition.h.
Referenced by ecal::EcalReconConditions::EcalReconConditions(), and ldmx::HgcrocTriggerConditions::HgcrocTriggerConditions().
|
inline |
Get the name of the given column.
Definition at line 49 of file SimpleTableCondition.h.
References framework::ConditionsObject::getName().
|
inline |
Get the names of the columns.
Definition at line 71 of file SimpleTableCondition.h.
Referenced by ecal::EcalReconConditions::EcalReconConditions(), and ldmx::HgcrocTriggerConditions::HgcrocTriggerConditions().
|
inline |
Get a the column number for the given column name.
Definition at line 35 of file SimpleTableCondition.h.
Referenced by conditions::HomogenousTableCondition< T >::getByName(), and ldmx::HgcrocEmulator::getCondition().
|
inline |
Get the AND mask to be applied to the id.
Typically used to "flatten" a table in some manner.
Definition at line 88 of file SimpleTableCondition.h.
|
inline |
Get the number of rows.
Definition at line 76 of file SimpleTableCondition.h.
Referenced by conditions::HomogenousTableCondition< T >::add(), conditions::HomogenousTableCondition< T >::get(), conditions::HomogenousTableCondition< T >::getRow(), getRowId(), and conditions::HomogenousTableCondition< T >::streamRow().
|
inline |
Get the id for the given row.
Definition at line 60 of file SimpleTableCondition.h.
References getRowCount().
|
inline |
Set an AND mask to be applied to the id.
Typically used to "flatten" a table in some manner.
Definition at line 82 of file SimpleTableCondition.h.
Referenced by conditions::SimpleCSVTableProvider::getCondition().
|
inlinevirtual |
Streams a given row of this table.
Reimplemented in conditions::HomogenousTableCondition< T >, conditions::HomogenousTableCondition< double >, and conditions::HomogenousTableCondition< int >.
Definition at line 93 of file SimpleTableCondition.h.
|
protected |
Definition at line 103 of file SimpleTableCondition.h.
|
protected |
Definition at line 102 of file SimpleTableCondition.h.
|
protected |
Definition at line 105 of file SimpleTableCondition.h.
|
protected |
Definition at line 104 of file SimpleTableCondition.h.