![]() |
ATLAS Offline Software
|
the header information for the entire columnar data vector More...
#include <ColumnVectorWrapper.h>
Public Member Functions | |
ColumnVectorHeader () | |
standard contructor More... | |
std::size_t | addColumn (const ColumnInfo &columnInfo) |
add a column for the given ColumnInfo, returning its index More... | |
void | setOffsetColumn (std::size_t columnIndex, std::size_t offsetIndex) |
set the index of the offset column for the given column More... | |
std::size_t | numColumns () const noexcept |
the number of columns in the columnar data vector More... | |
const ColumnVectorElementHeader & | getColumn (std::size_t index) const |
get the column for the given index More... | |
void | checkSelf () const |
check the self-consistency of the header More... | |
void | checkData (std::span< const void *const > data) const |
do a basic check of the data vector More... | |
Static Public Attributes | |
static constexpr std::size_t | nullIndex = 0u |
the index used for an invalid index (always has to be 0) More... | |
static constexpr std::size_t | sizeIndex = 1u |
the index used for the column size column More... | |
static constexpr std::size_t | unsetIndex = static_cast<std::size_t>(-1) |
the number used for an unset but non-null index More... | |
static constexpr std::size_t | numFixedColumns = 2u |
the number of fix elements in the columnar data vector More... | |
Private Attributes | |
std::vector< ColumnVectorElementHeader > | m_elements |
the elements in the columnar data vector More... | |
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 96 of file ColumnVectorWrapper.h.
columnar::ColumnVectorHeader::ColumnVectorHeader | ( | ) |
std::size_t columnar::ColumnVectorHeader::addColumn | ( | const ColumnInfo & | columnInfo | ) |
add a column for the given ColumnInfo, returning its index
Definition at line 46 of file ColumnVectorWrapper.cxx.
do a basic check of the data vector
Definition at line 136 of file ColumnVectorWrapper.cxx.
void columnar::ColumnVectorHeader::checkSelf | ( | ) | const |
check the self-consistency of the header
Definition at line 97 of file ColumnVectorWrapper.cxx.
|
inline |
|
inlinenoexcept |
the number of columns in the columnar data vector
Definition at line 126 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 79 of file ColumnVectorWrapper.cxx.
|
private |
the elements in the columnar data vector
Definition at line 147 of file ColumnVectorWrapper.h.
|
staticconstexpr |
the index used for an invalid index (always has to be 0)
Definition at line 103 of file ColumnVectorWrapper.h.
|
staticconstexpr |
the number of fix elements in the columnar data vector
Definition at line 112 of file ColumnVectorWrapper.h.
|
staticconstexpr |
the index used for the column size column
Definition at line 106 of file ColumnVectorWrapper.h.
|
staticconstexpr |
the number used for an unset but non-null index
Definition at line 109 of file ColumnVectorWrapper.h.