C3D Toolkit  Kernel - 117982, Vision - 2.9.2.2

Value and range. More...

#include <mb_pmi.h>

+ Inheritance diagram for MbValueRange:
+ Collaboration diagram for MbValueRange:

Public Member Functions

 MbValueRange (double value)
 Constructor. More...
 
 MbValueRange (double lower, double upper)
 Constructor. More...
 
 MbValueRange (double value, double lower, double upper)
 Constructor. More...
 
 MbValueRange ()=delete
 Default constructor obviously deleted.
 
 MbValueRange (const MbValueRange &)=default
 Copy constructor has default implementation.
 
 MbValueRange (MbValueRange &&)=default
 Assignment operators has default implementation.
 
bool IsValueDefined (double &value) const
 Wether the value is defined. More...
 
bool IsRangeDefined (double &lower, double &upper) const
 Wether the range is defined. More...
 
void Init (double value)
 Set value, reset range. More...
 
void Init (double lower, double upper)
 Set range, reset value. More...
 
void Init (double value, double lower, double upper)
 Set value and range. More...
 
bool IsSame (const MbValueRange &to, double accuracy) const
 Are the objects equal.
 
- Public Member Functions inherited from TapeBase
 TapeBase (RegistrableRec regs=noRegistrable)
 Constructor.
 
 TapeBase (const TapeBase &)
 Copy-constructor.
 
virtual ~TapeBase ()
 Destructor.
 
RegistrableRec GetRegistrable () const
 Whether the stream class is registrable.
 
void SetRegistrable (RegistrableRec regs=registrable) const
 Set the state of registration of the stream class.
 
virtual const char * GetPureName (const VersionContainer &) const
 Get the class name.
 
virtual bool IsFamilyRegistrable () const
 Whether the object belongs to a registrable family.
 

Detailed Description

Value and range.

Value or range or both can be defined. The check of falues is not performed.

Constructor & Destructor Documentation

◆ MbValueRange() [1/3]

MbValueRange::MbValueRange ( double  value)

Constructor.

Parameters
[in]valie- Value.

◆ MbValueRange() [2/3]

MbValueRange::MbValueRange ( double  lower,
double  upper 
)

Constructor.

Parameters
[in]lower- Lower value of range,
[in]upper- Upper value of range.

◆ MbValueRange() [3/3]

MbValueRange::MbValueRange ( double  value,
double  lower,
double  upper 
)

Constructor.

Parameters
[in]value- Value,
[in]lower- Lower value of range,
[in]upper- Upper value of range.

Member Function Documentation

◆ IsValueDefined()

bool MbValueRange::IsValueDefined ( double &  value) const

Wether the value is defined.

Parameters
[out]value- Value if defined, not changed otherwise.
Returns
Flag wether the value is defined.

◆ IsRangeDefined()

bool MbValueRange::IsRangeDefined ( double &  lower,
double &  upper 
) const

Wether the range is defined.

Parameters
[out]lower- Lower value of range, not changed otherwise,
[out]upper- Upper value of range, not changed otherwise.
Returns
Flag wether the range is defined.

◆ Init() [1/3]

void MbValueRange::Init ( double  value)

Set value, reset range.

Parameters
[in]valie- Value.

◆ Init() [2/3]

void MbValueRange::Init ( double  lower,
double  upper 
)

Set range, reset value.

Parameters
[in]lower- Lower value of range,
[in]upper- Upper value of range.

◆ Init() [3/3]

void MbValueRange::Init ( double  value,
double  lower,
double  upper 
)

Set value and range.

Parameters
[in]value- Value,
[in]lower- Lower value of range,
[in]upper- Upper value of range.

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