Health-GPS
1.2.2.0
Global Health Policy Simulation model (Health-GPS)
|
Primitive data type DataTable column builder class. More...
#include <column_builder.h>
Public Types | |
using | value_type = typename ColumnType::value_type |
Public Member Functions | |
PrimitiveDataTableColumnBuilder ()=delete | |
PrimitiveDataTableColumnBuilder (std::string name) | |
Initialise a new instance of the PrimitiveDataTableColumnBuilder class. More... | |
std::string | name () const |
Gets the column name. More... | |
std::size_t | size () const |
Gets the column data size. More... | |
std::size_t | null_count () const |
Gets the number of null values in the column data. More... | |
std::size_t | capacity () const |
Gets the builder data capacity. More... | |
void | reserve (std::size_t capacity) |
Reserve builder storage capacity. More... | |
void | append_null () |
Append a single null value. More... | |
void | append_null (const std::size_t count) |
Append multiple null values. More... | |
void | append (const value_type value) |
value_type | value (std::size_t index) const |
Gets the column value at a given index, no boundary checks. More... | |
value_type | operator[] (std::size_t index) const |
Gets the column value at a given index, no boundary checks. More... | |
value_type & | operator[] (std::size_t index) |
Gets the column value at a given index, no boundary checks. More... | |
void | reset () |
Resets the column builder data. More... | |
std::unique_ptr< ColumnType > | build () |
Builds the column with current data. More... | |
Primitive data type DataTable column builder class.
ColumnType |
using hgps::core::PrimitiveDataTableColumnBuilder< ColumnType >::value_type = typename ColumnType::value_type |
|
delete |
|
inlineexplicit |
Initialise a new instance of the PrimitiveDataTableColumnBuilder class.
name | The column name |
|
inline |
|
inline |
Append a single null value.
|
inline |
Append multiple null values.
count | The number of null values to append |
|
inline |
Builds the column with current data.
|
inline |
Gets the builder data capacity.
|
inline |
Gets the column name.
|
inline |
Gets the number of null values in the column data.
|
inline |
Gets the column value at a given index, no boundary checks.
index | Column index |
|
inline |
Gets the column value at a given index, no boundary checks.
index | Column index |
|
inline |
Reserve builder storage capacity.
capacity | new capacity, in number of elements |
|
inline |
Resets the column builder data.
|
inline |
Gets the column data size.
|
inline |
Gets the column value at a given index, no boundary checks.
index | Column index |