#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 232 of file ColumnarToolArray.cxx.
236 {
238 {
239 if (
ptr->dataRef == &other)
241 }
242 }
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 246 of file ColumnarToolArray.cxx.
248 {
250 {
251 if (
ptr->dataRef ==
this)
252 ptr->dataRef =
nullptr;
253 }
254 }
◆ addAccessor()
add an info to the column
Definition at line 274 of file ColumnarToolArray.cxx.
276 {
278 {
280
281
282
283
285 } else
286 {
287 if (val_info.type !=
m_info.type)
288 throw std::runtime_error ("multiple types for column: " + name);
293 if (!val_info.isOptional)
294 m_info.isOptional =
false;
295 if (val_info.offsetName !=
m_info.offsetName)
296 throw std::runtime_error ("inconsistent offset map for column: " + name);
297 }
298
299 if (val_accessorData)
300 {
302 val_accessorData->dataRef = this;
303 }
304 }
@ 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 320 of file ColumnarToolArray.cxx.
322 {
326 for (
auto *ptr :
other.m_accessors)
328 other.m_accessors.clear();
329 }
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 308 of file ColumnarToolArray.cxx.
310 {
313 return;
315 val_accessorData.dataRef = nullptr;
316 }
◆ setIndex()
| void columnar::ColumnDataArray::setIndex |
( |
unsigned | val_index | ) |
|
|
noexcept |
◆ m_accessors
◆ m_info
The documentation for this struct was generated from the following files: