![]() |
ATLAS Offline Software
|
the header information for the entire columnar data vector More...
#include <ColumnVectorWrapper.h>
Public Member Functions | |
| ColumnVectorHeader () | |
| standard contructor | |
| std::size_t | addColumn (const ColumnInfo &columnInfo) |
| add a column for the given ColumnInfo, returning its index | |
| void | setOffsetColumn (std::size_t columnIndex, std::size_t offsetIndex) |
| set the index of the offset column for the given column | |
| std::size_t | numColumns () const noexcept |
| the number of columns in the columnar data vector | |
| const ColumnVectorElementHeader & | getColumn (std::size_t index) const |
| get the column for the given index | |
| std::size_t | getColumnIndex (const std::string &name) const noexcept |
| get the column index for the given name, or nullIndex if not found | |
| std::unordered_map< std::string, ColumnInfo > | getAllColumnInfo () const |
| get all columns as a map of ColumnInfo for use with IColumnData::connect | |
| void | checkSelf () const |
| check the self-consistency of the header | |
| void | checkData (std::span< const void *const > data) const |
| do a basic check of the data vector | |
Static Public Attributes | |
| static constexpr std::size_t | nullIndex = 0u |
| the index used for an invalid index (always has to be 0) | |
| static constexpr std::size_t | sizeIndex = 1u |
| the index used for the column size column | |
| static constexpr std::size_t | unsetIndex = static_cast<std::size_t>(-1) |
| the number used for an unset but non-null index | |
| static constexpr std::size_t | numFixedColumns = 2u |
| the number of fix elements in the columnar data vector | |
Private Attributes | |
| std::vector< ColumnVectorElementHeader > | m_elements |
| the elements in the columnar data vector | |
| std::unordered_map< std::string, std::size_t > | m_nameToIndex |
| map from column name to index for deduplication | |
the header information for the entire columnar data vector
At its core this is just a vector of ColumnVectorElementHeader, with some extra helper functions. Note that this is completely independent of the tool used, and can indeed be used with multiple tools.
Definition at line 114 of file ColumnVectorWrapper.h.
| columnar::ColumnVectorHeader::ColumnVectorHeader | ( | ) |
standard contructor
Definition at line 29 of file ColumnVectorWrapper.cxx.
|
nodiscard |
add a column for the given ColumnInfo, returning its index
Definition at line 47 of file ColumnVectorWrapper.cxx.
| void columnar::ColumnVectorHeader::checkData | ( | std::span< const void *const > | data | ) | const |
do a basic check of the data vector
Definition at line 175 of file ColumnVectorWrapper.cxx.
| void columnar::ColumnVectorHeader::checkSelf | ( | ) | const |
check the self-consistency of the header
Definition at line 136 of file ColumnVectorWrapper.cxx.
|
nodiscard |
get all columns as a map of ColumnInfo for use with IColumnData::connect
Definition at line 307 of file ColumnVectorWrapper.cxx.
|
inlinenodiscard |
|
inlinenodiscardnoexcept |
get the column index for the given name, or nullIndex if not found
Definition at line 154 of file ColumnVectorWrapper.h.
|
inlinenodiscardnoexcept |
the number of columns in the columnar data vector
Definition at line 144 of file ColumnVectorWrapper.h.
| void columnar::ColumnVectorHeader::setOffsetColumn | ( | std::size_t | columnIndex, |
| std::size_t | offsetIndex ) |
set the index of the offset column for the given column
Definition at line 118 of file ColumnVectorWrapper.cxx.
|
private |
the elements in the columnar data vector
Definition at line 174 of file ColumnVectorWrapper.h.
|
private |
map from column name to index for deduplication
Definition at line 177 of file ColumnVectorWrapper.h.
|
staticconstexpr |
the index used for an invalid index (always has to be 0)
Definition at line 121 of file ColumnVectorWrapper.h.
|
staticconstexpr |
the number of fix elements in the columnar data vector
Definition at line 130 of file ColumnVectorWrapper.h.
|
staticconstexpr |
the index used for the column size column
Definition at line 124 of file ColumnVectorWrapper.h.
|
staticconstexpr |
the number used for an unset but non-null index
Definition at line 127 of file ColumnVectorWrapper.h.