ROOT  6.06/09
Reference Guide
Public Types | Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
_UnitTest_Compare Class Reference

Definition at line 298 of file unittest.h.

Public Types

enum  OptionFuzzy { Fuzzy }
 
enum  OptionNoEq { NoEq }
 

Public Member Functions

template<typename T1 , typename T2 >
Vc_ALWAYS_INLINE _UnitTest_Compare (const T1 &a, const T2 &b, const char *_a, const char *_b, const char *_file, int _line)
 
template<typename T1 , typename T2 >
Vc_ALWAYS_INLINE _UnitTest_Compare (const T1 &a, const T2 &b, const char *_a, const char *_b, const char *_file, int _line, OptionNoEq)
 
template<typename T >
Vc_ALWAYS_INLINE _UnitTest_Compare (const T &a, const T &b, const char *_a, const char *_b, const char *_file, int _line, OptionFuzzy)
 
Vc_ALWAYS_INLINE _UnitTest_Compare (bool good, const char *cond, const char *_file, int _line)
 
Vc_ALWAYS_INLINE _UnitTest_Compare (const char *_file, int _line)
 
template<typename T >
Vc_ALWAYS_INLINE const _UnitTest_Compareoperator<< (const T &x) const
 
Vc_ALWAYS_INLINE const _UnitTest_Compareoperator<< (const char *str) const
 
Vc_ALWAYS_INLINE const _UnitTest_Compareoperator<< (const char ch) const
 
Vc_ALWAYS_INLINE const _UnitTest_Compareoperator<< (bool b) const
 
Vc_ALWAYS_INLINE ~_UnitTest_Compare () throw (_UnitTest_Failure)
 
template<>
void printFuzzyInfo (VC_ALIGNED_PARAMETER(float) a, VC_ALIGNED_PARAMETER(float) b)
 
template<>
void printFuzzyInfo (VC_ALIGNED_PARAMETER(double) a, VC_ALIGNED_PARAMETER(double) b)
 
template<>
void printFuzzyInfo (VC_ALIGNED_PARAMETER(Vc::float_v) a, VC_ALIGNED_PARAMETER(Vc::float_v) b)
 
template<>
void printFuzzyInfo (VC_ALIGNED_PARAMETER(Vc::double_v) a, VC_ALIGNED_PARAMETER(Vc::double_v) b)
 
template<>
void printFuzzyInfo (VC_ALIGNED_PARAMETER(Vc::sfloat_v) a, VC_ALIGNED_PARAMETER(Vc::sfloat_v) b)
 
template<>
void writePlotData (std::fstream &file, VC_ALIGNED_PARAMETER(float) a, VC_ALIGNED_PARAMETER(float) b)
 
template<>
void writePlotData (std::fstream &file, VC_ALIGNED_PARAMETER(double) a, VC_ALIGNED_PARAMETER(double) b)
 
template<>
void writePlotData (std::fstream &file, VC_ALIGNED_PARAMETER(Vc::float_v) a, VC_ALIGNED_PARAMETER(Vc::float_v) b)
 
template<>
void writePlotData (std::fstream &file, VC_ALIGNED_PARAMETER(Vc::double_v) a, VC_ALIGNED_PARAMETER(Vc::double_v) b)
 
template<>
void writePlotData (std::fstream &file, VC_ALIGNED_PARAMETER(Vc::sfloat_v) a, VC_ALIGNED_PARAMETER(Vc::sfloat_v) b)
 

Private Member Functions

void printPosition (const char *_file, int _line)
 

Static Private Member Functions

static Vc_ALWAYS_INLINE size_t getIp ()
 
static void printFirst ()
 
template<typename T >
static void print (const T &x)
 
static void print (const std::type_info &x)
 
static void print (const char *str)
 
static void print (const char ch)
 
static void print (bool b)
 
static void printLast ()
 
template<typename T >
static void writePlotData (std::fstream &file, VC_ALIGNED_PARAMETER(T) a, VC_ALIGNED_PARAMETER(T) b)
 
template<typename T >
static void printFuzzyInfo (VC_ALIGNED_PARAMETER(T) a, VC_ALIGNED_PARAMETER(T) b)
 
template<typename T >
static void printFuzzyInfoImpl (VC_ALIGNED_PARAMETER(T) a, VC_ALIGNED_PARAMETER(T) b, double fuzzyness)
 

Private Attributes

const size_t m_ip
 
const bool m_failed
 

#include </mnt/vdb/lsf/workspace/root-makedoc-v606/rootspi/rdoc/src/v6-06-00-patches/math/vc/tests/unittest.h>

+ Collaboration diagram for _UnitTest_Compare:

Member Enumeration Documentation

Enumerator
Fuzzy 

Definition at line 301 of file unittest.h.

Enumerator
NoEq 

Definition at line 302 of file unittest.h.

Constructor & Destructor Documentation

template<typename T1 , typename T2 >
Vc_ALWAYS_INLINE _UnitTest_Compare::_UnitTest_Compare ( const T1 a,
const T2 b,
const char *  _a,
const char *  _b,
const char *  _file,
int  _line 
)
inline

Definition at line 305 of file unittest.h.

template<typename T1 , typename T2 >
Vc_ALWAYS_INLINE _UnitTest_Compare::_UnitTest_Compare ( const T1 a,
const T2 b,
const char *  _a,
const char *  _b,
const char *  _file,
int  _line,
OptionNoEq   
)
inline

Definition at line 318 of file unittest.h.

template<typename T >
Vc_ALWAYS_INLINE _UnitTest_Compare::_UnitTest_Compare ( const T &  a,
const T &  b,
const char *  _a,
const char *  _b,
const char *  _file,
int  _line,
OptionFuzzy   
)
inline

Definition at line 331 of file unittest.h.

Vc_ALWAYS_INLINE _UnitTest_Compare::_UnitTest_Compare ( bool  good,
const char *  cond,
const char *  _file,
int  _line 
)
inline

Definition at line 347 of file unittest.h.

Vc_ALWAYS_INLINE _UnitTest_Compare::_UnitTest_Compare ( const char *  _file,
int  _line 
)
inline

Definition at line 357 of file unittest.h.

Vc_ALWAYS_INLINE _UnitTest_Compare::~_UnitTest_Compare ( )
throw (_UnitTest_Failure
)
inline

Definition at line 393 of file unittest.h.

Member Function Documentation

static Vc_ALWAYS_INLINE size_t _UnitTest_Compare::getIp ( )
inlinestaticprivate

Definition at line 401 of file unittest.h.

template<typename T >
Vc_ALWAYS_INLINE const _UnitTest_Compare& _UnitTest_Compare::operator<< ( const T &  x) const
inline

Definition at line 365 of file unittest.h.

Vc_ALWAYS_INLINE const _UnitTest_Compare& _UnitTest_Compare::operator<< ( const char *  str) const
inline

Definition at line 372 of file unittest.h.

Vc_ALWAYS_INLINE const _UnitTest_Compare& _UnitTest_Compare::operator<< ( const char  ch) const
inline

Definition at line 379 of file unittest.h.

Vc_ALWAYS_INLINE const _UnitTest_Compare& _UnitTest_Compare::operator<< ( bool  b) const
inline

Definition at line 386 of file unittest.h.

template<typename T >
static void _UnitTest_Compare::print ( const T &  x)
inlinestaticprivate

Definition at line 411 of file unittest.h.

Referenced by _UnitTest_Compare(), operator<<(), and printFuzzyInfoImpl().

static void _UnitTest_Compare::print ( const std::type_info &  x)
inlinestaticprivate

Definition at line 412 of file unittest.h.

static void _UnitTest_Compare::print ( const char *  str)
inlinestaticprivate

Definition at line 413 of file unittest.h.

static void _UnitTest_Compare::print ( const char  ch)
inlinestaticprivate

Definition at line 428 of file unittest.h.

static void _UnitTest_Compare::print ( bool  b)
inlinestaticprivate

Definition at line 435 of file unittest.h.

static void _UnitTest_Compare::printFirst ( )
inlinestaticprivate

Definition at line 410 of file unittest.h.

Referenced by _UnitTest_Compare().

