Health-GPS
1.2.2.0
Global Health Policy Simulation model (Health-GPS)
|
DataTable columns interface data type. More...
#include <column.h>
Public Member Functions | |
DataTableColumn ()=default | |
Initialises a new instance of the DataTableColumn class. More... | |
DataTableColumn (const DataTableColumn &)=delete | |
DataTableColumn & | operator= (const DataTableColumn &)=delete |
DataTableColumn (DataTableColumn &&)=delete | |
DataTableColumn & | operator= (DataTableColumn &&)=delete |
virtual | ~DataTableColumn () |
Destroys a DataTableColumn instance. More... | |
virtual std::string | type () const noexcept=0 |
Gets the column type name. More... | |
virtual std::string | name () const noexcept=0 |
Gets the column name identifier. More... | |
virtual std::size_t | null_count () const noexcept=0 |
Gets the number of null values in the column data. More... | |
virtual std::size_t | size () const noexcept=0 |
The size of the column data, number of rows. More... | |
virtual bool | is_null (std::size_t index) const noexcept=0 |
Determine whether a column value is null. More... | |
virtual bool | is_valid (std::size_t index) const noexcept=0 |
Determine whether a column value is not null. More... | |
virtual const std::any | value (std::size_t index) const noexcept=0 |
Gets the column value at a given index. More... | |
virtual void | accept (DataTableColumnVisitor &visitor) const =0 |
Double dispatch the column using a visitor implementation. More... | |
DataTable columns interface data type.
|
default |
Initialises a new instance of the DataTableColumn class.
|
delete |
|
delete |
|
inlinevirtual |
Destroys a DataTableColumn instance.
|
pure virtual |
Double dispatch the column using a visitor implementation.
visitor | The visitor instance to accept |
Implemented in hgps::core::StringDataTableColumn, hgps::core::IntegerDataTableColumn, hgps::core::DoubleDataTableColumn, and hgps::core::FloatDataTableColumn.
|
pure virtualnoexcept |
Determine whether a column value is null.
index | Column index to check |
Implemented in hgps::core::PrimitiveDataTableColumn< TYPE >, hgps::core::PrimitiveDataTableColumn< double >, hgps::core::PrimitiveDataTableColumn< std::string >, hgps::core::PrimitiveDataTableColumn< float >, and hgps::core::PrimitiveDataTableColumn< int >.
|
pure virtualnoexcept |
Determine whether a column value is not null.
index | Column index to check |
Implemented in hgps::core::PrimitiveDataTableColumn< TYPE >, hgps::core::PrimitiveDataTableColumn< double >, hgps::core::PrimitiveDataTableColumn< std::string >, hgps::core::PrimitiveDataTableColumn< float >, and hgps::core::PrimitiveDataTableColumn< int >.
|
pure virtualnoexcept |
Gets the column name identifier.
Implemented in hgps::core::PrimitiveDataTableColumn< TYPE >, hgps::core::PrimitiveDataTableColumn< double >, hgps::core::PrimitiveDataTableColumn< std::string >, hgps::core::PrimitiveDataTableColumn< float >, and hgps::core::PrimitiveDataTableColumn< int >.
|
pure virtualnoexcept |
Gets the number of null values in the column data.
Implemented in hgps::core::PrimitiveDataTableColumn< TYPE >, hgps::core::PrimitiveDataTableColumn< double >, hgps::core::PrimitiveDataTableColumn< std::string >, hgps::core::PrimitiveDataTableColumn< float >, and hgps::core::PrimitiveDataTableColumn< int >.
|
delete |
|
delete |
|
pure virtualnoexcept |
The size of the column data, number of rows.
Implemented in hgps::core::PrimitiveDataTableColumn< TYPE >, hgps::core::PrimitiveDataTableColumn< double >, hgps::core::PrimitiveDataTableColumn< std::string >, hgps::core::PrimitiveDataTableColumn< float >, and hgps::core::PrimitiveDataTableColumn< int >.
|
pure virtualnoexcept |
Gets the column type name.
Implemented in hgps::core::StringDataTableColumn, hgps::core::PrimitiveDataTableColumn< TYPE >, hgps::core::PrimitiveDataTableColumn< double >, hgps::core::PrimitiveDataTableColumn< std::string >, hgps::core::PrimitiveDataTableColumn< float >, and hgps::core::PrimitiveDataTableColumn< int >.
|
pure virtualnoexcept |
Gets the column value at a given index.
index | Column index |
Implemented in hgps::core::PrimitiveDataTableColumn< TYPE >, hgps::core::PrimitiveDataTableColumn< double >, hgps::core::PrimitiveDataTableColumn< std::string >, hgps::core::PrimitiveDataTableColumn< float >, and hgps::core::PrimitiveDataTableColumn< int >.