last update 20 Sep 2009 |
#include <cvrValidator.h>
Classes | |
class | parameters |
The parameters for the class validator. More... | |
Public Member Functions | |
typedef bool() | doubleValidator (double) |
typedef bool() | floatValidator (float) |
validator () | |
validator (const validator &other) | |
virtual | ~validator () |
bool | apply (const vector< double > &src) const |
bool | apply (const vector< float > &src) const |
bool | apply (const vector< dcomplex > &src) const |
bool | apply (const vector< fcomplex > &src) const |
bool | apply (const matrix< double > &src) const |
bool | apply (const matrix< float > &src) const |
bool | apply (const matrix< dcomplex > &src) const |
bool | apply (const matrix< fcomplex > &src) const |
validator & | copy (const validator &other) |
validator & | operator= (const validator &other) |
virtual const std::string & | name () const |
virtual functor * | clone () const |
virtual functor * | newInstance () const |
const parameters & | getParameters () const |
Checks the validity of a matrix or vector with float or double elements. A matrix is invalid, if it contains nan or inf elements. Otherwise, it is assumed to be valid.
cvr::validator::validator | ( | ) |
Default constructor.
cvr::validator::validator | ( | const validator & | other | ) |
virtual cvr::validator::~validator | ( | ) | [virtual] |
Destructor.
Operates on the given parameter.
src | matrix<float> with the source data. |
Operates on the given parameter.
src | matrix<double> with the source data. |
bool cvr::validator::apply | ( | const matrix< float > & | src | ) | const |
Operates on the given parameter.
src | matrix<float> with the source data. |
bool cvr::validator::apply | ( | const matrix< double > & | src | ) | const |
Operates on the given parameter.
src | matrix<double> with the source data. |
Operates on the given parameter.
src | vector<float> with the source data. |
Operates on the given parameter.
src | vector<double> with the source data. |
bool cvr::validator::apply | ( | const vector< float > & | src | ) | const |
Operates on the given parameter.
src | vector<float> with the source data. |
bool cvr::validator::apply | ( | const vector< double > & | src | ) | const |
Operates on the given parameter.
src | vector<double> with the source data. |
virtual functor* cvr::validator::clone | ( | ) | const [virtual] |
typedef bool() cvr::validator::doubleValidator | ( | double | ) |
Type of a function that checks a single double value.
typedef bool() cvr::validator::floatValidator | ( | float | ) |
Type of a function that checks a single float value.
const parameters& cvr::validator::getParameters | ( | ) | const |
virtual const std::string& cvr::validator::name | ( | ) | const [virtual] |
virtual functor* cvr::validator::newInstance | ( | ) | const [virtual] |