Teuchos Package Browser (Single Doxygen Collection)  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Public Attributes | List of all members
Teuchos::ValueTolerance Struct Reference

ValueTolerance is a struct to keep a tuple of value and a tolerance. The tolerance can be either expressed as a relative or through an upper and lower bound. More...

#include <Teuchos_XMLPerfTestArchive.hpp>

Public Member Functions

 ValueTolerance ()
 
 ValueTolerance (double val, double tol)
 
 ValueTolerance (double val, double low, double up)
 
 ValueTolerance (std::string str)
 
bool operator== (ValueTolerance &rhs)
 
std::string as_string ()
 
void from_string (const std::string &valtol_str)
 

Public Attributes

double value
 
double lower
 
double upper
 
double tolerance
 
bool use_tolerance
 

Detailed Description

ValueTolerance is a struct to keep a tuple of value and a tolerance. The tolerance can be either expressed as a relative or through an upper and lower bound.

Definition at line 99 of file Teuchos_XMLPerfTestArchive.hpp.

Constructor & Destructor Documentation

Teuchos::ValueTolerance::ValueTolerance ( )

Definition at line 25 of file Teuchos_XMLPerfTestArchive.cpp.

Teuchos::ValueTolerance::ValueTolerance ( double  val,
double  tol 
)

Definition at line 33 of file Teuchos_XMLPerfTestArchive.cpp.

Teuchos::ValueTolerance::ValueTolerance ( double  val,
double  low,
double  up 
)

Definition at line 41 of file Teuchos_XMLPerfTestArchive.cpp.

Teuchos::ValueTolerance::ValueTolerance ( std::string  str)

Definition at line 49 of file Teuchos_XMLPerfTestArchive.cpp.

Member Function Documentation

bool Teuchos::ValueTolerance::operator== ( ValueTolerance rhs)

Definition at line 53 of file Teuchos_XMLPerfTestArchive.cpp.

std::string Teuchos::ValueTolerance::as_string ( )

Definition at line 61 of file Teuchos_XMLPerfTestArchive.cpp.

void Teuchos::ValueTolerance::from_string ( const std::string &  valtol_str)

Definition at line 70 of file Teuchos_XMLPerfTestArchive.cpp.

Member Data Documentation

double Teuchos::ValueTolerance::value

Definition at line 100 of file Teuchos_XMLPerfTestArchive.hpp.

double Teuchos::ValueTolerance::lower

Definition at line 101 of file Teuchos_XMLPerfTestArchive.hpp.

double Teuchos::ValueTolerance::upper

Definition at line 102 of file Teuchos_XMLPerfTestArchive.hpp.

double Teuchos::ValueTolerance::tolerance

Definition at line 103 of file Teuchos_XMLPerfTestArchive.hpp.

bool Teuchos::ValueTolerance::use_tolerance

Definition at line 104 of file Teuchos_XMLPerfTestArchive.hpp.


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