The Fib multimedia system
Fib is a system for storing multimedia data (like images or films).
|
#include <cFunctionAdd.h>
Public Member Functions | |
cFunctionAdd (const cUnderFunction &firstUnderfunction, const cUnderFunction &secondUnderfunction, cUnderFunction *pInSuperiorFunction=NULL, cFibElement *pInDefiningFibElement=NULL) | |
cFunctionAdd (const cFunctionAdd &underfunction, cUnderFunction *pInSuperiorFunction=NULL, cFibElement *pInDefiningFibElement=NULL) | |
cFunctionAdd (const TiXmlElement *pXmlElement, intFib &outStatus, list< cFibVariable * > &liDefinedVariables, cUnderFunction *pInSuperiorFunction=NULL, cFibElement *pInDefiningFibElement=NULL) | |
cFunctionAdd (cReadBits &iBitStream, intFib &outStatus, list< cFibVariable * > &liDefinedVariables, const cDomainSingle *pInDomainValue, const cDomainSingle *pInDomainVariable, cUnderFunction *pInSuperiorFunction=NULL, cFibElement *pInDefiningFibElement=NULL) | |
virtual doubleFib | getValue () const |
virtual bool | store (ostream &stream, char &cRestBits, unsigned char &uiRestBitPosition) const |
virtual unsignedIntFib | getType () const |
virtual string | getUnderFunctionName () const |
virtual cFunctionAdd * | clone (cUnderFunction *pInSuperiorUnderFunction=NULL, cFibElement *pInDefiningFibElement=NULL) const |
Public Member Functions inherited from fib::cFunctionTwoValue | |
cFunctionTwoValue (const cUnderFunction &firstUnderfunction, const cUnderFunction &secondUnderfunction, cUnderFunction *pInSuperiorFunction=NULL, cFibElement *pInDefiningFibElement=NULL) | |
cFunctionTwoValue (cUnderFunction *pInFirstUnderfunction, cUnderFunction *pInSecondUnderfunction, cUnderFunction *pInSuperiorFunction=NULL, cFibElement *pInDefiningFibElement=NULL) | |
cFunctionTwoValue (const cFunctionTwoValue &underfunction, cUnderFunction *pInSuperiorFunction=NULL, cFibElement *pInDefiningFibElement=NULL) | |
cFunctionTwoValue (const TiXmlElement *pXmlElement, intFib &outStatus, list< cFibVariable * > &liDefinedVariables, cUnderFunction *pInSuperiorFunction=NULL, cFibElement *pInDefiningFibElement=NULL) | |
cFunctionTwoValue (cReadBits &iBitStream, intFib &outStatus, list< cFibVariable * > &liDefinedVariables, const cDomainSingle *pInDomainValue, const cDomainSingle *pInDomainVariable, cUnderFunction *pInSuperiorFunction=NULL, cFibElement *pInDefiningFibElement=NULL) | |
virtual | ~cFunctionTwoValue () |
cUnderFunction * | getFirstUnderFunction () |
const cUnderFunction * | getFirstUnderFunction () const |
void | setFirstUnderFunction (const cUnderFunction &underFunction, bool bDeleteOld=true) |
cUnderFunction * | getSecondUnderFunction () |
const cUnderFunction * | getSecondUnderFunction () const |
void | setSecondUnderFunction (const cUnderFunction &underFunction, bool bDeleteOld=true) |
virtual bool | isValid () const |
virtual bool | isUsedVariable (const cFibVariable *variable) const |
virtual set< cFibVariable * > | getUsedVariables () |
virtual bool | replaceVariable (cFibVariable *variableOld, cFibVariable *variableNew) |
virtual unsignedIntFib | getNumberOfUnderFunctions () const |
virtual void | setDefiningFibElement (cFibElement *fibElement=NULL, bool bCheckDomains=true) |
virtual unsignedLongFib | getTimeNeed (unsignedLongFib lMaxTime=0) const |
virtual unsignedLongFib | getCompressedSize () const |
virtual bool | storeXml (ostream &stream) const |
virtual bool | equal (const cUnderFunction &underfunction) const |
Public Member Functions inherited from fib::cUnderFunction | |
virtual | ~cUnderFunction () |
virtual cTypeElement * | getElementType () const |
virtual cDomainSingle * | getDomain () const |
virtual cDomainSingle * | getValueDomain () const |
virtual cDomainSingle * | getStandardDomain () const |
virtual cDomainSingle * | getVariableDomain () const |
cFibElement * | getDefiningFibElement () const |
cUnderFunction * | getSuperiorUnderFunction () const |
virtual bool | operator== (const cUnderFunction &underfunction) const |
bool | operator!= (const cUnderFunction &underfunction) const |
Additional Inherited Members | |
Protected Attributes inherited from fib::cFunctionTwoValue | |
cUnderFunction * | pFirstUnderfunction |
cUnderFunction * | pSecondUnderfunction |
Protected Attributes inherited from fib::cUnderFunction | |
cUnderFunction * | pSuperiorUnderFunction |
cFibElement * | pDefiningFibElement |
Definition at line 46 of file cFunctionAdd.h.
fib::cFunctionAdd::cFunctionAdd | ( | const cUnderFunction & | firstUnderfunction, |
const cUnderFunction & | secondUnderfunction, | ||
cUnderFunction * | pInSuperiorFunction = NULL , |
||
cFibElement * | pInDefiningFibElement = NULL |
||
) |
The constructor of the underfunction.
firstUnderfunction | the first underfunction for the function |
secondUnderfunction | the second underfunction for the function |
pInSuperiorFunction | the underfunction which contains the new underfunction |
pInDefiningFibElement | the fib -element which defines/ uses the new underfunction |
fib::cFunctionAdd::cFunctionAdd | ( | const cFunctionAdd & | underfunction, |
cUnderFunction * | pInSuperiorFunction = NULL , |
||
cFibElement * | pInDefiningFibElement = NULL |
||
) |
The copy constructor of the underfunction. This constructor will also copy the underfunctions of the given function.
underfunction | the underfunction which to copy |
pInSuperiorFunction | the underfunction which contains the new underfunction |
pInDefiningFibElement | the fib -element which defines/ uses the new underfunction |
fib::cFunctionAdd::cFunctionAdd | ( | const TiXmlElement * | pXmlElement, |
intFib & | outStatus, | ||
list< cFibVariable * > & | liDefinedVariables, | ||
cUnderFunction * | pInSuperiorFunction = NULL , |
||
cFibElement * | pInDefiningFibElement = NULL |
||
) |
The constructor for restoring a value underfunction from an TinyXml element.
pXmlNode | a pointer to the TinyXml node the underfunction is stored in |
outStatus | An reference to an integervalue where the errorvalue can be stored to. possible errorvalues are:
|
liDefinedVariables | a list with the defined variables for the to restore fib -element, every variable should have it's number (the number under which it is stored) as it's value |
pInSuperiorFunction | the underfunction which contains the new underfunction |
pInDefiningFibElement | the fib -element which defines/ uses the new underfunction |
fib::cFunctionAdd::cFunctionAdd | ( | cReadBits & | iBitStream, |
intFib & | outStatus, | ||
list< cFibVariable * > & | liDefinedVariables, | ||
const cDomainSingle * | pInDomainValue, | ||
const cDomainSingle * | pInDomainVariable, | ||
cUnderFunction * | pInSuperiorFunction = NULL , |
||
cFibElement * | pInDefiningFibElement = NULL |
||
) |
This constructor restores a value underfunction from the stream where it is stored in the compressed fib -format. Beware: The bits for the functiontype should be allready readed, this constructor reads yust the two underfunctions.
iBitStream | the stream where this underfunction is stored to in, because this stream is an cReadBits, any number of bits can be readed from it |
outStatus | An 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:
|
liDefinedVariables | a list with the defined variables for the to restore fib -element, every variable should have it's number (the number under which it is stored) as it's value |
pInDomainValue | the domain for value underfunction |
pInDomainVariable | the domain for variables |
pInSuperiorFunction | the underfunction which contains the new underfunction |
pInDefiningFibElement | the fib -element which defines/ uses the new underfunction |
|
virtual |
This method duplicates this whole underfunction. Underfunctions of this underfunction are also cloned.
pSuperiorUnderFunction | the underfunction which contains |
pInDefiningFibElement | the Fib -element which defines/ uses |
Implements fib::cUnderFunction.
|
virtual |
Implements fib::cUnderFunction.
|
virtual |
Implements fib::cUnderFunction.
|
virtual |
Returns the value of the underfunction or 0 if non such exists.
Implements fib::cUnderFunction.
|
virtual |
This method stores this Fib -object in the compressed Fib -format into the given stream. It is needed becouse 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.
stream | the stream where this Fib -object 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 |
Implements fib::cUnderFunction.