PARTONS
|
PARtonic Tomography Of Nucleon Software
|
Comparison report. More...
Public Member Functions | |
ComparisonReport (const NumA::Tolerances &tolerances) | |
Constructor. More... | |
ComparisonReport (const std::string &environmentSetting, const std::string &objectClassNameTested, const std::string &referenceObjectClassName) | |
Constructor. More... | |
ComparisonReport (const ComparisonReport &other) | |
Copy constructor. More... | |
virtual | ~ComparisonReport () |
Destructor. More... | |
void | addComparisonData (const ComparisonData &comparisonData) |
Add comparison data for a single comparison point. More... | |
std::string | toString () const |
Return a pre-formatted characters string for output visualization of class member's values. More... | |
std::string | showComparedDataFailed () const |
Return a pre-formatted characters string for data that have failed the comparison. More... | |
std::string | showComparisonStats () const |
Return a pre-formatted characters string containing general information on the comparison. More... | |
void | clearComparedData () |
Clear vectors containing comparison data (ComparisonData objects) for single points. More... | |
bool | isPassed () const |
Check if the comparison is passed. More... | |
const NumA::Tolerances & | getTolerances () const |
Get tolerance assumed in this test. More... | |
void | setTolerances (const NumA::Tolerances &tolerances) |
Set tolerance assumed in this test. More... | |
size_t | sizeOfComparedDataFailed () const |
Number of data points that have failed the comparison. More... | |
Private Attributes | |
std::string | m_environmentSetting |
String of characters indicating the environment settings. More... | |
std::string | m_objectClassNameTested |
Name of class to be examined. More... | |
std::string | m_referenceObjectClassName |
Name of reference class. More... | |
std::vector< ComparisonData > | m_comparedDataPassed |
Vector containing comparison data for single points that have passed the comparison. More... | |
std::vector< ComparisonData > | m_comparedDataFailed |
Vector containing comparison data for single points that have failed the comparison. More... | |
NumA::Tolerances | m_tolerances |
Tolerance assumed in this test. More... | |
unsigned int | m_numberOfComparedDataPassed |
Number of points that have passed the comparison. More... | |
unsigned int | m_numberOfComparedDataFailed |
Number of points that have failed the comparison. More... | |
Comparison report.
This class stores a comparison result for a set of data.
PARTONS::ComparisonReport::ComparisonReport | ( | const NumA::Tolerances & | tolerances | ) |
Constructor.
tolerances | Tolerance. |
PARTONS::ComparisonReport::ComparisonReport | ( | const std::string & | environmentSetting, |
const std::string & | objectClassNameTested, | ||
const std::string & | referenceObjectClassName | ||
) |
Constructor.
environmentSetting | String of characters indicating the environment settings. |
objectClassNameTested | Name of class to be examined. |
referenceObjectClassName | Name of reference class. |
PARTONS::ComparisonReport::ComparisonReport | ( | const ComparisonReport & | other | ) |
Copy constructor.
other | Object to be copied. |
|
virtual |
Destructor.
void PARTONS::ComparisonReport::addComparisonData | ( | const ComparisonData & | comparisonData | ) |
Add comparison data for a single comparison point.
comparisonData | ComparisonData object containing comparison information for a single point. |
void PARTONS::ComparisonReport::clearComparedData | ( | ) |
Clear vectors containing comparison data (ComparisonData objects) for single points.
const NumA::Tolerances & PARTONS::ComparisonReport::getTolerances | ( | ) | const |
Get tolerance assumed in this test.
bool PARTONS::ComparisonReport::isPassed | ( | ) | const |
Check if the comparison is passed.
void PARTONS::ComparisonReport::setTolerances | ( | const NumA::Tolerances & | tolerances | ) |
Set tolerance assumed in this test.
std::string PARTONS::ComparisonReport::showComparedDataFailed | ( | ) | const |
Return a pre-formatted characters string for data that have failed the comparison.
std::string PARTONS::ComparisonReport::showComparisonStats | ( | ) | const |
Return a pre-formatted characters string containing general information on the comparison.
size_t PARTONS::ComparisonReport::sizeOfComparedDataFailed | ( | ) | const |
Number of data points that have failed the comparison.
std::string PARTONS::ComparisonReport::toString | ( | ) | const |
Return a pre-formatted characters string for output visualization of class member's values.
|
private |
Vector containing comparison data for single points that have failed the comparison.
|
private |
Vector containing comparison data for single points that have passed the comparison.
|
private |
String of characters indicating the environment settings.
|
private |
Number of points that have failed the comparison.
|
private |
Number of points that have passed the comparison.
|
private |
Name of class to be examined.
|
private |
Name of reference class.
|
private |
Tolerance assumed in this test.