Structure to hold the index of tables within a DataCard.
More...
#include <opatIO.h>
|
std::ostream & | operator<< (std::ostream &os, const TableIndex &index) |
| Stream insertion operator for printing the table index.
|
|
Structure to hold the index of tables within a DataCard.
The TableIndex maps table tags to their corresponding TableIndexEntry, enabling fast lookups within one datacard.
◆ get()
const TableIndexEntry & opat::TableIndex::get |
( |
const std::string & | tag | ) |
const |
|
nodiscard |
Retrieves a TableIndexEntry by tag.
- Parameters
-
tag | The tag of the table to retrieve. |
- Returns
- A constant reference to the TableIndexEntry.
- Exceptions
-
std::out_of_range | if the tag is not found. |
◆ operator[]()
const TableIndexEntry & opat::TableIndex::operator[] |
( |
const std::string & | tag | ) |
const |
Accesses a TableIndexEntry by tag.
- Parameters
-
tag | The tag of the table to access. |
- Returns
- A constant reference to the TableIndexEntry.
- Exceptions
-
std::out_of_range | if the tag is not found. |
◆ operator<<
std::ostream & operator<< |
( |
std::ostream & | os, |
|
|
const TableIndex & | index ) |
|
friend |
Stream insertion operator for printing the table index.
- Parameters
-
- Returns
- Reference to the output stream.
◆ tableIndex
std::unordered_map<std::string, TableIndexEntry> opat::TableIndex::tableIndex |
Map of table tags to index entries.
The documentation for this struct was generated from the following files: