IODA Bundle
odc::Comparator Class Reference

#include <Comparator.h>

Public Member Functions

 Comparator (bool checkMissingFlag=true)
 
void operator() ()
 
void run ()
 
template<typename T1 , typename T2 >
bool compare (T1 &it1, const T1 &end1, T2 &it2, const T2 &end2, const std::string &desc1, const std::string &desc2)
 
template<typename T1 , typename T2 >
bool compare (T1 &it1, const T1 &end1, T2 &it2, const T2 &end2, const std::string &desc1, const std::string &desc2, const std::vector< std::string > &excludedColumnsTypes, const std::vector< std::string > &excludedColumns)
 
void compare (eckit::DataHandle &, eckit::DataHandle &)
 
void compare (const eckit::PathName &, const eckit::PathName &)
 
void compare (const eckit::PathName &pathName1, const eckit::PathName &pathName2, const std::vector< std::string > &excludedColumnsTypes, const std::vector< std::string > &excludedcolumns)
 
void compare (const core::MetaData &metaData1, const core::MetaData &metaData2, const std::set< std::string > &excludedColumnsTypes, const std::set< std::string > &excludedColumns, std::vector< int > &skipCols)
 
void compare (int nCols, const double *data1, const double *data2, const core::MetaData &metaData1, const core::MetaData &metaData2)
 
void compare (int nCols, const double *data1, const double *data2, const core::MetaData &metaData1, const core::MetaData &metaData2, const std::vector< int > &skipCols)
 
void checkMissingFlag (bool v)
 
void raiseNotEqual (const core::Column &, double, double)
 

Static Public Member Functions

static double err (double A, double B)
 
static int same (double A, double B)
 

Private Attributes

long nRow_
 
bool checkMissingFlag_
 
bool NaN_isOK_
 

Detailed Description

Definition at line 37 of file Comparator.h.

Constructor & Destructor Documentation

◆ Comparator()

odc::Comparator::Comparator ( bool  checkMissingFlag = true)

Definition at line 41 of file Comparator.cc.

Member Function Documentation

◆ checkMissingFlag()

void odc::Comparator::checkMissingFlag ( bool  v)
inline

Definition at line 82 of file Comparator.h.

◆ compare() [1/8]

void odc::Comparator::compare ( const core::MetaData metaData1,
const core::MetaData metaData2,
const std::set< std::string > &  excludedColumnsTypes,
const std::set< std::string > &  excludedColumns,
std::vector< int > &  skipCols 
)

Definition at line 197 of file Comparator.cc.

Here is the call graph for this function:

◆ compare() [2/8]

void odc::Comparator::compare ( const eckit::PathName &  ,
const eckit::PathName &   
)

◆ compare() [3/8]

void odc::Comparator::compare ( const eckit::PathName &  pathName1,
const eckit::PathName &  pathName2,
const std::vector< std::string > &  excludedColumnsTypes,
const std::vector< std::string > &  excludedcolumns 
)

◆ compare() [4/8]

void odc::Comparator::compare ( eckit::DataHandle &  l,
eckit::DataHandle &  r 
)

Definition at line 55 of file Comparator.cc.

Here is the call graph for this function:

◆ compare() [5/8]

void odc::Comparator::compare ( int  nCols,
const double *  data1,
const double *  data2,
const core::MetaData metaData1,
const core::MetaData metaData2 
)

Definition at line 95 of file Comparator.cc.

Here is the call graph for this function:

◆ compare() [6/8]

void odc::Comparator::compare ( int  nCols,
const double *  data1,
const double *  data2,
const core::MetaData metaData1,
const core::MetaData metaData2,
const std::vector< int > &  skipCols 
)

Definition at line 105 of file Comparator.cc.

Here is the call graph for this function:

◆ compare() [7/8]

template<typename T1 , typename T2 >
bool odc::Comparator::compare ( T1 &  it1,
const T1 &  end1,
T2 &  it2,
const T2 &  end2,
const std::string &  desc1,
const std::string &  desc2 
)

Definition at line 108 of file Comparator.h.

Here is the caller graph for this function:

◆ compare() [8/8]

template<typename T1 , typename T2 >
bool odc::Comparator::compare ( T1 &  it1,
const T1 &  end1,
T2 &  it2,
const T2 &  end2,
const std::string &  desc1,
const std::string &  desc2,
const std::vector< std::string > &  excludedColumnsTypes,
const std::vector< std::string > &  excludedColumns 
)

Definition at line 116 of file Comparator.h.

Here is the call graph for this function:

◆ err()

static double odc::Comparator::err ( double  A,
double  B 
)
inlinestatic

Definition at line 84 of file Comparator.h.

Here is the caller graph for this function:

◆ operator()()

void odc::Comparator::operator() ( )
inline

Definition at line 41 of file Comparator.h.

Here is the call graph for this function:

◆ raiseNotEqual()

void odc::Comparator::raiseNotEqual ( const core::Column column,
double  d1,
double  d2 
)

Definition at line 87 of file Comparator.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ run()

void odc::Comparator::run ( )
Here is the caller graph for this function:

◆ same()

static int odc::Comparator::same ( double  A,
double  B 
)
inlinestatic

Definition at line 97 of file Comparator.h.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ checkMissingFlag_

bool odc::Comparator::checkMissingFlag_
private

Definition at line 103 of file Comparator.h.

◆ NaN_isOK_

bool odc::Comparator::NaN_isOK_
private

Definition at line 104 of file Comparator.h.

◆ nRow_

long odc::Comparator::nRow_
private

Definition at line 102 of file Comparator.h.


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