NumeRe v1.1.4
NumeRe: Framework für Numerische Rechnungen
|
This class is a facet for an arbitrary GenericFile instance. It can be used to read the contents of the contained file more easily. More...
#include <file.hpp>
Public Member Functions | |
GenericFileView () | |
Default constructor. More... | |
GenericFileView (GenericFile *_file) | |
Constructor from an available GenericFile instance. More... | |
void | attach (GenericFile *_file) |
Attaches a new GenericFile instance to this facet class. More... | |
GenericFile * | getPtr () |
Returns the internally stored GenericFile instance pointer. More... | |
long long int | getCols () const |
Returns the number of columns in the internally stored GenericFile instance. More... | |
long long int | getRows () const |
Returns the number of rows in the internally stored GenericFile instance. More... | |
mu::value_type | getElement (long long int row, long long int col) const |
Returns the value stored at the passed positions. A default constructed mu::value_type object instance is returned, if the element does not exist. More... | |
std::string | getStringElement (long long int row, long long int col) const |
Returns the value stored at the passed positions. An empty string is returned, if the element does not exist. More... | |
std::string | getColumnHead (long long int col) const |
Returns the column heading stored for the passed column. Returns an empty string, if the column does not exist. More... | |
Private Attributes | |
GenericFile * | m_file |
This class is a facet for an arbitrary GenericFile instance. It can be used to read the contents of the contained file more easily.
|
inline |
|
inline |
Constructor from an available GenericFile instance.
_file | GenericFile* |
|
inline |
Attaches a new GenericFile instance to this facet class.
_file | GenericFile* |
Definition at line 1291 of file file.hpp.
References m_file.
|
inline |
Returns the number of columns in the internally stored GenericFile instance.
Definition at line 1315 of file file.hpp.
References NumeRe::GenericFile::getCols(), and m_file.
Referenced by NumeRe::SavitzkyGolayFilter::findColumn().
|
inline |
Returns the column heading stored for the passed column. Returns an empty string, if the column does not exist.
col | long long int |
Definition at line 1404 of file file.hpp.
References NumeRe::GenericFile::getCols(), NumeRe::GenericFile::getData(), and m_file.
Referenced by NumeRe::SavitzkyGolayFilter::findColumn().
|
inline |
Returns the value stored at the passed positions. A default constructed mu::value_type object instance is returned, if the element does not exist.
row | long long int |
col | long long int |
Definition at line 1349 of file file.hpp.
References NumeRe::GenericFile::getCols(), NumeRe::GenericFile::getData(), NumeRe::GenericFile::getRows(), and m_file.
Referenced by NumeRe::SavitzkyGolayFilter::createKernel().
|
inline |
Returns the internally stored GenericFile instance pointer.
Definition at line 1303 of file file.hpp.
References m_file.
|
inline |
Returns the number of rows in the internally stored GenericFile instance.
Definition at line 1330 of file file.hpp.
References NumeRe::GenericFile::getRows(), and m_file.
|
inline |
Returns the value stored at the passed positions. An empty string is returned, if the element does not exist.
row | long long int |
col | long long int |
Definition at line 1377 of file file.hpp.
References NumeRe::GenericFile::getCols(), NumeRe::GenericFile::getData(), NumeRe::GenericFile::getRows(), and m_file.
|
private |
Definition at line 1266 of file file.hpp.
Referenced by attach(), getCols(), getColumnHead(), getElement(), getPtr(), getRows(), and getStringElement().