torc-master
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
torc::generic::Value::MiNoMax Class Reference

#include <Value.hpp>

+ Collaboration diagram for torc::generic::Value::MiNoMax:

Public Member Functions

 MiNoMax ()
 
 MiNoMax (Value::Number inMin, Value::Number inNominal, Value::Number inMax)
 
 ~MiNoMax () throw ()
 
 MiNoMax (const MiNoMax &inSource)
 
MiNoMaxoperator= (const MiNoMax &inSource)
 
bool operator< (const MiNoMax &inRhs) const
 
bool operator== (const MiNoMax &inRhs) const
 
bool operator!= (const MiNoMax &inRhs) const
 
bool operator> (const MiNoMax &inRhs) const
 
bool operator>= (const MiNoMax &inRhs) const
 
bool operator<= (const MiNoMax &inRhs) const
 
void setMax (const Value::Number &inSource)
 
const Value::Number getMax () const
 
const bool getMinUndefined () const
 
const bool getMaxUndefined () const
 
const Value::Number getMin () const
 
void setMin (const Value::Number &inSource)
 
const Value::Number getNominal () const
 
void setNominal (const Value::Number &inSource)
 

Private Attributes

Value::Number mMin
 
bool mMinUndefined
 
Value::Number mNominal
 
Value::Number mMax
 
bool mMaxUndefined
 

Detailed Description

Represents an EDIF MiNoMax inSource. This is basically a ranged integer. As such it stores the minimum, nominal and maximum values.

Definition at line 122 of file Value.hpp.

Constructor & Destructor Documentation

torc::generic::Value::MiNoMax::MiNoMax ( )

Definition at line 32 of file Value.cpp.

torc::generic::Value::MiNoMax::MiNoMax ( Value::Number  inMin,
Value::Number  inNominal,
Value::Number  inMax 
)

Definition at line 34 of file Value.cpp.

34  :
35  mMin(inMin), mMinUndefined(false), mNominal(inNominal), mMax(inMax), mMaxUndefined(false) {}
torc::generic::Value::MiNoMax::~MiNoMax ( )
throw (
)

Definition at line 37 of file Value.cpp.

37 {}
torc::generic::Value::MiNoMax::MiNoMax ( const MiNoMax inSource)

Definition at line 39 of file Value.cpp.

39  : mMin(inSource.mMin),
40  mMinUndefined(inSource.mMinUndefined), mNominal(inSource.mNominal), mMax(inSource.mMax),
41  mMaxUndefined(inSource.mMaxUndefined) {}

Member Function Documentation

const Value::Number torc::generic::Value::MiNoMax::getMax ( ) const
inline

Definition at line 307 of file Value.hpp.

307  {
308  return mMax;
309 }

+ Here is the caller graph for this function:

const bool torc::generic::Value::MiNoMax::getMaxUndefined ( ) const
inline

Definition at line 315 of file Value.hpp.

315  {
316  return mMaxUndefined;
317 }
const Value::Number torc::generic::Value::MiNoMax::getMin ( ) const
inline

Definition at line 319 of file Value.hpp.

319  {
320  return mMin;
321 }

+ Here is the caller graph for this function:

const bool torc::generic::Value::MiNoMax::getMinUndefined ( ) const
inline

Definition at line 311 of file Value.hpp.

311  {
312  return mMinUndefined;
313 }

+ Here is the caller graph for this function:

const Value::Number torc::generic::Value::MiNoMax::getNominal ( ) const
inline

Definition at line 323 of file Value.hpp.

323  {
324  return mNominal;
325 }

+ Here is the caller graph for this function:

bool torc::generic::Value::MiNoMax::operator!= ( const MiNoMax inRhs) const

Definition at line 74 of file Value.cpp.

74  {
75  return !operator ==(inRhs);
76 }
bool operator==(const MiNoMax &inRhs) const
Definition: Value.cpp:58

+ Here is the call graph for this function:

bool torc::generic::Value::MiNoMax::operator< ( const MiNoMax inRhs) const

Definition at line 54 of file Value.cpp.

54  {
55  return mNominal.eval() < inRhs.mNominal.eval();
56 }
double eval() const
Definition: Value.cpp:142

+ Here is the call graph for this function:

bool torc::generic::Value::MiNoMax::operator<= ( const MiNoMax inRhs) const

Definition at line 70 of file Value.cpp.

70  {
71  return mNominal.eval() <= inRhs.mNominal.eval();
72 }
double eval() const
Definition: Value.cpp:142

+ Here is the call graph for this function:

Value::MiNoMax & torc::generic::Value::MiNoMax::operator= ( const MiNoMax inSource)

Definition at line 43 of file Value.cpp.

43  {
44  if(this != &inSource) {
45  mMin = inSource.mMin;
46  mMinUndefined = inSource.mMinUndefined;
47  mNominal = inSource.mNominal;
48  mMax = inSource.mMax;
49  mMaxUndefined = inSource.mMaxUndefined;
50  }
51  return *this;
52 }
bool torc::generic::Value::MiNoMax::operator== ( const MiNoMax inRhs) const

Definition at line 58 of file Value.cpp.

58  {
59  return mNominal.eval() == inRhs.mNominal.eval();
60 }
double eval() const
Definition: Value.cpp:142

+ Here is the call graph for this function:

bool torc::generic::Value::MiNoMax::operator> ( const MiNoMax inRhs) const

Definition at line 62 of file Value.cpp.

62  {
63  return mNominal.eval() > inRhs.mNominal.eval();
64 }
double eval() const
Definition: Value.cpp:142

+ Here is the call graph for this function:

bool torc::generic::Value::MiNoMax::operator>= ( const MiNoMax inRhs) const

Definition at line 66 of file Value.cpp.

66  {
67  return mNominal.eval() >= inRhs.mNominal.eval();
68 }
double eval() const
Definition: Value.cpp:142

+ Here is the call graph for this function:

void torc::generic::Value::MiNoMax::setMax ( const Value::Number inSource)

Definition at line 78 of file Value.cpp.

78  {
79  mMax = inSource;
80  mMaxUndefined = false;
81 }

+ Here is the caller graph for this function:

void torc::generic::Value::MiNoMax::setMin ( const Value::Number inSource)

Definition at line 83 of file Value.cpp.

83  {
84  mMin = inSource;
85  mMinUndefined = false;
86 }

+ Here is the caller graph for this function:

void torc::generic::Value::MiNoMax::setNominal ( const Value::Number inSource)

Definition at line 88 of file Value.cpp.

88  {
89  mNominal = inSource;
90 }

+ Here is the caller graph for this function:

Field Documentation

Value::Number torc::generic::Value::MiNoMax::mMax
private

Definition at line 130 of file Value.hpp.

bool torc::generic::Value::MiNoMax::mMaxUndefined
private

Definition at line 131 of file Value.hpp.

Value::Number torc::generic::Value::MiNoMax::mMin
private

Definition at line 127 of file Value.hpp.

bool torc::generic::Value::MiNoMax::mMinUndefined
private

Definition at line 128 of file Value.hpp.

Value::Number torc::generic::Value::MiNoMax::mNominal
private

Definition at line 129 of file Value.hpp.


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