The Fib multimedia system
Fib is a system for storing multimedia data (like images or films).
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
fib::cDomainVectorOpenEnd Class Reference

#include <cDomainVectorOpenEnd.h>

Inheritance diagram for fib::cDomainVectorOpenEnd:
Collaboration diagram for fib::cDomainVectorOpenEnd:

List of all members.

Public Member Functions

 cDomainVectorOpenEnd (const vector< cDomain * > &vecInElementDomains)
 cDomainVectorOpenEnd (const vector< cDomainSingle * > &vecInElementDomains)
virtual ~cDomainVectorOpenEnd ()
virtual string getType () const
virtual bool isElement (const cFibVector &fibVector) const
virtual bool isInBoundaries (const cFibVector &fibVector) const
virtual cFibVectorround (cFibVector &fibVector) const
virtual unsignedIntFib getNumberOfElements () const
virtual cDomaingetElementDomain (const unsignedIntFib iNumberOfElement)
virtual const cDomaingetElementDomain (const unsignedIntFib iNumberOfElement) const
virtual cDomainVectorOpenEndclone () const
virtual bool operator== (const cDomain &domain) const
virtual unsignedIntFib getCompressedSize () const
virtual bool storeXml (ostream &ostream) const
virtual intFib restoreXml (const TiXmlElement *pXmlElement)
virtual bool store (ostream &stream, char &cRestBits, unsigned char &uiRestBitPosition) const
virtual intFib restore (cReadBits &iBitStream)
- Public Member Functions inherited from fib::cDomainVectorBasis
virtual bool isScalar () const
virtual bool isVector () const
- Public Member Functions inherited from fib::cDomain
virtual ~cDomain ()=0
virtual bool isReference () const
virtual bool equal (const cDomain &domain) const

Protected Attributes

vector< cDomain * > vecElementDomains

Additional Inherited Members

- Static Public Member Functions inherited from fib::cDomainVectorBasis
static cDomainVectorBasiscreateGoodDomain (const list< cFibVector * > &liVectors)
- Static Public Member Functions inherited from fib::cDomain
static cDomainrestoreXml (const TiXmlElement *pXmlElement, intFib &outStatus)
static cDomainrestore (cReadBits &iBitStream, intFib &outStatus)

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:
vecInElementDomainsthe vector with the domains for the vector elements
fib::cDomainVectorOpenEnd::cDomainVectorOpenEnd ( const vector< cDomainSingle * > &  vecInElementDomains)

This constructor of the cDomainVectorOpenEnd element.

Parameters:
vecInElementDomainsthe vector with the domains for the vector elements
virtual fib::cDomainVectorOpenEnd::~cDomainVectorOpenEnd ( )
virtual

This destructor of the cDomainVectorOpenEnd element.


Member Function Documentation

virtual cDomainVectorOpenEnd* fib::cDomainVectorOpenEnd::clone ( ) const
virtual

This Method clones this object.

Returns:
a clone of this object

Implements fib::cDomainVectorBasis.

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.

virtual cDomain* fib::cDomainVectorOpenEnd::getElementDomain ( const unsignedIntFib  iNumberOfElement)
virtual

This method returns the domain of the iNumberOfElement'th element in the vectors of the domain.

Parameters:
iNumberOfElementthe 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:
iNumberOfElementthe 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:
fibVectorthe 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:
fibVectorthe 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:
domainthe 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:
iBitStreamthe 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:
pXmlNodea 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.

virtual cFibVector* fib::cDomainVectorOpenEnd::round ( cFibVector fibVector) const
virtual

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:
fibVectorthe 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:
streamthe stream where this domain should be stored to
cRestBitsthe not yet writen bits which should be stored
uiRestBitPositionthe 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:
ostreamthe 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: