The Fib multimedia system
Fib is a system for storing multimedia data (like images or films).
|
#include <cFibElement.h>
Public Member Functions | |
virtual | ~cFibElement () |
virtual char | getType () const =0 |
virtual bool | isValidFibElement () const =0 |
virtual cFibElement * | getSuperiorFibElement () |
virtual cFibElement * | getNextFibElement () |
virtual cFibElement * | getNextFibElement (char cType) |
virtual cFibElement * | getConstFibElement (longFib lNumber, bool bAbsolute=false) const |
virtual cFibElement * | getConstFibElement (char cType, longFib lNumber, bool bAbsolute=false) const |
cFibElement * | getFibElement (longFib lNumber, bool bAbsolute=false) |
cFibElement * | getFibElement (char cType, longFib lNumber, bool bAbsolute=false) |
list< cFibElement * > | getAllFibElements (char cTypeBasis='u', longFib lNumber=1, char cType='u', edDirection direction=ED_ALL, unsignedLongFib lNumberOfMaxReturnedElements=0, bool bAbsolute=false) |
bool | evalueObjectSimple (iEvaluePosition &evaluePosition, const unsignedIntFib objectPoint=0) const |
virtual bool | evalueObject (iEvaluePosition &evaluePosition, const unsignedIntFib objectPoint, list< cVectorProperty > &liVecProperties) const =0 |
bool | evalueObjectSimple (iEvalueFibElement &evalueFibElement, const unsignedIntFib objectPoint=0, const list< char > liCFibElementTyps=list< char >()) |
virtual bool | evalueObject (iEvalueFibElement &evalueFibElement, const unsignedIntFib objectPoint, list< cVectorProperty > &liVecProperties, const list< char > &liCFibElementTyps)=0 |
virtual unsignedLongFib | getTimeNeed (unsignedLongFib lMaxTime=0) const =0 |
virtual unsignedLongFib | getCompressedSize () const =0 |
virtual bool | isUsedVariable (const cFibVariable *variable, edDirection direction=ED_POSITION) const =0 |
virtual set< cFibVariable * > | getUsedVariables (edDirection direction=ED_POSITION)=0 |
virtual bool | isDefinedVariable (const cFibVariable *variable, edDirection direction=ED_POSITION) const |
virtual list< cFibVariable * > | getDefinedVariables (edDirection direction=ED_HIGHER) |
bool | variablesAreDefined (const set< cFibVariable * > &setVariable, edDirection direction=ED_HIGHER) const |
virtual bool | replaceVariable (cFibVariable *variableOld, cFibVariable *variableNew)=0 |
virtual unsignedIntFib | getNumberOfElement (bool bOfType=false) const |
virtual unsignedIntFib | getNumberOfMovePoint () const |
virtual unsignedIntFib | getNumberOfObjectPoint () const |
virtual unsignedIntFib | getNumberOfElements (char cType='u') const =0 |
virtual unsignedIntFib | getNumberOfMovePoints () const =0 |
virtual unsignedIntFib | getNumberOfObjectPoints () const =0 |
virtual unsignedIntFib | typeElementPointToElementPoint (const char cType, const unsignedIntFib elementPoint, bool bAbsolute=false) const |
virtual list< unsignedIntFib > | elementPointToObjectPoints (const char cType, const unsignedIntFib elementPoint, bool bAbsolute=false) const |
virtual list< unsignedIntFib > | getObjectPointsForElement (const cFibElement *pFibElement, bool bAbsolute=false) const |
virtual unsignedIntFib | objectPointToElementPoint (const unsignedIntFib uiObjectPoint, bool bAbsolute=false) const =0 |
virtual bool | insertElement (cFibElement *fibElement, const char cType='u', const unsignedIntFib elementPoint=0, bool bAbsolute=false, bool bCheckVariables=true)=0 |
virtual bool | insertObjectInElement (cFibElement *fibObject, const char cType='u', const unsignedIntFib elementPoint=0, bool first=true, bool bAbsolute=false)=0 |
virtual bool | overwriteObjectWithObject (cFibElement *fibObject, const char cType='u', const unsignedIntFib elementPoint=0, bool bDeleteOld=true, bool bAbsolute=false)=0 |
virtual bool | removeObject (const unsignedIntFib objectPoint, bool bDeleteOld=true, bool bAbsolute=false)=0 |
virtual bool | hasUnderAllObjects () const =0 |
virtual bool | isRemovableElement (const char cType='u', const unsignedIntFib elementPoint=0, bool bAbsolute=false, bool bCheckVariables=true) const |
virtual bool | removeElement (const char cType='u', const unsignedIntFib elementPoint=0, bool bAbsolute=false, bool bCheckVariables=true) |
virtual cFibElement * | cutElement (const char cType='u', const unsignedIntFib elementPoint=0, bool bAbsolute=false, bool bCheckVariables=true)=0 |
virtual bool | isMovable () const |
virtual intFib | moveLimbElement (const char cType='u', const unsignedIntFib elementPoint=0, const intFib iHowfar=1, bool bAbsolute=false)=0 |
virtual cFibElement * | clone () const |
virtual cFibElement * | copy (const unsignedIntFib iObjectPoint=0) const |
virtual cFibElement * | copyElement (const char cType='u', const unsignedIntFib elementPoint=0, bool bAbsolute=false) const =0 |
virtual bool | equal (const cFibElement &fibObject) const =0 |
virtual bool | equalElement (const cFibElement &fibElement) const =0 |
virtual bool | equalValuesSet (const cFibVariable *variableOwn, const cFibElement &fibElement, const cFibVariable *variable) const |
virtual bool | storeXml (ostream &stream) const =0 |
virtual bool | store (ostream &stream) const |
virtual cRoot * | getSuperiorRootElement () |
virtual const cRoot * | getSuperiorRootElement () const |
virtual list< longFib > | getAllRootObjectIdentifiers () const |
virtual list< longFib > | getAllDatabaseObjectIdentifiers () const |
virtual cRoot * | getRootObject (longFib lIdentifier) |
virtual list< longFib > | getAllAccessibleRootObjectIdentifiers () const |
virtual cRoot * | getAccessibleRootObject (longFib lIdentifier) |
virtual cDomains | getValidDomains () const |
virtual cDomains | getValidValueDomains () const |
virtual unsignedIntFib | getNumberOfDimensions () const |
virtual unsignedIntFib | getDimensionMapping (unsignedIntFib iDimensionNumber) const |
virtual bool | isBranch () const |
virtual bool | isLimb () const |
virtual bool | isLeaf () const |
Static Public Member Functions | |
static string | getTypeName (char cType) |
static void | deleteObject (cFibElement *fibObject) |
static cFibElement * | restoreXml (istream &stream, intFib *outStatus=NULL) |
static cFibElement * | restoreXml (const TiXmlNode *pXmlNode, intFib *outStatus=NULL) |
static cFibElement * | restoreXml (const TiXmlNode *pXmlNode, intFib &outStatus, list< cFibVariable * > &liDefinedVariables) |
static cFibElement * | restore (istream &stream, intFib *outStatus=NULL) |
Protected Member Functions | |
cFibElement (cFibElement *pInSuperiorElement=NULL, cFibElement *pInPreviousFibElement=NULL, cFibElement *pInNextFibElement=NULL) | |
cFibElement (const cFibElement &fibElement) | |
virtual bool | storeBit (ostream &stream, char &cRestBits, unsigned char &uiRestBitPosition) const =0 |
virtual bool | registerNewFibElement (cFibElement *newFibElement, unsignedIntFib uINumberOfFibElement, bool bDirectionUp)=0 |
virtual bool | registerNewFibObject (cFibElement *newfibObject, unsignedIntFib uILowerNumberOfFibElements, unsignedIntFib uIUpperNumberOfFibElements, bool bDirectionUp)=0 |
virtual bool | updateAllValues () |
virtual void | cutConnections (edDirection direction=ED_ALL) |
virtual cFibElement * | updateValues (cFibElement *previosFibElement=NULL, cFibElement *pNextArm=NULL) |
virtual unsignedIntFib | getNumberOfObjectPoint (unsignedIntFib uINumberOfStartFibElement) const |
virtual list< unsignedIntFib > | elementPointToObjectPoints (const cFibElement *referencefibObject, const unsignedIntFib uiLastObjectPoint) const |
virtual unsignedIntFib | enumerateVariablesForStoring (unsignedIntFib uiLastVariableNumber=0)=0 |
intFib | moveLimbElementUp (const char cType= 'u', const unsignedIntFib elementPoint=0, const unsignedIntFib uiHowfar=1, bool bAbsolute=false) |
virtual cFibElement * | copyInternal (const unsignedIntFib iObjectPoint=0) const =0 |
virtual list< cFibElement * > | getAllFibElementsFromPosition (char cType, edDirection direction, unsignedLongFib lNumberOfMaxReturnedElements)=0 |
cFibElement * | getMasterRoot () |
cFibElement * | getMasterRoot () const |
virtual bool | isDefinedVariableInternal (const cFibVariable *variable, edDirection direction=ED_POSITION, const cFibElement *pCallingFibElement=NULL) const =0 |
virtual list< cFibVariable * > | getDefinedVariablesInternal (edDirection direction=ED_HIGHER, const cFibElement *pCallingFibElement=NULL)=0 |
Static Protected Member Functions | |
static cFibElement * | restoreXmlInternal (const TiXmlNode *pXmlNode, intFib &outStatus, list< cFibVariable * > &liDefinedVariables) |
static cRoot * | restoreRootInternal (cReadBits &iBitStream, intFib &outStatus, cRoot *pNextRoot) |
static cFibElement * | restoreInternal (cReadBits &iBitStream, intFib &outStatus, list< cFibVariable * > &liDefinedVariables, const cDomains &validDomains, cRoot *pNextRoot) |
Protected Attributes | |
cFibElement * | pSuperiorElement |
cFibElement * | pPreviousFibElement |
cFibElement * | pNextFibElement |
cRoot * | pNextRootElement |
unsignedIntFib | uINumberOfFibElement |
Friends | |
class | cFibBranch |
class | cFibLimb |
class | cFibLeaf |
class | cRoot |
class | cList |
class | cIf |
class | cProperty |
class | cArea |
class | cFunction |
class | cComment |
class | cExtObject |
class | cFibSet |
class | cFibMatrix |
class | cFibVariable |
Definition at line 100 of file cFibElement.h.
|
protected |
parameterconstructor
pInSuperiorElement | the Fib-Element in which this Fib-element is the subobject |
pInPreviousFibElement | the Fib-Element which stands in th order of Fib-elements befor this Fib-element |
pInNextFibElement | the Fib-Element which stands in th order of Fib-elements behind this Fib-element |
|
protected |
copyconstructor This copyconstructor constructs a copy of of the given Fib-Element. It dosn't copy other Fib-elements than the given, even if ther are in the Fib-element.
fibElement | the Fib-element to copy |
|
virtual |
destructor
|
virtual |
This method duplicates the whole Fib-object, beginning with it's highest root-element (the one which contains all the other elements).
|
virtual |
This method copies the connected object with the given number in the order of connected objects. For this every Fib-element, beginning from this Fib-element, that is part of the connected object will be copied. Variables which are not defined in the connected object but used don't change ther reference.
iObjectPoint | the number of the connected object to copy; the standartvalue is 0 for coping the complet actual object |
|
pure virtual |
This method copies the Fib-element on the specified position. Variables which are not defined in the Fib-element but used don't change ther reference.
cType | the type of the Fib-element to copy |
elementPoint | the number of the Fib-element, in the order of Fib-elements of the given type cType, to copy |
bAbsolute | if the lNumber is an absolute value for the wool Fib-object |
Implemented in fib::cRoot, fib::cExtObject, fib::cExtSubobject, fib::cFibMatrix, fib::cFunction, fib::cIf, fib::cArea, fib::cPoint, fib::cProperty, fib::cFibSet, fib::cComment, and fib::cList.
|
protectedpure virtual |
This method copies the connected object with the given number in the order of connected objects. For this every Fib-element, beginning from this Fib-element, that is part of the connected object will be copied. Variables which are not defined in the connected object but used don't change ther reference. It is an helpmethod for the copy method. It dosn't update the structural information of the created Fib-object.
iObjectPoint | the number of the connected object to copy; the standartvalue is 0 for coping the complet actual object |
Implemented in fib::cRoot, fib::cExtObject, fib::cIf, fib::cFibMatrix, fib::cExtSubobject, fib::cFibSet, fib::cArea, fib::cList, fib::cFunction, fib::cPoint, fib::cProperty, and fib::cComment.
|
protectedvirtual |
This method cuts the connections of this Fib-element to other Fib-elements.
direction | the direction into which the connections are to be cutted ED_HIGHER, ED_HIGHER_EQUAL, ED_ALL: will cut the conection to superior and previous Fib-elements ED_BELOW, ED_BELOW_EQUAL, ED_ALL: will cut the conection to next- Fib-element and the subobjects |
Reimplemented in fib::cFibBranch, and fib::cFibLimb.
|
pure virtual |
This method cuts the Fib-element on the specified position. This works like removeElement(), except that the removed element is returned.
cType | the type of the Fib-element to cut |
elementPoint | the number of the Fib-element, in the order of Fib-elements of the given type cType, to cut |
bAbsolute | if the elementPoint is an absolute value for the wool Fib-object |
bCheckVariables | if true (standard value) it will be checked if the variables the Fib-element defines are needed, else the Fib-element will be removed even if its variables are needed elsewher |
Implemented in fib::cRoot, fib::cExtObject, fib::cIf, fib::cFibBranch, fib::cFibLimb, and fib::cFibLeaf.
|
static |
This method deletes the whool given Fib-object with all the fib elements it contains and is contained in. The memory for the fib -object is freed.
fibObject | the Fib-object to delete |
|
virtual |
This method returns the numbers of all object points that contain the elementPoint Fib-element of the type cType.
cType | the type the Fib-element has |
elementPoint | the number of the Fib-element in the order of Fib-elements of the type cType |
bAbsolute | if the lNumber is an absolute value for the wool Fib-object |
|
protectedvirtual |
This method returns the numbers of all object points that contain the elementPoint Fib-element of the type cType.
referencefibObject | the Fib-element for which the object points are to returned |
uiLastObjectPoint | the number of the last object point to the referencefibObject |
Reimplemented in fib::cFibBranch, and fib::cFibLeaf.
|
protectedpure virtual |
This method sets the each variable, which is defined over an leaf, to an uniqe integer number greater than the given number uiLastVariableNumber. While storing this number can be stored to identify the variable.
uiLastVariableNumber | the number which was last use, this means also is the greatest used, in this limb. |
Implemented in fib::cExtObject, fib::cFibBranch, fib::cFibLeaf, fib::cFibLimb, fib::cFibMatrix, fib::cFibSet, fib::cArea, fib::cFunction, and fib::cComment.
|
pure virtual |
This method checks if the given Fib-object is equal to this fib -object. Variables can be others, but must be defined and used in equivalent Fib-elements.
fibObject | the Fib-object to which this Fib-object should be equal |
Implemented in fib::cFibBranch, fib::cFibLimb, fib::cFibLeaf, fib::cRoot, fib::cExtObject, fib::cFunction, fib::cIf, fib::cArea, fib::cPoint, fib::cProperty, and fib::cComment.
|
pure virtual |
This method checks if the given Fib-element is equal to this fib -element. The subobjects arn't compared, not even ther count is compared. Used variables can be others.
fibElement | the Fib-element to which this Fib-element should be equal |
Implemented in fib::cRoot, fib::cExtObject, fib::cFunction, fib::cIf, fib::cArea, fib::cProperty, fib::cComment, and fib::cList.
|
virtual |
This method checks if the given Fib-element sets the variable to the same values as this Fib-element.
variableOwn | a pointer to a defined variable in this Fib-element, it is compared to the equivalent variable fibElement in the given Fib-element fibElement |
fibElement | the Fib-element to which this Fib-element should be compared |
variable | a pointer to a defined variable in the other Fib-element fibElement |
Reimplemented in fib::cRoot, and fib::cExtObject.
|
pure virtual |
This method evaluades the Fib-object.
strategy
evaluePosition | a reference to the object with the evaluePosition() method to evalue /store the positions and ther properties; everytime a point (to evalue) is reached in the evaluation, this method is called with the position and the properties of the point; |
objectPoint | the object point in the order of true partobjects to evalue |
liVecProperties | a list with the property vectors which should be global for the evalued object |
Implemented in fib::cRoot, fib::cExtSubobject, fib::cExtObject, fib::cFibMatrix, fib::cComment, fib::cFunction, fib::cIf, fib::cList, fib::cArea, fib::cPoint, fib::cProperty, and fib::cFibSet.
|
pure virtual |
This method evaluades the Fib-object. Evertime a Fib-elements, with a type of the given type chars in liCFibElementTyps, is reached while evaluation, it is given back with the properties which it has. Ever pointelement is given back. The type chars for pointelements don't need to be in the list liCFibElementTyps.
strategy
evalueFibElement | a reference to the object with the evalueElement() method to evalue /store the Fib-elements and ther properties; everytime a Fib-element (with one of the type given in liCFibElementTyps) is reached in the evaluation, the method evalueElement() of this objects is called with the Fib-element and the properties of the Fib-element; |
objectPoint | the object point in the order of true partobjects to evalue |
liVecProperties | a list with the property vectors which should be global for the evalued object |
liCFibElementTyps | a list with the type chars ( |
Implemented in fib::cRoot, fib::cExtSubobject, fib::cExtObject, fib::cFibMatrix, fib::cComment, fib::cFunction, fib::cIf, fib::cList, fib::cArea, fib::cPoint, fib::cProperty, and fib::cFibSet.
bool fib::cFibElement::evalueObjectSimple | ( | iEvaluePosition & | evaluePosition, |
const unsignedIntFib | objectPoint = 0 |
||
) | const |
This method evaluades the Fib-object.
strategy
evaluePosition | a reference to the object with the evaluePosition() method to evalue /store the positions and ther properties; everytime a point (to evalue) is reached in the evaluation, this method is called with the position and the properties of the point; |
objectPoint | the object point in the order of true partobjects to evalue |
bool fib::cFibElement::evalueObjectSimple | ( | iEvalueFibElement & | evalueFibElement, |
const unsignedIntFib | objectPoint = 0 , |
||
const list< char > | liCFibElementTyps = list< char >() |
||
) |
This method evaluades the Fib-object. Evertime a Fib-elements, with a type of the given type chars in liCFibElementTyps, is reached while evaluation, it is given back with the properties which it has. Ever pointelement is given back. The type chars for pointelements don't need to be in the list liCFibElementTyps.
strategy
evalueFibElement | a reference to the object with the evalueElement() method to evalue /store the Fib-elements and ther properties; everytime a Fib-element (with one of the type given in liCFibElementTyps) is reached in the evaluation, the method evalueElement() of this objects is called with the Fib-element and the properties of the Fib-element; |
objectPoint | the object point in the order of true partobjects to evalue |
liCFibElementTyps | a list with the type chars ( |
This method returns the from this Fib-element accessible root -object for the given identifier. If non such exists the Nullpointer NULL is returned.
lIdentifier | the identifier of the root-object to return |
Reimplemented in fib::cRoot.
|
virtual |
This method returns the identifiers of all from this Fib-element accessible root-objects of this object.
Reimplemented in fib::cRoot.
|
virtual |
This method returns the identifiers of all database -objects, in the actual database.
Reimplemented in fib::cRoot.
list<cFibElement*> fib::cFibElement::getAllFibElements | ( | char | cTypeBasis = 'u' , |
longFib | lNumber = 1 , |
||
char | cType = 'u' , |
||
edDirection | direction = ED_ALL , |
||
unsignedLongFib | lNumberOfMaxReturnedElements = 0 , |
||
bool | bAbsolute = false |
||
) |
This method returns a number of (lNumberOfMaxReturnedElements) Fib-elements beginning from the reference Fib-element in the given direction of the given type cType.
cTypeBasis | the type of the reference Fib-element |
lNumber | the number of the reference Fib-element to return |
cType | the type of the Fib-elements to return; 'w' stands for wrong/ not correct Fib-elements |
direction | the direction, beginning from the reference Fib-element, in which the to return Fib-elements should stand |
lNumberOfMaxReturnedElements | the maximal number of Fib-elements to return |
bAbsolute | if the lNumber is an absolute value for the wool Fib-object |
|
protectedpure virtual |
This method returns a number of (lNumberOfMaxReturnedElements) Fib-elements beginning from the actual Fib-element in the given direction of the given type cType. The actual Fib-element will never be included in the returned list.
cType | the type of the Fib-elements to return; 'w' stands for wrong/ not correct Fib-elements |
direction | the direction, beginning from the reference Fib-element, in which the to return Fib-elements should stand |
lNumberOfMaxReturnedElements | the maximal number of Fib-elements to return |
Implemented in fib::cFibBranch, fib::cFibLeaf, and fib::cFibLimb.
|
virtual |
This method returns the identifiers of all root-objects of this object.
Reimplemented in fib::cRoot.
|
pure virtual |
This method evaluades the size of the Fib-object in bits in the compressed file form. The optionalpart field of root-elements will be ignored.
Implemented in fib::cRoot, fib::cExtSubobject, fib::cExtObject, fib::cFibMatrix, fib::cComment, fib::cList, fib::cFunction, fib::cIf, fib::cArea, fib::cPoint, fib::cProperty, and fib::cFibSet.
|
virtual |
This method returns the lNumber'th Fib-element in the order of Fib-elements.
lNumber | the number of the Fib-Element to return |
bAbsolute | if the lNumber is an absolute value for the wool Fib-object |
|
virtual |
This method returns the lNumber'th Fib-element in the order of Fib-elements of the given type cTyp with the given type cTyp.
cType | the type of the Fib-element to return |
lNumber | the number of the Fib-element to return |
bAbsolute | if the lNumber is an absolute value for the wool Fib-object |
|
virtual |
This method returns all variables defined in the given direction from this Fib-element.
direction | the direction from this Fib-element, in which the variable should be defined; standard value is ED_HIGHER so yust higher Fib-elements will be checked |
|
protectedpure virtual |
This method returns all variables defined in the given direction from this Fib-element. This is for intern use to get the correct data from getDefinedVariables() without pCallingFibElement..
direction | the direction from this Fib-element, in which the variable should be used; standard value is ED_POSITION so yust this Fib-element will be checked |
pCallingFibElement | the Fib-Element which called this method |
Implemented in fib::cRoot, fib::cExtObject, fib::cFibBranch, fib::cFibLeaf, fib::cFibLimb, fib::cFibMatrix, fib::cFibSet, fib::cArea, and fib::cFunction.
|
virtual |
This method returns in which direction the iDimensionNumber dimension is mapped.
iDimensionNumber | the number of the dimension for which the mapping is to be returned |
Reimplemented in fib::cRoot.
cFibElement* fib::cFibElement::getFibElement | ( | longFib | lNumber, |
bool | bAbsolute = false |
||
) |
This method returns the lNumber'th Fib-element in the order of Fib-elements.
lNumber | the number of the Fib-Element to return |
bAbsolute | if the lNumber is an absolute value for the wool Fib-object |
cFibElement* fib::cFibElement::getFibElement | ( | char | cType, |
longFib | lNumber, | ||
bool | bAbsolute = false |
||
) |
This method returns the lNumber'th Fib-element in the order of Fib-elements of the given type cTyp with the given type cTyp.
cType | the type of the Fib-element to return |
lNumber | the number of the Fib-element to return |
bAbsolute | if the lNumber is an absolute value for the wool Fib-object |
|
protected |
|
protected |
|
virtual |
This method returns the next Fib-element in the order of Fib-elements.
|
virtual |
This method returns the next Fib-element in the order of Fib-elements with the given type cTyp.
cType | the type of the Fib-element to return |
|
virtual |
This method returns the number of dimensions in this Fib-Multimediaobject.
Reimplemented in fib::cRoot.
|
virtual |
This method returns the number of this Fib-element in the order of Fib-Elements or order of Fib-Elements of the same type if bOfType is true.
bOfType | if true the returned number is the number the order of Fib-elements of the same type as this Fib-Element, else in the order of all Fib-elements |
|
pure virtual |
This method returns the number of Fib-elements of a type in this fib -object.
cType | the character of the type ( |
Implemented in fib::cFibBranch, fib::cFibLimb, and fib::cFibLeaf.
|
virtual |
This method returns the number of this Fib-element in the order of move points.
|
pure virtual |
This method returns the number of move points in this Fib-object.
Implemented in fib::cFibBranch, fib::cFibLimb, and fib::cFibLeaf.
|
virtual |
This method returns the number of the next connected object point in the order of connected object points that conntains this fib -element.
|
protectedvirtual |
This method returns the number of the next connected object point in the order of connected object points that conntains this fib -element.
uINumberOfStartFibElement | the number, in the order of all Fib-elements, of the Fib-element for which the connected object point is to return |
Reimplemented in fib::cFibBranch, and fib::cFibLeaf.
|
pure virtual |
This method returns the number of object points in this Fib-object.
Implemented in fib::cFibBranch, fib::cFibLimb, and fib::cFibLeaf.
|
virtual |
This method returns the numbers of all object points that contain the elementPoint Fib-element of the type cType.
pFibElement | the Fib-element for which the object points are to evalue |
bAbsolute | if the lNumber is an absolute value for the wool Fib-object |
This method returns the root-object for the given identifier. If non such exists the Nullpoint NULL is returned.
lIdentifier | the identifier of the root-object to return |
Reimplemented in fib::cRoot.
|
virtual |
This method returns the superior Fib-element of this Fib-element.
|
virtual |
|
virtual |
|
pure virtual |
This method evaluades a value for the time needed to evalue the object. This value should not exceed lMaxTime, if the value for the time is greater than lMaxTime the evaluation will be stopt and lMaxTime returned. If lMaxTime is 0 (for infinity) the evaluation won't be stoped, this is the standard case.
lMaxTime | the maximum time for the evaluation, the returned exceed this value; the value 0 stands for infinity, so the evaluation won't be stoped |
Implemented in fib::cRoot, fib::cExtSubobject, fib::cExtObject, fib::cFibMatrix, fib::cComment, fib::cFunction, fib::cIf, fib::cList, fib::cArea, fib::cPoint, fib::cProperty, and fib::cFibSet.
|
pure virtual |
Implemented in fib::cRoot, fib::cExtSubobject, fib::cExtObject, fib::cComment, fib::cFibMatrix, fib::cFunction, fib::cIf, fib::cArea, fib::cPoint, fib::cList, fib::cProperty, and fib::cFibSet.
|
static |
This function converts a element type character into a string with the element name.
cType | a character for the type of a Fib-element, like the getTyp() returns it |
|
pure virtual |
This method returns all variables used in the given direction from this Fib-element.
direction | the direction from this Fib-element, in which the variable should be used; standard value is ED_POSITION so yust this Fib-element will be checked |
Implemented in fib::cExtObject, fib::cExtSubobject, fib::cFibMatrix, fib::cFunction, fib::cIf, fib::cArea, fib::cPoint, fib::cProperty, fib::cFibSet, fib::cFibBranch, fib::cFibLimb, and fib::cFibLeaf.
|
virtual |
This method returns the domains that are valid for this Fib-element.
Reimplemented in fib::cRoot.
|
virtual |
This method returns the value domains that are valid for this Fib-element.
Reimplemented in fib::cRoot.
|
pure virtual |
This method checks, if all Fib-elements of this Fib-object have the subobjects they need to be correct.
Implemented in fib::cIf, fib::cFibBranch, fib::cFibLimb, fib::cFibLeaf, fib::cRoot, and fib::cList.
|
pure virtual |
This method inserts the given Fib-element fibElement on the specified position. The replaced Fib-element will be the subobject of the inserted Fib-element fibElement.
cType | the type of the Fib-element instead of which the given Fib-element fibElement should be inserted |
elementPoint | the number of the Fib-element, in the order of Fib-elements of the given type cType, in which position the given Fib-element fibElement should be inserted; if 0 the given fibElement will be inserted under this Fib-element |
fibElement | the Fib-element to insert |
bAbsolute | if the lNumber is an absolute value for the wool Fib-object |
bCheckVariables | if true (standard value) it will be checked if the variables the Fib-element defines are needed, else the Fib-element will be removed even if its variables are needed elsewher |
Implemented in fib::cRoot, fib::cExtObject, fib::cIf, fib::cFibBranch, fib::cFibLimb, and fib::cFibLeaf.
|
pure virtual |
This method inserts the given Fib-object fibObject on the specified position. On the specified position a listelement will be inserted, with the old Fib-object and the given Fib-object fibObject as its subobjects.
cType | the type of the Fib-element, on which position the given Fib-object fibObject should be inserted |
elementPoint | the number of the Fib-element, in the order of Fib-elements of the given type cType, on which position the given Fib-object fibObject should be inserted |
fibObject | the Fib-object to insert |
first | if true, the inserted object will be the first subobject of the new listelement |
bAbsolute | if the lNumber is an absolute value for the wool Fib-object |
Implemented in fib::cRoot, fib::cExtObject, fib::cIf, fib::cFibBranch, fib::cFibLimb, and fib::cFibLeaf.
|
virtual |
Reimplemented in fib::cFibBranch.
|
virtual |
This method checks if the given variable is defined in the given direction from this Fib-element.
variable | the variable to check if it is defined |
direction | the direction from this Fib-element, in which the variable should be defined; standard value is ED_POSITION so yust this Fib-element will be checked |
|
protectedpure virtual |
This method checks if the given variable is defined in the given direction from this Fib-element. This is for intern use to get the correct data from isDefinedVariable() without pCallingFibElement.
variable | the variable to check if it is defined |
direction | the direction from this Fib-element, in which the variable should be defined; standard value is ED_POSITION so yust this Fib-element will be checked |
pCallingFibElement | the Fib-Element which called this method |
Implemented in fib::cRoot, fib::cExtObject, fib::cFibBranch, fib::cFibLeaf, fib::cFibLimb, fib::cFibMatrix, fib::cFibSet, fib::cArea, and fib::cFunction.
|
virtual |
Reimplemented in fib::cFibLeaf.
|
virtual |
Reimplemented in fib::cFibLimb.
|
virtual |
Reimplemented in fib::cFibLimb, fib::cRoot, fib::cExtObject, and fib::cFibLeaf.
|
virtual |
This method checks, if the Fib-element on the specified position is deletable. An deletable Fib-element doesn't make the Fib-object invalid if it is deleted (e.g. points- and listelements are never deletable).
cType | the type of the Fib-element to check |
elementPoint | the number of the Fib-element, in the order of Fib-elements of the given type cType, to check |
bAbsolute | if the elementPoint is an absolute value for the wool Fib-object |
bCheckVariables | if true (standard value) it will be checked if the variables the Fib-element defines are needed, else the Fib-element will be removed even if its variables are needed elsewher |
Reimplemented in fib::cFibBranch, and fib::cFibLeaf.
|
pure virtual |
This method checks if the given variable is used in the given direction from this Fib-element.
variable | the variable to check if it is used |
direction | the direction from this Fib-element, in which the variable should be used; standard value is ED_POSITION so yust this Fib-element will be checked |
Implemented in fib::cExtObject, fib::cExtSubobject, fib::cFibMatrix, fib::cFunction, fib::cIf, fib::cArea, fib::cPoint, fib::cProperty, fib::cFibSet, fib::cFibBranch, fib::cFibLimb, and fib::cFibLeaf.
|
pure virtual |
This method checks, if this Fib-element is an valid Fib-element.
Implemented in fib::cRoot, fib::cExtObject, fib::cFibMatrix, fib::cExtSubobject, fib::cList, fib::cFibSet, fib::cFunction, fib::cIf, fib::cFibBranch, fib::cFibLimb, and fib::cFibLeaf.
|
pure virtual |
This method moves a Fib-limb -element (cFibLimb) on the specified position over iHowfar Fib-elements. Moving is stoped if an invalid Fib-object would result (e.g. no fib -element can be moved over an Fib-elements that defines a variable the moved Fib-element uses). Moving an Fib-element into an listelement will result in an listelement with the moved element in everyone of it's subobjects.
cType | the type of the Fib-element to move |
elementPoint | the number of the Fib-element, in the order of Fib-elements of the given type cType, to move |
iHowfar | the number of Fib-elements over which the to move Fib-element should be moved; if this value is positiv the fib -element will be moved over Fib-elements it contains else over Fib-elements it is contained in |
bAbsolute | if the elementPoint is an absolute value for the wool Fib-object |
Implemented in fib::cRoot, fib::cExtObject, fib::cFibBranch, fib::cFibLimb, and fib::cFibLeaf.
|
protected |
This method moves a Fib-limb -element (cFibLimb) on the specified position over uiHowfar Fib-elements up. Moving is stoped if an invalid Fib-object would result (e.g. no fib -element can be moved over an Fib-elements that defines a variable the moved Fib-element uses). Moving an Fib-element into an listelement will result in an listelement with the moved element in everyone of it's subobjects.
cType | the type of the Fib-element to move |
elementPoint | the number of the Fib-element, in the order of Fib-elements of the given type cType, to move |
uiHowfar | the number of Fib-elements over which the to move Fib-element should be moved up |
bAbsolute | if the elementPoint is an absolute value for the wool Fib-object |
|
pure virtual |
This method returns the number of the Fib-element over wich the objectPoint object point is defined.
uiObjectPoint | the number of the object point for which the definig Fib-element number should be returned |
bAbsolute | if the lNumber is an absolute value for the wool Fib-object |
Implemented in fib::cFibBranch, fib::cFibLimb, and fib::cFibLeaf.
|
pure virtual |
This method overwrites the Fib-object on specified position with the given Fib-object fibObject. The Fib-object on specified position will be replaced with the given Fib-object fibObject.
cType | the type of the Fib-element, on which position the given Fib-object fibObject should be inserted |
elementPoint | the number of the Fib-element, in the order of Fib-elements of the given type cType, on which position the given Fib-object fibObject should be inserted |
fibObject | the Fib-object to insert |
bDeleteOld | if true, delete the old Fib-object from the memory |
bAbsolute | if the elementPoint is an absolute value for the wool Fib-object |
Implemented in fib::cRoot, fib::cExtObject, fib::cIf, fib::cFibBranch, fib::cFibLimb, and fib::cFibLeaf.
|
protectedpure virtual |
With this method a new Fib-element in the Fib-Object is registert by the other Fib-elements in the Fib-Object.
newFibElement | the new Fib-element to register |
uINumberOfFibElement | the number of the new Fib-element in the order of all Fib-Elements in the Fib-object |
bDirectionUp | the direction in which the registration of the new Fib-element is performed in the Fib-object tree; from the position on which the new Fib-Element is added the method is called for both directions |
Implemented in fib::cFibBranch, fib::cFibLimb, and fib::cFibLeaf.
|
protectedpure virtual |
With this method a new part Fib-object in the Fib-Object is registert by the other Fib-elements in the Fib-Object.
newfibObject | the new part Fib-object to register |
uILowerNumberOfFibElements | the number of the Fib-element in the new part Fib-object with the lowest number in the order of all Fib-Elements in the entire Fib-object |
uIUpperNumberOfFibElements | the number of the Fib-element in the new part Fib-object with the highest number in the order of all Fib-Elements in the entire Fib-object |
bDirectionUp | the direction in which the registration of the new part Fib-object is performed in the Fib-object tree; |
Implemented in fib::cFibBranch, fib::cFibLimb, and fib::cFibLeaf.
|
virtual |
This method removes the Fib-element on the specified position.
cType | the type of the Fib-element to remove |
elementPoint | the number of the Fib-element, in the order of Fib-elements of the given type cType, to remove |
bAbsolute | if the elementPoint is an absolute value for the wool Fib-object |
bCheckVariables | if true (standard value) it will be checked if the variables the Fib-element defines are needed, else the Fib-element will be removed even if its variables are needed elsewher |
|
pure virtual |
This method removes the connected object with the given number in the order of connected object points. For this the defining subobject in an listelement will be removed. If the listelement contains after the operation yust one subobject, the listelement will be replaced with the subobject.
objectPoint | the number of the connected object to remove |
bDeleteOld | if true, delete the connected object from the memory, else yust remove it's pointers |
bAbsolute | if the objectPoint is an absolute value for the wool Fib-object |
Implemented in fib::cFibBranch, fib::cFibLimb, and fib::cFibLeaf.
|
pure virtual |
This method replace the variable variableOld with the variable variableNew in the object. Don't touch variable definitions, just the uses of the varaible variableOld will be changed.
variableOld | the variable to replace |
variableNew | the variable with which the variable variableOld is to replace |
Implemented in fib::cExtSubobject, fib::cFibMatrix, fib::cFunction, fib::cIf, fib::cExtObject, fib::cArea, fib::cPoint, fib::cProperty, fib::cFibSet, fib::cFibBranch, and fib::cFibLimb.
|
static |
This method restores this Fib-object from the stream where it is stored in the compressed Fib-format.
Factory Method
stream | the stream where this Fib-object is stored to in |
outStatus | An pointer to an integervalue where the errorvalue can be stored to. If the pointer is NULL no errorvalue will be given back. possible errorvalues are:
|
|
staticprotected |
This method restores a (non root) Fib-object from the stream where it is stored in the compressed Fib -format. This method is for internal use only.
iBitStream | the stream where this Fib-object 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 |
validDomains | the domains valid for restoring the Fib-elements |
pNextRoot | the next higher root-element for the to restore Fib-elements, or the last restored root-element |
|
staticprotected |
This method restores a rootobject from the stream where it is stored in the compressed Fib-format. This method is for internal use only.
iBitStream | the stream where this rootobject 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:
|
pNextRoot | the next higher root-element for the to restore Fib-elements, or the last restored root-element; if NULL the next Fib-element restored will be an root-element |
|
static |
This method restores this Fib-object from the stream where it is stored in the XML -format.
Factory Method
stream | the stream where the Fib-object is stored in |
outStatus | An pointer to an integervalue where the errorvalue can be stored to. If the pointer is NULL no errorvalue will be given back. possible errorvalues are:
|
|
static |
This method restores this Fib-object from the TinyXml handle where it is stored.
Factory Method
pXmlNode | a pointer to the TinyXml node the Fib-object is stored in |
outStatus | An pointer to an integervalue where the errorvalue can be stored to. If the pointer is NULL no errorvalue will be given back. possible errorvalues are:
|
|
static |
This method restores this Fib-object from the TinyXml node where it is stored.
Factory Method
pXmlNode | a pointer to the TinyXml node the Fib-object 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 |
|
staticprotected |
This method restores this Fib-object from the TinyXml node where it is stored.
pXmlNode | a pointer to the TinyXml node the Fib-object 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 |
|
virtual |
This method stores this Fib-object in the compressed Fib-format into the given stream.
stream | the stream where this Fib-object should be stored to |
|
protectedpure 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 |
Implemented in fib::cRoot, fib::cExtObject, fib::cIf, fib::cFibMatrix, fib::cExtSubobject, fib::cFibSet, fib::cArea, fib::cList, fib::cFunction, fib::cPoint, fib::cProperty, and fib::cComment.
|
pure virtual |
This method stores this Fib-object in the XML -format into the given stream.
stream | the stream where this Fib-object should be stored to |
Implemented in fib::cRoot, fib::cExtObject, fib::cFunction, fib::cIf, fib::cExtSubobject, fib::cArea, fib::cPoint, fib::cProperty, fib::cFibMatrix, fib::cComment, fib::cFibSet, and fib::cList.
|
virtual |
This method converts the number of the elementPoint Fib-element of the type cType in this Fib-object to the number it has in the order of all Fib-elements.
cType | the type the original Fib-element has |
elementPoint | the number of the original Fib-element in the order of Fib-elements of the type cType |
bAbsolute | if the lNumber is an absolute value for the wool Fib-object |
|
protectedvirtual |
This method updates the values/ properties off all Fib-elements in the whool Fib-object this Fib-element is part of.
The highest Fib-element needs to be reachebel from this Fib-element and every subobject should have all it's subobjects.
|
protectedvirtual |
This method updates the values/ properties off all Fib-elements in this Fib-object beginning with this Fib-element. Every subobject should have all it's subobjects.
previosFibElement | the prvios Fib-element to this Fib-element in the order of Fib-elements; if it is NULL ther is no previos Fib-element to this |
pNextArm | the next arm Fib-object in the next higher Fib-brancheelement |
Reimplemented in fib::cFibBranch, fib::cFibLimb, and fib::cFibLeaf.
bool fib::cFibElement::variablesAreDefined | ( | const set< cFibVariable * > & | setVariable, |
edDirection | direction = ED_HIGHER |
||
) | const |
This method checks if the variables in the given variableset are defined in the given direction from this Fib-element.
setVariable | the set with the variable to check, if it is defined |
direction | the direction from this Fib-element, in which the variables should be defined; standard value is ED_HIGHER so yust higher Fib-elements will be checked |
|
friend |
Definition at line 110 of file cFibElement.h.
|
friend |
Definition at line 112 of file cFibElement.h.
|
friend |
Reimplemented in fib::cRoot.
Definition at line 113 of file cFibElement.h.
|
friend |
Reimplemented in fib::cRoot, fib::cFibLimb, fib::cExtObject, and fib::cIf.
Definition at line 103 of file cFibElement.h.
|
friend |
Definition at line 105 of file cFibElement.h.
|
friend |
Definition at line 104 of file cFibElement.h.
|
friend |
Definition at line 115 of file cFibElement.h.
|
friend |
Definition at line 114 of file cFibElement.h.
|
friend |
Definition at line 116 of file cFibElement.h.
|
friend |
Definition at line 111 of file cFibElement.h.
|
friend |
Definition at line 108 of file cFibElement.h.
|
friend |
Definition at line 107 of file cFibElement.h.
|
friend |
Reimplemented in fib::cRoot.
Definition at line 109 of file cFibElement.h.
|
friend |
Reimplemented in fib::cExtObject, and fib::cComment.
Definition at line 106 of file cFibElement.h.
|
protected |
the next Fib-element in the order of Fib-elements or the Nullpointer NULL if ther is non such
Definition at line 138 of file cFibElement.h.
|
protected |
the next root-element; This is the next root-element this Element is contained in.
Definition at line 144 of file cFibElement.h.
|
protected |
the previous Fib-element in the order of Fib-elements or the Nullpointer NULL if ther is non such
Definition at line 132 of file cFibElement.h.
|
protected |
the Fib-element in which this Fib-element is the subobject or the Nullpointer NULL if ther is non such
Definition at line 122 of file cFibElement.h.
|
protected |
the number of this Fib-element in the order of all Fib-elements
Definition at line 149 of file cFibElement.h.