Classes | Namespaces | Enumerations | Functions | Variables
Validatrix.h File Reference
#include <utl/Trace.h>
#include <utl/TimeDistribution.h>
#include <string>
#include <vector>
#include <iostream>
#include <sstream>

Go to the source code of this file.

Classes

struct  tst::Validatrix::Type< T >
 
struct  tst::Validatrix::Type< char >
 
struct  tst::Validatrix::Type< double >
 
struct  tst::Validatrix::Type< float >
 
struct  tst::Validatrix::Type< int >
 
struct  tst::Validatrix::Type< long >
 
struct  tst::Validatrix::Type< short >
 
struct  tst::Validatrix::Type< unsigned char >
 
struct  tst::Validatrix::Type< unsigned int >
 
struct  tst::Validatrix::Type< unsigned long >
 
struct  tst::Validatrix::Type< unsigned short >
 

Namespaces

 tst
 
 tst::Validatrix
 

Enumerations

enum  tst::Validatrix::CompareType { tst::Validatrix::eEqual = 0, tst::Validatrix::eAbsolute = 1, tst::Validatrix::eRelative = 2 }
 

Functions

template<typename T >
std::string tst::Validatrix::BeCloseAbs (const T &value, const double tolerance=kDefaultTolerance)
 
template<typename T >
std::string tst::Validatrix::BeCloseRel (const T &value, const double tolerance=kDefaultTolerance)
 
template<typename T >
std::string tst::Validatrix::BeCloseRel (const std::size_t n, const T *const v, const double tolerance=kDefaultTolerance)
 
template<typename T >
std::string tst::Validatrix::BeEqual (const T &value)
 
template<typename T >
std::string tst::Validatrix::BeEqual (const std::size_t n, const T *const v)
 
std::string tst::Validatrix::BeLabel (const std::string &tag)
 
template<typename T >
std::string tst::Validatrix::CloseAbs (const std::size_t n, const T *const v, const double tolerance=kDefaultTolerance)
 
bool tst::Validatrix::Compare (const std::string &oldFilename, const std::string &newFilename, const bool failOnFirst=true)
 
bool tst::Validatrix::Compare (std::istream &s1, std::istream &s2, const bool failOnFirst=true)
 
char tst::Validatrix::CompareCode (const CompareType c)
 
template<typename T >
std::string tst::Validatrix::Pack (const std::size_t n, const T *const v, const CompareType c, const double tolerance=kDefaultTolerance)
 
template<typename T >
std::string tst::Validatrix::Pack (const T &value, const CompareType c, const double tolerance=kDefaultTolerance)
 
template<typename T >
std::string tst::Validatrix::Pack (const utl::Trace< T > &trace, const CompareType c, const double tolerance=kDefaultTolerance)
 
template<typename T >
std::string tst::Validatrix::Pack (const std::vector< T > &vec, const CompareType c, const double tolerance=kDefaultTolerance)
 
template<typename T >
std::string tst::Validatrix::Pack (const utl::TimeDistribution< T > &td, const CompareType c, const double tolerance=kDefaultTolerance)
 

Variables

const double tst::Validatrix::kDefaultTolerance = 1e-6
 

, generated on Tue Sep 26 2023.