NumeRe v1.1.4
NumeRe: Framework für Numerische Rechnungen
DataAccessParser Class Reference

This class is defined to abstrahize the determination of the correct data object and the calculation of the corresponding indices. More...

#include <dataaccess.hpp>

Collaboration diagram for DataAccessParser:

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

Detailed Description

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.

Constructor & Destructor Documentation

◆ DataAccessParser() [1/3]

DataAccessParser::DataAccessParser ( )

DataAccessParser default constructor.

Definition at line 31 of file dataaccess.cpp.

◆ DataAccessParser() [2/3]

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.

Parameters
sCommandStringView

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

Here is the call graph for this function:

◆ DataAccessParser() [3/3]

DataAccessParser::DataAccessParser ( const DataAccessParser _accessParser)

DataAccessParser copy constructor.

Parameters
_accessParserconst DataAccessParser&

Definition at line 126 of file dataaccess.cpp.

References bIsCluster, idx, and sDataObject.

Member Function Documentation

◆ evalIndices()

void DataAccessParser::evalIndices ( )

◆ getDataGridDimensions()

std::vector< size_t > DataAccessParser::getDataGridDimensions ( ) const

Covenience wrapper method for the global function.

Returns
std::vector<size_t>

Definition at line 222 of file dataaccess.cpp.

References getDataGridDimensions(), idx, and sDataObject.

Referenced by Plot::extractDataValues().

Here is the call graph for this function:

◆ getDataObject()

◆ getIndexString()

std::string DataAccessParser::getIndexString ( )

This member function returns the index definitions as a human-readable string.

Returns
std::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().

Here is the call graph for this function:

◆ getIndices()

◆ isCluster()

bool DataAccessParser::isCluster ( ) const

Member Data Documentation

◆ bIsCluster

bool DataAccessParser::bIsCluster
private

Definition at line 42 of file dataaccess.hpp.

Referenced by DataAccessParser(), evalIndices(), and isCluster().

◆ idx

Indices DataAccessParser::idx
private

◆ sDataObject

std::string DataAccessParser::sDataObject
private

Definition at line 40 of file dataaccess.hpp.

Referenced by DataAccessParser(), evalIndices(), getDataGridDimensions(), and getDataObject().


The documentation for this class was generated from the following files: