PODIO v00-16-03
An Event-Data-Model Toolkit for High Energy Physics Experiments
|
#include <CollectionIDTable.h>
Public Member Functions | |
CollectionIDTable () | |
~CollectionIDTable ()=default | |
CollectionIDTable (const CollectionIDTable &)=delete | |
CollectionIDTable & | operator= (const CollectionIDTable &)=delete |
CollectionIDTable (CollectionIDTable &&)=default | |
CollectionIDTable & | operator= (CollectionIDTable &&)=default |
CollectionIDTable (std::vector< int > &&ids, std::vector< std::string > &&names) | |
constructor from existing ID:name mapping | |
CollectionIDTable (const std::vector< int > &ids, const std::vector< std::string > &names) | |
int | collectionID (const std::string &name) const |
return collection ID for given name | |
const std::string | name (int collectionID) const |
return name for given collection ID | |
bool | present (const std::string &name) const |
Check if collection name is known. | |
const std::vector< std::string > & | names () const |
return registered names | |
const std::vector< int > & | ids () const |
return the ids | |
int | add (const std::string &name) |
void | print () const |
Prints collection information. | |
bool | empty () const |
Does this table hold any information? | |
Definition at line 11 of file CollectionIDTable.h.
podio::CollectionIDTable::CollectionIDTable | ( | ) |
Definition at line 8 of file CollectionIDTable.cc.
|
default |
|
delete |
|
default |
podio::CollectionIDTable::CollectionIDTable | ( | std::vector< int > && | ids, |
std::vector< std::string > && | names | ||
) |
constructor from existing ID:name mapping
Definition at line 11 of file CollectionIDTable.cc.
podio::CollectionIDTable::CollectionIDTable | ( | const std::vector< int > & | ids, |
const std::vector< std::string > & | names | ||
) |
Definition at line 15 of file CollectionIDTable.cc.
int podio::CollectionIDTable::add | ( | const std::string & | name | ) |
register new name to the table returns assigned collection ID
Definition at line 47 of file CollectionIDTable.cc.
int podio::CollectionIDTable::collectionID | ( | const std::string & | name | ) | const |
return collection ID for given name
Definition at line 26 of file CollectionIDTable.cc.
Referenced by podio::sio_utils::createCollIDBlock().
|
inline |
Does this table hold any information?
Definition at line 54 of file CollectionIDTable.h.
Referenced by podio::SIOFrameData::getIDTable().
|
inline |
return the ids
Definition at line 42 of file CollectionIDTable.h.
Referenced by podio::SIOFrameData::getIDTable(), and podio::root_utils::reconstructCollectionInfo().
const std::string podio::CollectionIDTable::name | ( | int | collectionID | ) | const |
return name for given collection ID
Definition at line 19 of file CollectionIDTable.cc.
Referenced by add(), collectionID(), podio::createCollectionBranches(), podio::SIOFrameData::getAvailableCollections(), and present().
|
inline |
return registered names
Definition at line 37 of file CollectionIDTable.h.
Referenced by podio::SIOFrameData::getCollectionBuffers(), podio::SIOFrameData::getIDTable(), and podio::root_utils::reconstructCollectionInfo().
|
default |
|
delete |
bool podio::CollectionIDTable::present | ( | const std::string & | name | ) | const |
Check if collection name is known.
Definition at line 41 of file CollectionIDTable.cc.
Referenced by podio::SIOFrameData::getCollectionBuffers().
void podio::CollectionIDTable::print | ( | ) | const |
Prints collection information.
Definition at line 33 of file CollectionIDTable.cc.