NumeRe v1.1.4
NumeRe: Framework für Numerische Rechnungen
|
#include "tablecolumn.hpp"
Go to the source code of this file.
Classes | |
class | ValueColumn |
A table column containing only numerical values. More... | |
class | DateTimeColumn |
A table column containing numerical values formatted as dates and times. More... | |
class | LogicalColumn |
A table column containing logical values. More... | |
class | StringColumn |
A table column containing only strings as values. More... | |
class | CategoricalColumn |
A table column containing categorical values. More... | |
Functions | |
void | convert_if_empty (TblColPtr &col, size_t colNo, TableColumn::ColumnType type) |
Tries to convert a column if the column does not contain any data (with the exception of the header). More... | |
bool | convert_if_needed (TblColPtr &col, size_t colNo, TableColumn::ColumnType type) |
Tries to convert a column into the selected column, if possible. More... | |
void | convert_for_overwrite (TblColPtr &col, size_t colNo, TableColumn::ColumnType type) |
This function deletes the contents of a column, if necessary, and creates a new column with the correct type. More... | |
void convert_for_overwrite | ( | TblColPtr & | col, |
size_t | colNo, | ||
TableColumn::ColumnType | type | ||
) |
This function deletes the contents of a column, if necessary, and creates a new column with the correct type.
col | TblColPtr& |
colNo | size_t |
type | TableColumn::ColumnType |
Definition at line 2361 of file tablecolumnimpl.cpp.
References convert_if_empty(), TableColumn::getDefaultColumnHead(), TableColumn::TYPE_CATEGORICAL, TableColumn::TYPE_DATETIME, TableColumn::TYPE_LOGICAL, TableColumn::TYPE_STRING, and TableColumn::TYPE_VALUE.
Referenced by MemoryManager::overwriteColumn(), Memory::writeData(), and Memory::writeSingletonData().
void convert_if_empty | ( | TblColPtr & | col, |
size_t | colNo, | ||
TableColumn::ColumnType | type | ||
) |
Tries to convert a column if the column does not contain any data (with the exception of the header).
col | TblColPtr& |
colNo | size_t |
type | TableColumn::ColumnType |
Definition at line 2280 of file tablecolumnimpl.cpp.
References TableColumn::getDefaultColumnHead(), TableColumn::TYPE_CATEGORICAL, TableColumn::TYPE_DATETIME, TableColumn::TYPE_LOGICAL, TableColumn::TYPE_STRING, and TableColumn::TYPE_VALUE.
Referenced by convert_for_overwrite(), convert_if_needed(), NumeRe::Table::setValue(), Memory::writeData(), and Memory::writeDataDirect().
bool convert_if_needed | ( | TblColPtr & | col, |
size_t | colNo, | ||
TableColumn::ColumnType | type | ||
) |
Tries to convert a column into the selected column, if possible.
col | TblColPtr& |
colNo | size_t |
type | TableColumn::ColumnType |
Definition at line 2325 of file tablecolumnimpl.cpp.
References TableColumn::convert(), convert_if_empty(), TableColumn::TYPE_CATEGORICAL, and TableColumn::TYPE_STRING.
Referenced by NumeRe::Table::setColumnType(), and NumeRe::Table::setValueAsString().