![]() |
ATLAS Offline Software
|
a class that holds the columnar data for a single call More...
#include <ColumnVectorWrapper.h>
Public Member Functions | |
| ColumnVectorData (const ColumnVectorHeader *val_header) | |
| standard constructor | |
| template<typename CT> | |
| void | setColumn (std::size_t columnIndex, std::size_t size, CT *dataPtr) |
| set the data for the given column | |
| void | setColumnVoid (std::size_t columnIndex, std::size_t size, const void *dataPtr, const std::type_info *type, ColumnTypeCategory typeCategory, unsigned sizeOfType, bool isConst) |
| template<typename CT> | |
| std::pair< std::size_t, CT * > | getColumn (std::size_t columnIndex) |
| get the data for the given column | |
| std::pair< std::size_t, const void * > | getColumnVoid (std::size_t columnIndex, const std::type_info *type, ColumnTypeCategory typeCategory, unsigned sizeOfType, bool isConst) const |
| void | checkData () const |
| do a basic check of the data vector | |
| void | callNoCheck (const IColumnarTool &tool) |
| call the tool with the assembled data, without performing any checks on the data | |
Private Attributes | |
| const ColumnVectorHeader * | m_header = nullptr |
| std::vector< void * > | m_data |
| std::vector< std::size_t > | m_dataSize |
a class that holds the columnar data for a single call
This manages the data pointer and makes sure the data is set and retrieved in a consistent manner to the header information.
Definition at line 197 of file ColumnVectorWrapper.h.
|
explicit |
standard constructor
Definition at line 275 of file ColumnVectorWrapper.cxx.
| void columnar::ColumnVectorData::callNoCheck | ( | const IColumnarTool & | tool | ) |
call the tool with the assembled data, without performing any checks on the data
Definition at line 337 of file ColumnVectorWrapper.cxx.
|
inline |
do a basic check of the data vector
Definition at line 239 of file ColumnVectorWrapper.h.
|
inlinenodiscard |
get the data for the given column
Definition at line 226 of file ColumnVectorWrapper.h.
|
nodiscard |
Definition at line 319 of file ColumnVectorWrapper.cxx.
|
inline |
set the data for the given column
The type has to match the type of the column, or its category and size have to be compatible with those of the column (see isColumnTypeCompatible). For the void version type can be nullptr, in which case only the category and size are checked, e.g. when the data comes from python and there is no C++ type for it.
Definition at line 216 of file ColumnVectorWrapper.h.
| void columnar::ColumnVectorData::setColumnVoid | ( | std::size_t | columnIndex, |
| std::size_t | size, | ||
| const void * | dataPtr, | ||
| const std::type_info * | type, | ||
| ColumnTypeCategory | typeCategory, | ||
| unsigned | sizeOfType, | ||
| bool | isConst ) |
Definition at line 286 of file ColumnVectorWrapper.cxx.
|
private |
Definition at line 253 of file ColumnVectorWrapper.h.
|
private |
Definition at line 254 of file ColumnVectorWrapper.h.
|
private |
Definition at line 252 of file ColumnVectorWrapper.h.