#include <cDomainVectorOpenEnd.h>
List of all members.
Detailed Description
Definition at line 59 of file cDomainVectorOpenEnd.h.
Constructor & Destructor Documentation
fib::cDomainVectorOpenEnd::cDomainVectorOpenEnd |
( |
const vector< cDomain * > & |
vecInElementDomains | ) |
|
This constructor of the cDomainVectorOpenEnd element.
- Parameters:
-
vecInElementDomains | the vector with the domains for the vector elements |
fib::cDomainVectorOpenEnd::cDomainVectorOpenEnd |
( |
const vector< cDomainSingle * > & |
vecInElementDomains | ) |
|
This constructor of the cDomainVectorOpenEnd element.
- Parameters:
-
vecInElementDomains | the vector with the domains for the vector elements |
virtual fib::cDomainVectorOpenEnd::~cDomainVectorOpenEnd |
( |
| ) |
|
|
virtual |
Member Function Documentation
virtual unsignedIntFib fib::cDomainVectorOpenEnd::getCompressedSize |
( |
| ) |
const |
|
virtual |
This method evaluades the size of the domain in bits in the compressed file form.
- See also:
- store()
- Returns:
- the size of the domain in bits in the compressed form
Implements fib::cDomain.
This method returns the domain of the iNumberOfElement'th element in the vectors of the domain.
- Parameters:
-
iNumberOfElement | the elementnumber for which the domain is to return |
- Returns:
- domain of the iNumberOfElement'th element in the vectors of the domain
Implements fib::cDomainVectorBasis.
virtual const cDomain* fib::cDomainVectorOpenEnd::getElementDomain |
( |
const unsignedIntFib |
iNumberOfElement | ) |
const |
|
virtual |
This method returns the domain of the iNumberOfElement'th element in the vectors of the domain.
- Parameters:
-
iNumberOfElement | the elementnumber for which the domain is to return |
- Returns:
- domain of the iNumberOfElement'th element in the vectors of the domain
Implements fib::cDomainVectorBasis.
virtual unsignedIntFib fib::cDomainVectorOpenEnd::getNumberOfElements |
( |
| ) |
const |
|
virtual |
This method returns the number of elements in the vectors of the domain.
- Returns:
- the number of elements in the vectors of the domain
Implements fib::cDomainVectorBasis.
virtual string fib::cDomainVectorOpenEnd::getType |
( |
| ) |
const |
|
virtual |
- Returns:
- the type of the domain as an string
Implements fib::cDomain.
virtual bool fib::cDomainVectorOpenEnd::isElement |
( |
const cFibVector & |
fibVector | ) |
const |
|
virtual |
This method checks if the given vector is an element of the domain. If the value dValue is an element of the domain true is returned, else false.
- Parameters:
-
fibVector | the vector for which to check, if it is an element of the domain |
- Returns:
- if the vector fibVector is an element of the domain true is returned, else false
Implements fib::cDomainVectorBasis.
virtual bool fib::cDomainVectorOpenEnd::isInBoundaries |
( |
const cFibVector & |
fibVector | ) |
const |
|
virtual |
This method checks if the given vector is inside the domain boundaries. If the value dValue is inside of the domain boundaries true is returned, else false. A vector is inside of the vector domain boudaries, if all its elements are inside ther correspondending element domain boundaries.
- Parameters:
-
fibVector | the vector for which to check, if it is inside of the domain boundaries |
- Returns:
- if the vector fibVector is inside of the domain boundaries true is returned, else false
Implements fib::cDomainVectorBasis.
virtual bool fib::cDomainVectorOpenEnd::operator== |
( |
const cDomain & |
domain | ) |
const |
|
virtual |
This Method checks if the given domain is equal to this domain.
- Parameters:
-
domain | the domain which should be equal to this domain |
- Returns:
- true if the given domain is equal to this domain, else false
Reimplemented from fib::cDomain.
virtual intFib fib::cDomainVectorOpenEnd::restore |
( |
cReadBits & |
iBitStream | ) |
|
|
virtual |
This method restores a domain from a bitstream, wher it is stored in the compressed fib -format.
- See also:
- store
- Parameters:
-
iBitStream | the stream where the domain is stored in, because the stream is an cReadBits, any number of bits can be readed from it |
- Returns:
- an integervalue with the errorvalue possible errorvalues are:
- 0 loading successful
- -1 loading error, invalid pXmlElement
- -2 loading error, invalid data in pXmlElement
- 1 loading warning, invalid data in pXmlElement, error could be corrected
- 2 loading warning, invalid data in pXmlElement, maybe the loaded object is wrong
Implements fib::cDomain.
virtual intFib fib::cDomainVectorOpenEnd::restoreXml |
( |
const TiXmlElement * |
pXmlElement | ) |
|
|
virtual |
This method restores a domain in the XML -format from an TinyXml element.
- Parameters:
-
pXmlNode | a pointer to the TinyXml node wher the domain is stored in |
- Returns:
- an integervalue with the errorvalue possible errorvalues are:
- 0 loading successful
- -1 loading error, invalid pXmlElement
- -2 loading error, invalid data in pXmlElement
- 1 loading warning, invalid data in pXmlElement, error could be corrected
- 2 loading warning, invalid data in pXmlElement, maybe the loaded object is wrong
Implements fib::cDomain.
This method round the given value vector to an vector in the domain of this object. The rounded vector will be the vector, wich elements have the minimal summed distance to the elements of the given vector fibVector. If more than one such vector exists, the vector wich first n elements have the minimal summed distance to the first n elements of the given vector fibVector. Wher n is first the number of elements in the vector, and than is decrased to 1 in steps of 1. If again more such vectors exists, the one with the smalest k elements is choosen, wher k begins with 1 and is incrased to the number of vectorelements in the input vector. ATTENTION: The returned vector will not be deleted automaticly, you have to delete it.
- Parameters:
-
fibVector | the vector which should be rounded |
- Returns:
- the rounded vector of fibVector
Implements fib::cDomainVectorBasis.
virtual bool fib::cDomainVectorOpenEnd::store |
( |
ostream & |
stream, |
|
|
char & |
cRestBits, |
|
|
unsigned char & |
uiRestBitPosition |
|
) |
| const |
|
virtual |
This method stores this domain in the compressed fib -format 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:
-
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::cDomain.
virtual bool fib::cDomainVectorOpenEnd::storeXml |
( |
ostream & |
ostream | ) |
const |
|
virtual |
This method stores this domain in the XML -format into the given stream.
- Parameters:
-
ostream | the stream where domains should be stored to |
- Returns:
- true if this domain are stored, else false
Implements fib::cDomain.
Member Data Documentation
vector<cDomain*> fib::cDomainVectorOpenEnd::vecElementDomains |
|
protected |
This vector contains the domains for the elements of the vectordomain.
Definition at line 67 of file cDomainVectorOpenEnd.h.
The documentation for this class was generated from the following file: