#include <ColumnarToolDataArray.h>
Definition at line 16 of file ColumnarToolDataArray.h.
◆ ColumnDataArray() [1/2]
| columnar::ColumnDataArray::ColumnDataArray |
( |
| ) |
|
|
defaultnoexcept |
◆ ColumnDataArray() [2/2]
standard move constructor
Definition at line 218 of file ColumnarToolArray.cxx.
222 {
224 {
225 if (
ptr->dataRef == &other)
227 }
228 }
std::vector< ColumnAccessorDataArray * > m_accessors
the data on all accessors for this column
ColumnInfo m_info
the column info
◆ ~ColumnDataArray()
| columnar::ColumnDataArray::~ColumnDataArray |
( |
| ) |
|
|
noexcept |
standard destructor
Definition at line 232 of file ColumnarToolArray.cxx.
234 {
236 {
237 if (
ptr->dataRef ==
this)
238 ptr->dataRef =
nullptr;
239 }
240 }
◆ addAccessor()
add an info to the column
Definition at line 260 of file ColumnarToolArray.cxx.
262 {
264 {
266
267
268
269
271 } else
272 {
273 if (val_info.type !=
m_info.type)
274 throw std::runtime_error ("multiple types for column: " + name);
279 if (!val_info.isOptional)
280 m_info.isOptional =
false;
281 if (val_info.offsetName !=
m_info.offsetName)
282 throw std::runtime_error ("inconsistent offset map for column: " + name);
283 }
284
285 if (val_accessorData)
286 {
288 val_accessorData->dataRef = this;
289 }
290 }
@ update
an updateable column
◆ empty()
| bool columnar::ColumnDataArray::empty |
( |
| ) |
const |
|
noexcept |
◆ info()
| const ColumnInfo & columnar::ColumnDataArray::info |
( |
| ) |
const |
|
noexcept |
◆ mergeData()
| void columnar::ColumnDataArray::mergeData |
( |
const std::string & | name, |
|
|
ColumnDataArray && | other ) |
merge the data from another column
Definition at line 306 of file ColumnarToolArray.cxx.
308 {
312 for (
auto *ptr :
other.m_accessors)
314 other.m_accessors.clear();
315 }
void mergeColumnInfo(ColumnInfo &target, const ColumnInfo &source)
void addAccessor(const std::string &name, const ColumnInfo &val_info, ColumnAccessorDataArray *val_accessorData)
add an info to the column
◆ operator=()
◆ removeAccessor()
remove an accessor data object
Definition at line 294 of file ColumnarToolArray.cxx.
296 {
299 return;
301 val_accessorData.dataRef = nullptr;
302 }
◆ setIndex()
| void columnar::ColumnDataArray::setIndex |
( |
unsigned | val_index | ) |
|
|
noexcept |
◆ m_accessors
◆ m_info
The documentation for this struct was generated from the following files: