Classes | Enumerations | Functions | Variables
tst::Validatrix Namespace Reference

Classes

struct  Type
 
struct  Type< char >
 
struct  Type< double >
 
struct  Type< float >
 
struct  Type< int >
 
struct  Type< long >
 
struct  Type< short >
 
struct  Type< unsigned char >
 
struct  Type< unsigned int >
 
struct  Type< unsigned long >
 
struct  Type< unsigned short >
 
class  Unpack
 

Enumerations

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

Functions

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

Variables

const double kDefaultTolerance = 1e-6
 

Enumeration Type Documentation

Enumerator
eEqual 
eAbsolute 
eRelative 

Definition at line 25 of file Validatrix.h.

Function Documentation

template<typename T >
std::string tst::Validatrix::BeCloseAbs ( const T &  value,
const double  tolerance = kDefaultTolerance 
)
inline
template<typename T >
std::string tst::Validatrix::BeCloseRel ( const T &  value,
const double  tolerance = kDefaultTolerance 
)
inline
template<typename T >
std::string tst::Validatrix::BeCloseRel ( const std::size_t  n,
const T *const  v,
const double  tolerance = kDefaultTolerance 
)
inline

Definition at line 159 of file Validatrix.h.

References eRelative, and Pack().

template<typename T >
std::string tst::Validatrix::BeEqual ( const T &  value)
inline
template<typename T >
std::string tst::Validatrix::BeEqual ( const std::size_t  n,
const T *const  v 
)
inline

Definition at line 136 of file Validatrix.h.

References eEqual, and Pack().

std::string tst::Validatrix::BeLabel ( const string &  tag)
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 
)
inline

Definition at line 147 of file Validatrix.h.

References eAbsolute, and Pack().

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 
)
bool tst::Validatrix::Compare ( const string &  oldFilename,
const string &  newFilename,
const bool  failOnFirst 
)
bool tst::Validatrix::Compare ( istream &  is1,
istream &  is2,
const bool  failOnFirst 
)
char tst::Validatrix::CompareCode ( const CompareType  c)
inline

Definition at line 68 of file Validatrix.h.

References RdGeoCeLDFFitter::c.

Referenced by Pack().

int tst::Validatrix::CompareType ( const char  c)

Definition at line 30 of file Utilities/Testing/Validatrix.cc.

References eAbsolute, eEqual, and eRelative.

istream& tst::Validatrix::operator>> ( istream &  is,
Unpack &  u 
)
template<typename T >
std::string tst::Validatrix::Pack ( const std::size_t  n,
const T *const  v,
const CompareType  c,
const double  tolerance = kDefaultTolerance 
)
inline

Definition at line 78 of file Validatrix.h.

References CompareCode(), eEqual, and kDefaultTolerance.

Referenced by BeCloseAbs(), BeCloseRel(), BeEqual(), CloseAbs(), and Pack().

template<typename T >
std::string tst::Validatrix::Pack ( const T &  value,
const CompareType  c,
const double  tolerance = kDefaultTolerance 
)
inline

Definition at line 98 of file Validatrix.h.

References Pack().

template<typename T >
std::string tst::Validatrix::Pack ( const utl::Trace< T > &  trace,
const CompareType  c,
const double  tolerance = kDefaultTolerance 
)
inline

Definition at line 104 of file Validatrix.h.

References utl::Trace< T >::Begin(), utl::Trace< T >::GetSize(), and Pack().

template<typename T >
std::string tst::Validatrix::Pack ( const std::vector< T > &  vec,
const CompareType  c,
const double  tolerance = kDefaultTolerance 
)
inline

Definition at line 110 of file Validatrix.h.

References RdGeoCeLDFFitter::c, and Pack().

template<typename T >
std::string tst::Validatrix::Pack ( const utl::TimeDistribution< T > &  td,
const CompareType  c,
const double  tolerance = kDefaultTolerance 
)
inline

Definition at line 118 of file Validatrix.h.

References eEqual, and Pack().

Variable Documentation

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

Definition at line 22 of file Validatrix.h.

Referenced by Pack(), and tst::Validatrix::Unpack::Tag().


, generated on Tue Sep 26 2023.