Class podio::CollectionIDTable
-
class CollectionIDTable
Public Functions
-
CollectionIDTable()
-
~CollectionIDTable() = default
-
CollectionIDTable(const CollectionIDTable&) = delete
-
CollectionIDTable &operator=(const CollectionIDTable&) = delete
-
CollectionIDTable(CollectionIDTable&&) = default
-
CollectionIDTable &operator=(CollectionIDTable&&) = default
-
CollectionIDTable(std::vector<uint32_t> &&ids, std::vector<std::string> &&names)
constructor from existing ID:name mapping
-
CollectionIDTable(const std::vector<uint32_t> &ids, const std::vector<std::string> &names)
-
std::optional<uint32_t> collectionID(const std::string &name) const
return collection ID for given name
-
std::optional<const std::string> name(uint32_t collectionID) const
return name for given collection ID
-
bool present(const std::string &name) const
Check if collection name is known.
-
bool present(uint32_t collectionID) const
Check if collection ID is known.
-
inline const std::vector<std::string> &names() const
return registered names
-
inline const std::vector<uint32_t> &ids() const
return the ids
-
uint32_t add(const std::string &name)
register new name to the table returns assigned collection ID
-
void print() const
Prints collection information.
-
inline bool empty() const
Does this table hold any information?
-
CollectionIDTable()