NumeRe v1.1.4
NumeRe: Framework für Numerische Rechnungen
|
This class is defined to abstrahize the determination of the correct data object and the calculation of the corresponding indices. More...
#include <dataaccess.hpp>
Public Member Functions | |
DataAccessParser () | |
DataAccessParser default constructor. More... | |
DataAccessParser (StringView sCommand) | |
DataAccessParser constructor. This function will parse the passed command string into the first found data access and determine, whether it is a cluster and calculate the corresponding index set. More... | |
DataAccessParser (const DataAccessParser &_accessParser) | |
DataAccessParser copy constructor. More... | |
void | evalIndices () |
Evaluates open end indices using the identified data object size. More... | |
std::string & | getDataObject () |
Returns a reference to the data object identifier. More... | |
std::string | getIndexString () |
This member function returns the index definitions as a human-readable string. More... | |
Indices & | getIndices () |
Returns a reference to the stored indices. More... | |
bool | isCluster () const |
Determines, whether the data access references a cluster. More... | |
std::vector< size_t > | getDataGridDimensions () const |
Covenience wrapper method for the global function. More... | |
Private Attributes | |
std::string | sDataObject |
Indices | idx |
bool | bIsCluster |
This class is defined to abstrahize the determination of the correct data object and the calculation of the corresponding indices.
Definition at line 37 of file dataaccess.hpp.
DataAccessParser::DataAccessParser | ( | ) |
DataAccessParser default constructor.
Definition at line 31 of file dataaccess.cpp.
DataAccessParser::DataAccessParser | ( | StringView | sCommand | ) |
DataAccessParser constructor. This function will parse the passed command string into the first found data access and determine, whether it is a cluster and calculate the corresponding index set.
sCommand | StringView |
Definition at line 47 of file dataaccess.cpp.
References bIsCluster, getIndices(), NumeReKernel::getInstance(), NumeReKernel::getMemoryManager(), NumeReKernel::getParser(), NumeReKernel::getSettings(), idx, NumeRe::ClusterManager::isCluster(), MemoryManager::isTable(), StringViewBase::length(), sDataObject, StringView::subview(), and StringViewBase::to_string().
DataAccessParser::DataAccessParser | ( | const DataAccessParser & | _accessParser | ) |
DataAccessParser copy constructor.
_accessParser | const DataAccessParser& |
Definition at line 126 of file dataaccess.cpp.
References bIsCluster, idx, and sDataObject.
void DataAccessParser::evalIndices | ( | ) |
Evaluates open end indices using the identified data object size.
Definition at line 141 of file dataaccess.cpp.
References bIsCluster, Indices::col, VectorIndex::front(), NumeRe::ClusterManager::getCluster(), MemoryManager::getCols(), NumeReKernel::getInstance(), MemoryManager::getLines(), NumeReKernel::getMemoryManager(), idx, VectorIndex::isOpenEnd(), Indices::row, sDataObject, VectorIndex::setRange(), and NumeRe::Cluster::size().
Referenced by cmd_resample(), cmd_show(), cmd_smooth(), CopyData(), copyDataToTemporaryTable(), Plot::extractDataValues(), extractRange(), integrateSingleDimensionData(), moveData(), plugin_histogram(), shortTimeFourierAnalysis(), sortData(), and writeAudioFile().
std::vector< size_t > DataAccessParser::getDataGridDimensions | ( | ) | const |
Covenience wrapper method for the global function.
Definition at line 222 of file dataaccess.cpp.
References getDataGridDimensions(), idx, and sDataObject.
Referenced by Plot::extractDataValues().
string & DataAccessParser::getDataObject | ( | ) |
Returns a reference to the data object identifier.
Definition at line 170 of file dataaccess.cpp.
References sDataObject.
Referenced by analyzePulse(), NumeRe::StringFuncHandler::applySpecialStringFuncs(), boneDetection(), calculateSplines(), cmd_delete(), cmd_resample(), cmd_retouch(), cmd_show(), cmd_smooth(), cmd_stats(), CopyData(), copyDataToTemporaryTable(), createDatagrid(), differentiate(), Plot::extractDataValues(), extractRange(), fastFourierTransform(), fastWaveletTransform(), getAccessParserForPlotAndFit(), getIndicesForPlotAndFit(), getSamplesForDatagrid(), integrateSingleDimensionData(), moveData(), plugin_histogram(), regularizeDataSet(), rotateTable(), saveDataObject(), setParametersInWindow(), shortTimeFourierAnalysis(), sortData(), NumeRe::StringParser::storeStringToDataObjects(), and writeAudioFile().
std::string DataAccessParser::getIndexString | ( | ) |
This member function returns the index definitions as a human-readable string.
Definition at line 183 of file dataaccess.cpp.
References Indices::col, idx, Indices::row, and VectorIndex::to_string().
Referenced by cmd_resample(), cmd_retouch(), and cmd_smooth().
Indices & DataAccessParser::getIndices | ( | ) |
Returns a reference to the stored indices.
Definition at line 196 of file dataaccess.cpp.
References idx.
Referenced by NumeRe::StringFuncHandler::applySpecialStringFuncs(), boneDetection(), cmd_delete(), cmd_resample(), cmd_retouch(), cmd_show(), cmd_smooth(), CopyData(), copyDataToTemporaryTable(), createDatagrid(), DataAccessParser(), differentiate(), Plot::extractDataValues(), extractRange(), getAccessParserForPlotAndFit(), getIndicesForPlotAndFit(), getSamplesForDatagrid(), integrateSingleDimensionData(), moveData(), plugin_histogram(), rotateTable(), setParametersInWindow(), shortTimeFourierAnalysis(), sortData(), NumeRe::StringParser::storeStringToDataObjects(), and writeAudioFile().
bool DataAccessParser::isCluster | ( | ) | const |
Determines, whether the data access references a cluster.
Definition at line 209 of file dataaccess.cpp.
References bIsCluster.
Referenced by NumeRe::StringFuncHandler::applySpecialStringFuncs(), cmd_show(), createDatagrid(), Plot::extractDataValues(), getIndicesForPlotAndFit(), getSamplesForDatagrid(), sortData(), and NumeRe::StringParser::storeStringToDataObjects().
|
private |
Definition at line 42 of file dataaccess.hpp.
Referenced by DataAccessParser(), evalIndices(), and isCluster().
|
private |
Definition at line 41 of file dataaccess.hpp.
Referenced by DataAccessParser(), evalIndices(), getDataGridDimensions(), getIndexString(), and getIndices().
|
private |
Definition at line 40 of file dataaccess.hpp.
Referenced by DataAccessParser(), evalIndices(), getDataGridDimensions(), and getDataObject().