#include <cDomainRationalBasis.h>
List of all members.
Detailed Description
Definition at line 51 of file cDomainRationalBasis.h.
Constructor & Destructor Documentation
The constructor for rational number domains.
- Parameters:
-
dfMantissa | the domain for the mantisse of the rational domain |
dfExponent | the domain for the exponent of the rational domain |
The copyconstructor for rational number domains.
- Parameters:
-
domainRational | the domain to copy |
virtual fib::cDomainRationalBasis::~cDomainRationalBasis |
( |
| ) |
|
|
protectedvirtual |
The desstructor for rational number domains.
Member Function Documentation
virtual bool fib::cDomainRationalBasis::operator== |
( |
const cDomain & |
domain | ) |
const |
|
virtual |
This Method checks if the given domain is equal to this domain.
- Parameters:
-
domain | the domain to compare with |
- Returns:
- true if the given domain is equal to this domain, else false
Reimplemented from fib::cDomain.
This method restores the a value of the domain from the stream iBitStream wher it is stored in the compressed fib -format.
- See also:
- storeValue
-
cFibElement::restore
- Parameters:
-
iBitStream | the stream where this value is stored to in, because this stream is an cReadBits, any number of bits can be readed from it |
outStatus | An reference to an rationalvalue where the errorvalue can be stored to. If the pointer is NULL no errorvalue will be given back. possible errorvalues are:
- 0 loading successful
- -1 loading error, invalid stream
- -2 loading error, invalid data in stream
- 1 loading warning, invalid data in stream, error could be corrected
- 2 loading warning, invalid data in stream, maybe the loaded object is wrong
|
- Returns:
- the restored value
Implements fib::cDomainSingle.
Implemented in fib::cDomainRational.
virtual bool fib::cDomainRationalBasis::storeValue |
( |
doubleFib |
dValue, |
|
|
ostream & |
stream, |
|
|
char & |
cRestBits, |
|
|
unsigned char & |
uiRestBitPosition |
|
) |
| const |
|
pure virtual |
This method stores the given value dValue in the compressed fib -format for the domain into the given stream. It is needed because the stream can yust store byts but the size of fib -elements can be any number of bits. Because of that ther have to be a possibility to exchange the missing bits betwean the fib -elements.
- See also:
- cFibElement::store
- Parameters:
-
dValue | the value to store |
stream | the stream where this domain should be stored to |
cRestBits | the not yet writen bits which should be stored |
uiRestBitPosition | the number of bits in the cRestBits which should be writen respectively containing valid information |
- Returns:
- true if the domain is stored, else false
Implements fib::cDomainSingle.
Implemented in fib::cDomainRational.
Member Data Documentation
The documentation for this class was generated from the following file: