tfel
Loading...
Searching...
No Matches
tfel::check::Comparison Struct Referenceabstract
Inheritance diagram for tfel::check::Comparison:
tfel::check::AbsoluteComparison tfel::check::AreaComparison tfel::check::MixedComparison tfel::check::RelativeAndAbsoluteComparison tfel::check::RelativeComparison tfel::check::L2Comparison

Public Member Functions

 Comparison (const std::shared_ptr< Column > c1, const std::shared_ptr< Column > c2, const double prec, const double precision2, const std::shared_ptr< Column > ci, const std::string interpolationType, const bool interpolationIsConform, const std::shared_ptr< Column > colIntegralInterpolated, const std::shared_ptr< Interpolation > integralInterpolation)
bool hasSucceed () const
std::string getMsgLog () const
virtual void compare ()=0
 executes the comparison between the values
void setParameters (const std::shared_ptr< Column > c1, const std::shared_ptr< Column > c2, const double prec, const double precision2, const std::shared_ptr< Column > ci, const std::string interpolationType, const bool interpolationIsConform, const std::shared_ptr< Column > colIntegralInterpolated, const std::shared_ptr< Interpolation > integralInterpolation)
 sets the parameters for the comparison
const std::string & getName () const
std::string getLocation (const std::optional< std::size_t > &) const
virtual ~Comparison ()
 destructor

Protected Attributes

bool success
std::string msgLog
std::shared_ptr< Column > c1
std::shared_ptr< Column > c2
double prec
double precision2
std::shared_ptr< Column > ci
std::string interpolationType
bool interpolationIsConform
std::string name
std::shared_ptr< Column > colIntegralInterpolated
std::shared_ptr< Interpolation > integralInterpolation

Member Function Documentation

◆ compare()

virtual void tfel::check::Comparison::compare ( )
pure virtual

◆ getLocation()

std::string tfel::check::Comparison::getLocation ( const std::optional< std::size_t > & ) const
nodiscard
Returns
the location of the given row, i.e. " at line N of file 'f'" for each file from which the values of this row were read, or an empty string if no row is given
Parameters
[in]irow index

◆ getMsgLog()

std::string tfel::check::Comparison::getMsgLog ( ) const
nodiscard
Returns
the log message with comparison info

◆ hasSucceed()

bool tfel::check::Comparison::hasSucceed ( ) const
nodiscard
Returns
true if Comparison has succeed

Member Data Documentation

◆ c2

std::shared_ptr<Column> tfel::check::Comparison::c2
protected

!< the first column on which the comparison will be made

◆ ci

std::shared_ptr<Column> tfel::check::Comparison::ci
protected

!< the optional second precision of the Comparison

◆ colIntegralInterpolated

std::shared_ptr<Column> tfel::check::Comparison::colIntegralInterpolated
protected

!< the name of the comparison !< only for AreaComparison

◆ integralInterpolation

std::shared_ptr<Interpolation> tfel::check::Comparison::integralInterpolation
protected

!< the column used for integration interpolation (abscissa)

◆ interpolationIsConform

bool tfel::check::Comparison::interpolationIsConform
protected

!< the interpolation that has been done

◆ interpolationType

std::string tfel::check::Comparison::interpolationType
protected

!< the column that has been interpolated

◆ msgLog

std::string tfel::check::Comparison::msgLog
protected

!< current Comparison success indicator

◆ name

std::string tfel::check::Comparison::name
protected

!< true if the interpolation isConform

◆ prec

double tfel::check::Comparison::prec
protected

!< the second column on which the comparison will be made

◆ precision2

double tfel::check::Comparison::precision2
protected

!< the precision of the Comparison


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