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::cVectorFibSet Class Reference

#include <cVectorFibSet.h>

Inheritance diagram for fib::cVectorFibSet:
Collaboration diagram for fib::cVectorFibSet:

List of all members.

Public Member Functions

 cVectorFibSet (unsignedIntFib iNumberOfElements=2, cFibElement *pDefiningSetElement=NULL)
 cVectorFibSet (cFibSet &definingSetElement)
 cVectorFibSet (const cVectorFibSet &vector, cFibElement *pDefiningFibElement=NULL)
 cVectorFibSet (const TiXmlElement *pXmlElement, intFib &outStatus, list< cFibVariable * > &liDefinedVariables)
 cVectorFibSet (cReadBits &iBitStream, intFib &outStatus, list< cFibVariable * > &liDefinedVariables, const cDomain *pInVectorDomain, const cDomain *pInDomainVariable, const unsignedIntFib uiInNumberOfElements)
virtual cVectorFibSetcreateInstance (unsignedIntFib iNumberOfVectorElements=2, cFibElement *pDefiningElement=NULL) const
virtual cTypeElementgetElementType () const
virtual cDomainVectorBasisgetDomain () const
virtual cDomainVectorBasisgetStandardDomain () const
virtual cDomainVectorBasisgetValueDomain () const
virtual string getVectorType () const
virtual void setDefiningFibElement (cFibElement *pFibElement=NULL, bool bCheckDomains=true)
- Public Member Functions inherited from fib::cFibVector
virtual ~cFibVector ()
unsignedIntFib getNumberOfElements () const
virtual bool isVariable (unsignedIntFib iNumberElement) const
virtual bool isUsedVariable (const cFibVariable *variable) const
virtual set< cFibVariable * > getUsedVariables ()
virtual bool replaceVariable (cFibVariable *variableOld, cFibVariable *variableNew)
virtual doubleFib getValue (unsignedIntFib iNumberElement) const
virtual bool setValue (unsignedIntFib iNumberElement, doubleFib dValue)
virtual cFibVariablegetVariable (unsignedIntFib iNumberElement)
virtual bool setVariable (unsignedIntFib iNumberElement, cFibVariable *pVariable)
virtual cDomaingetDomain (unsignedIntFib iNumberElement) const
virtual cDomainSinglegetVariableDomain () const
cFibElementgetDefiningFibElement () const
virtual unsignedLongFib getCompressedSize () const
virtual unsignedLongFib getCompressedSize (const cDomainVectorBasis &valueVectorDomain, const cDomainSingle &variableDomain) const
virtual bool store (ostream &stream, char &cRestBits, unsigned char &uiRestBitPosition) const
virtual bool store (ostream &stream, char &cRestBits, unsigned char &uiRestBitPosition, const cDomainVectorBasis &valueVectorDomain, const cDomainSingle &variableDomain) const
virtual bool storeXml (ostream &stream) const
virtual bool equal (const cFibVector &vector) const
virtual bool operator== (const cFibVector &vector) const
bool operator!= (const cFibVector &vector) const
virtual cFibVectoroperator= (const cFibVector &vector)
virtual bool operator< (const cFibVector &vector) const

Additional Inherited Members

- Static Public Member Functions inherited from fib::cFibVector
static bool lowerVector (const cFibVector &vector1, const cFibVector &vector2)
- Protected Types inherited from fib::cFibVector
enum  eVectorType { VALUE, VARIABLE }
- Protected Member Functions inherited from fib::cFibVector
 cFibVector (unsignedIntFib iNumberOfVectorElements=1, cFibElement *definingFibElement=NULL)
 cFibVector (const cFibVector &vector, cFibElement *definingFibElement=NULL)
 cFibVector (const TiXmlElement *pXmlElement, intFib &outStatus, list< cFibVariable * > &liDefinedVariables)
 cFibVector (cReadBits &iBitStream, intFib &outStatus, list< cFibVariable * > &liDefinedVariables, const cDomain *pInVectorDomain, const cDomain *pInDomainVariable, const unsignedIntFib uiInNumberOfElements=0)
virtual cFibElementgetVariableUsingFibElement () const
virtual bool deleteVariable (cFibVariable *pVariable)
- Protected Attributes inherited from fib::cFibVector
vector< eVectorTypeliVectorType
vector< doubleFibliVectorValues
vector< cFibVariable * > liVectorVariable
cFibElementpDefiningFibElement

Detailed Description

Definition at line 47 of file cVectorFibSet.h.


Constructor & Destructor Documentation

fib::cVectorFibSet::cVectorFibSet ( unsignedIntFib  iNumberOfElements = 2,
cFibElement pDefiningSetElement = NULL 
)

The constructor of the set-element vector.

Parameters:
iNumberOfElementsthe number of elements the vector should have
pDefiningElementthe Fib element which defines/ uses the set-element vector
fib::cVectorFibSet::cVectorFibSet ( cFibSet definingSetElement)

The constructor of the set-element vector.

Parameters:
definingSetElementthe Fib set-element which defines/ uses the set-element vector
fib::cVectorFibSet::cVectorFibSet ( const cVectorFibSet vector,
cFibElement pDefiningFibElement = NULL 
)

The copy constructor of the vector.

Parameters:
vectorthe vector from which to copy the data
pDefiningFibElementthe Fib element which defines/ uses the new vector
fib::cVectorFibSet::cVectorFibSet ( const TiXmlElement *  pXmlElement,
intFib outStatus,
list< cFibVariable * > &  liDefinedVariables 
)

The constructor for restoring a vector from an TinyXml element.

Parameters:
pXmlNodea pointer to the TinyXml node the vector is stored in
outStatusAn reference to an integervalue where the errorvalue can be stored to. 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
liDefinedVariablesa list with the defined variables for the to restore vector, every variable should have it's number (the number under which it is stored) as it's value
fib::cVectorFibSet::cVectorFibSet ( cReadBits iBitStream,
intFib outStatus,
list< cFibVariable * > &  liDefinedVariables,
const cDomain pInVectorDomain,
const cDomain pInDomainVariable,
const unsignedIntFib  uiInNumberOfElements 
)

This constructor restores a set-element vector from the stream where it is stored in the compressed Fib format.

Parameters:
iBitStreamthe stream where this vector is stored to in, because this stream is an cReadBits, any number of bits can be readed from it
outStatusAn reference to an integervalue 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
liDefinedVariablesa list with the defined variables for the to restore vector, every variable should have it's number (the number under which it is stored) as it's value
pInVectorDomainthe domain for this vector
pInDomainVariablethe domain for variables
uiInNumberOfElementsthe number of elements to restore, if not given or 0, it will be evalued by the number of elements of the given domain pInVectorDomain

Member Function Documentation

virtual cVectorFibSet* fib::cVectorFibSet::createInstance ( unsignedIntFib  iNumberOfVectorElements = 2,
cFibElement pDefiningElement = NULL 
) const
virtual

This method creates an instance of this vector type.

Parameters:
iNumberOfVectorElementsnumber of elements in the vector
pDefiningElementthe Fib set-element which defines/ uses the set-element vector

Implements fib::cFibVector.

virtual cDomainVectorBasis* fib::cVectorFibSet::getDomain ( ) const
virtual

Returns a reference to the domain of the vector or the nullpointer NULL if no domain is defined for the vector. If the nullpointer NULL is returned the standarddomain is valid for the vector.

Returns:
a reference to the vectordomain of the vector

Reimplemented from fib::cFibVector.

virtual cTypeElement* fib::cVectorFibSet::getElementType ( ) const
virtual

Returns the type of the vector. You have to delete the returned object after usage.

Returns:
the type of the vector

Implements fib::cFibVector.

virtual cDomainVectorBasis* fib::cVectorFibSet::getStandardDomain ( ) const
virtual

Returns a reference to the standard domain of the vector. You have to delete the returned object after usage.

Returns:
a reference to the standard domain of the vector

Reimplemented from fib::cFibVector.

virtual cDomainVectorBasis* fib::cVectorFibSet::getValueDomain ( ) const
virtual

Returns a reference to the value domain of the vector or the nullpointer NULL if no value domain is defined for the vector. If the nullpointer NULL is returned the standarddomain is valid for the vector.

Returns:
a reference to the definitionarea of the vector

Reimplemented from fib::cFibVector.

virtual string fib::cVectorFibSet::getVectorType ( ) const
virtual
Returns:
the name for the type of the vector

Implements fib::cFibVector.

virtual void fib::cVectorFibSet::setDefiningFibElement ( cFibElement pFibElement = NULL,
bool  bCheckDomains = true 
)
virtual

Sets the Fib-element which defines/ uses this vector. If the given pointer is the nullpointer (standardvalue), no Fib-element defines this vector.

Parameters:
pFibElementa pointer to the Fib-element which defines/ uses this vector
bCheckDomainsgetthe domains of the defining element and check the vectorelements with it

Reimplemented from fib::cFibVector.


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