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 131 of file Teuchos_XMLPerfTestArchive.hpp.

Constructor & Destructor Documentation

Teuchos::ValueTolerance::ValueTolerance ( )

Definition at line 58 of file Teuchos_XMLPerfTestArchive.cpp.

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

Definition at line 66 of file Teuchos_XMLPerfTestArchive.cpp.

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

Definition at line 74 of file Teuchos_XMLPerfTestArchive.cpp.

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

Definition at line 82 of file Teuchos_XMLPerfTestArchive.cpp.

Member Function Documentation

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

Definition at line 86 of file Teuchos_XMLPerfTestArchive.cpp.

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

Definition at line 94 of file Teuchos_XMLPerfTestArchive.cpp.

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

Definition at line 103 of file Teuchos_XMLPerfTestArchive.cpp.

Member Data Documentation

double Teuchos::ValueTolerance::value

Definition at line 132 of file Teuchos_XMLPerfTestArchive.hpp.

double Teuchos::ValueTolerance::lower

Definition at line 133 of file Teuchos_XMLPerfTestArchive.hpp.

double Teuchos::ValueTolerance::upper

Definition at line 134 of file Teuchos_XMLPerfTestArchive.hpp.

double Teuchos::ValueTolerance::tolerance

Definition at line 135 of file Teuchos_XMLPerfTestArchive.hpp.

bool Teuchos::ValueTolerance::use_tolerance

Definition at line 136 of file Teuchos_XMLPerfTestArchive.hpp.


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