template<typename T >
void _UnitTest_Compare::printFuzzyInfo ( VC_ALIGNED_PARAMETER(T)  a,
VC_ALIGNED_PARAMETER(T)  b 
)
inlinestaticprivate

Definition at line 459 of file unittest.h.

Referenced by _UnitTest_Compare().

template<>
void _UnitTest_Compare::printFuzzyInfo ( VC_ALIGNED_PARAMETER(float)  a,
VC_ALIGNED_PARAMETER(float)  b 
)
inline

Definition at line 460 of file unittest.h.

template<>
void _UnitTest_Compare::printFuzzyInfo ( VC_ALIGNED_PARAMETER(double a,
VC_ALIGNED_PARAMETER(double b 
)
inline

Definition at line 463 of file unittest.h.

template<>
void _UnitTest_Compare::printFuzzyInfo ( VC_ALIGNED_PARAMETER(Vc::float_v a,
VC_ALIGNED_PARAMETER(Vc::float_v b 
)
inline

Definition at line 466 of file unittest.h.

template<>
void _UnitTest_Compare::printFuzzyInfo ( VC_ALIGNED_PARAMETER(Vc::double_v a,
VC_ALIGNED_PARAMETER(Vc::double_v b 
)
inline

Definition at line 469 of file unittest.h.

template<>
void _UnitTest_Compare::printFuzzyInfo ( VC_ALIGNED_PARAMETER(Vc::sfloat_v a,
VC_ALIGNED_PARAMETER(Vc::sfloat_v b 
)
inline

Definition at line 472 of file unittest.h.

template<typename T >
static void _UnitTest_Compare::printFuzzyInfoImpl ( VC_ALIGNED_PARAMETER(T)  a,
VC_ALIGNED_PARAMETER(T)  b,
double  fuzzyness 
)
inlinestaticprivate

Definition at line 450 of file unittest.h.

Referenced by printFuzzyInfo().

static void _UnitTest_Compare::printLast ( )
inlinestaticprivate

Definition at line 438 of file unittest.h.

Referenced by ~_UnitTest_Compare().

void _UnitTest_Compare::printPosition ( const char *  _file,
int  _line 
)
inlineprivate

Definition at line 445 of file unittest.h.

Referenced by _UnitTest_Compare().

template<typename T >
void _UnitTest_Compare::writePlotData ( std::fstream &  file,
VC_ALIGNED_PARAMETER(T)  a,
VC_ALIGNED_PARAMETER(T)  b 
)
inlinestaticprivate

Definition at line 475 of file unittest.h.

Referenced by _UnitTest_Compare().

template<>
void _UnitTest_Compare::writePlotData ( std::fstream &  file,
VC_ALIGNED_PARAMETER(float)  a,
VC_ALIGNED_PARAMETER(float)  b 
)
inline

Definition at line 476 of file unittest.h.

template<>
void _UnitTest_Compare::writePlotData ( std::fstream &  file,
VC_ALIGNED_PARAMETER(double a,
VC_ALIGNED_PARAMETER(double b 
)
inline

Definition at line 479 of file unittest.h.

template<>
void _UnitTest_Compare::writePlotData ( std::fstream &  file,
VC_ALIGNED_PARAMETER(Vc::float_v a,
VC_ALIGNED_PARAMETER(Vc::float_v b 
)
inline

Definition at line 482 of file unittest.h.

template<>
void _UnitTest_Compare::writePlotData ( std::fstream &  file,
VC_ALIGNED_PARAMETER(Vc::double_v a,
VC_ALIGNED_PARAMETER(Vc::double_v b 
)
inline

Definition at line 489 of file unittest.h.

template<>
void _UnitTest_Compare::writePlotData ( std::fstream &  file,
VC_ALIGNED_PARAMETER(Vc::sfloat_v a,
VC_ALIGNED_PARAMETER(Vc::sfloat_v b 
)
inline

Definition at line 496 of file unittest.h.

Member Data Documentation

const bool _UnitTest_Compare::m_failed
private

Definition at line 457 of file unittest.h.

Referenced by _UnitTest_Compare(), operator<<(), and ~_UnitTest_Compare().

const size_t _UnitTest_Compare::m_ip
private

Definition at line 456 of file unittest.h.

Referenced by printPosition().


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