NumeRe v1.1.4
NumeRe: Framework für Numerische Rechnungen
tablecolumnimpl.hpp File Reference
#include "tablecolumn.hpp"
Include dependency graph for tablecolumnimpl.hpp:
This graph shows which files directly or indirectly include this file:

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...
 

Function Documentation

◆ convert_for_overwrite()

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.

Parameters
colTblColPtr&
colNosize_t
typeTableColumn::ColumnType
Returns
void

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().

Here is the call graph for this function:

◆ convert_if_empty()

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).

Parameters
colTblColPtr&
colNosize_t
typeTableColumn::ColumnType
Returns
void

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().

Here is the call graph for this function:

◆ convert_if_needed()

bool convert_if_needed ( TblColPtr col,
size_t  colNo,
TableColumn::ColumnType  type 
)

Tries to convert a column into the selected column, if possible.

Parameters
colTblColPtr&
colNosize_t
typeTableColumn::ColumnType
Returns
bool

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().

Here is the call graph for this function: