#include <cFibVariable.h>
List of all members.
Detailed Description
Definition at line 62 of file cFibVariable.h.
Member Enumeration Documentation
the type fore the type of the variable
- Enumerator:
UNDEFINED |
|
REAL_VALUE |
|
INTEGER_VALUE |
|
Definition at line 87 of file cFibVariable.h.
Constructor & Destructor Documentation
fib::cFibVariable::cFibVariable |
( |
cFibElement * |
definingFibElement | ) |
|
The constructor of the variable.
- Parameters:
-
definingFibElement | the Fib -element that defines the variable |
The copyconstructor of the variable.
- Parameters:
-
variable | the Fib -element that should be copied |
definingFibElement | the Fib -element that defines the variable |
virtual fib::cFibVariable::~cFibVariable |
( |
| ) |
|
|
virtual |
The destructor of the variable.
Member Function Documentation
virtual bool fib::cFibVariable::equal |
( |
const cFibVariable & |
variable | ) |
const |
|
virtual |
This Method checks if the given variable is equal to this variable.
- Parameters:
-
variable | the variable to compare with this variable |
- Returns:
- true if the given variable is equal to this variable, else false
cFibElement* fib::cFibVariable::getDefiningElement |
( |
| ) |
const |
This method returns a pointer to the Fib -element that defines the variable.
- Returns:
- a pointer to the Fib -element that defines the variable
longFib fib::cFibVariable::getIntegerValue |
( |
| ) |
const |
This method returns the value of the variable as an integer value. It returns 0 if the variable is undefined. If the value of the variable is an real value, the value is rounded to an integervalue.
- Returns:
- the value of the variable or 0 if the variable is undefined
This method returns the number of Fib -elements that uses the variable. These have to be registered befor.
- Returns:
- the number of Fib -elements that uses the variable
set<cFibElement*> fib::cFibVariable::getUsingElements |
( |
| ) |
const |
This method returns a set of Fib -elements that uses the variable. These have to be registered befor.
- Returns:
- a set Fib -elements that uses the variable
doubleFib fib::cFibVariable::getValue |
( |
| ) |
const |
This method returns the value of the variable as an real value. It returns 0 if the variable is undefined.
- Returns:
- the value of the variable or 0 if the variable is undefined
bool fib::cFibVariable::isIntegerValue |
( |
| ) |
const |
- Returns:
- if the value is an integer value true, else false
bool fib::cFibVariable::isSet |
( |
| ) |
const |
- Returns:
- if the value of the variable was set true is returned, else false
This Method makes this variable equal to the given variable.
- Parameters:
-
variable | the variable to copy |
virtual bool fib::cFibVariable::operator== |
( |
const cFibVariable & |
variable | ) |
const |
|
virtual |
This Method checks if the given variable is equal to this variable.
- Parameters:
-
variable | the variable to compare with this variable |
- Returns:
- true if the given variable is equal to this variable, else false
void fib::cFibVariable::registerUsingElement |
( |
iVariableUser * |
usingElement | ) |
|
|
protected |
This method registers an element that uses the variable.
- Parameters:
-
usingElement | the element that uses the variable |
void fib::cFibVariable::setIntegerValue |
( |
const longFib |
lValue | ) |
|
This method sets the value of the variable as an integer value.
- Parameters:
-
lValue | the value of the variable to set |
void fib::cFibVariable::setValue |
( |
const doubleFib |
dValue | ) |
|
This method sets the value of the variable as an real value.
- Parameters:
-
dValue | the value of the variable to set |
void fib::cFibVariable::unregisterUsingElement |
( |
iVariableUser * |
usingElement | ) |
|
|
protected |
This method unregisters an element that don't uses the variable anymore.
- Parameters:
-
usingElement | the element that don't uses the variable anymore |
Friends And Related Function Documentation
Member Data Documentation
the value if the variable is of type real
Definition at line 100 of file cFibVariable.h.
longFib fib::cFibVariable::integerValue |
|
protected |
the value if the variable is of type integer
Definition at line 105 of file cFibVariable.h.
the refernce to the Fib -element that defines the variable
Definition at line 110 of file cFibVariable.h.
the set with the refernces to the Fib -elements that uses the variable
Definition at line 116 of file cFibVariable.h.
The documentation for this class was generated from the following file: