#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 229 of file ColumnarToolArray.cxx.
233 {
235 {
236 if (
ptr->dataRef == &other)
238 }
239 }
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 243 of file ColumnarToolArray.cxx.
245 {
247 {
248 if (
ptr->dataRef ==
this)
249 ptr->dataRef =
nullptr;
250 }
251 }
◆ addAccessor()
add an info to the column
Definition at line 271 of file ColumnarToolArray.cxx.
273 {
275 {
277
278
279
280
282 } else
283 {
284 if (val_info.type !=
m_info.type)
285 throw std::runtime_error ("multiple types for column: " + name);
290 if (!val_info.isOptional)
291 m_info.isOptional =
false;
292 if (val_info.offsetName !=
m_info.offsetName)
293 throw std::runtime_error ("inconsistent offset map for column: " + name);
294 }
295
296 if (val_accessorData)
297 {
299 val_accessorData->dataRef = this;
300 }
301 }
@ 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 317 of file ColumnarToolArray.cxx.
319 {
323 for (
auto *ptr :
other.m_accessors)
325 other.m_accessors.clear();
326 }
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 305 of file ColumnarToolArray.cxx.
307 {
310 return;
312 val_accessorData.dataRef = nullptr;
313 }
◆ setIndex()
| void columnar::ColumnDataArray::setIndex |
( |
unsigned | val_index | ) |
|
|
noexcept |
◆ m_accessors
◆ m_info
The documentation for this struct was generated from the following files: