MOAB: Mesh Oriented datABase
(version 5.4.1)
|
#include <CLArgs.hpp>
Public Member Functions | |
DoubleRange (const double *min, const double *max, bool inclusive) | |
bool | is_valid (double value) const |
std::string | desc_append () const |
Private Attributes | |
bool | haveMin |
bool | haveMax |
bool | mInclusive |
double | mMin |
double | mMax |
Definition at line 289 of file CLArgs.hpp.
CLArgs::DoubleRange::DoubleRange | ( | const double * | min, |
const double * | max, | ||
bool | inclusive | ||
) |
std::string CLArgs::DoubleRange::desc_append | ( | ) | const |
Definition at line 514 of file CLArgs.cpp.
Referenced by CLArgs::DoubleRangeArg::desc_append(), and CLArgs::DoubleListRangeArg::desc_append().
{ std::ostringstream ss; if( mInclusive && haveMin ) ss << '['; else ss << '('; if( haveMin ) ss << mMin; else ss << "-inf"; ss << ","; if( haveMax ) ss << mMax; else ss << "inf"; if( mInclusive && haveMax ) ss << ']'; else ss << ')'; return ss.str(); }
bool CLArgs::DoubleRange::is_valid | ( | double | value | ) | const |
bool CLArgs::DoubleRange::haveMax [private] |
Definition at line 292 of file CLArgs.hpp.
Referenced by DoubleRange().
bool CLArgs::DoubleRange::haveMin [private] |
Definition at line 292 of file CLArgs.hpp.
Referenced by DoubleRange().
bool CLArgs::DoubleRange::mInclusive [private] |
Definition at line 292 of file CLArgs.hpp.
double CLArgs::DoubleRange::mMax [private] |
Definition at line 293 of file CLArgs.hpp.
Referenced by DoubleRange().
double CLArgs::DoubleRange::mMin [private] |
Definition at line 293 of file CLArgs.hpp.
Referenced by DoubleRange().