The Fib multimedia system
Fib is a system for storing multimedia data (like images or films).
|
#include <cVectorProperty.h>
Public Member Functions | |
cVectorProperty (unsignedIntFib uiPropertyType, cFibElement *pDefiningPropertyElement=NULL) | |
cVectorProperty (const cVectorProperty &vector, cFibElement *pDefiningFibElement=NULL) | |
cVectorProperty (unsignedIntFib uiPropertyType, unsignedIntFib iNumberOfElements, cFibElement *pDefiningPropertyElement=NULL) | |
cVectorProperty (const TiXmlElement *pXmlElement, intFib &outStatus, list< cFibVariable * > &liDefinedVariables) | |
cVectorProperty (cReadBits &iBitStream, intFib &outStatus, list< cFibVariable * > &liDefinedVariables, const cDomain *pInVectorDomain, const cDomain *pInDomainVariable, unsignedIntFib uiInPropertyType) | |
cVectorProperty (const cTypeProperty &typeProperty) | |
virtual cVectorProperty * | createInstance (unsignedIntFib iNumberOfElements=2, cFibElement *definingPropertyElement=NULL) const |
virtual cTypeElement * | getElementType () const |
virtual unsignedIntFib | getPropertyType () const |
bool | isOverwritenVector (const cVectorProperty &vectorToCheck) const |
bool | isOverwriting () const |
bool | isEvalued () const |
virtual string | getVectorType () const |
virtual cVectorProperty & | operator= (const cFibVector &vector) |
bool | operator< (const cVectorProperty &vector) const |
doubleFib | distanceToProperty (const cVectorProperty &property) const |
doubleFib | distanceOfPropertyToNull () const |
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 cFibVariable * | getVariable (unsignedIntFib iNumberElement) |
virtual bool | setVariable (unsignedIntFib iNumberElement, cFibVariable *pVariable) |
virtual cDomainVectorBasis * | getDomain () const |
virtual cDomainVectorBasis * | getValueDomain () const |
virtual cDomain * | getDomain (unsignedIntFib iNumberElement) const |
virtual cDomainVectorBasis * | getStandardDomain () const |
virtual cDomainSingle * | getVariableDomain () const |
cFibElement * | getDefiningFibElement () const |
virtual void | setDefiningFibElement (cFibElement *fibElement=NULL, bool bCheckDomains=true) |
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 bool | operator< (const cFibVector &vector) const |
Static Public Member Functions | |
static bool | lowerPropertyVector (const cVectorProperty &vector1, const cVectorProperty &vector2) |
static doubleFib | distanceOfProperty (const cVectorProperty &property1, const cVectorProperty &property2) |
static doubleFib | distanceOfPropertyToNull (const cVectorProperty &property) |
Static Public Member Functions inherited from fib::cFibVector | |
static bool | lowerVector (const cFibVector &vector1, const cFibVector &vector2) |
Protected Attributes | |
unsignedIntFib | uiPropertyType |
Protected Attributes inherited from fib::cFibVector | |
vector< eVectorType > | liVectorType |
vector< doubleFib > | liVectorValues |
vector< cFibVariable * > | liVectorVariable |
cFibElement * | pDefiningFibElement |
Additional Inherited Members | |
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 cFibElement * | getVariableUsingFibElement () const |
virtual bool | deleteVariable (cFibVariable *pVariable) |
Definition at line 56 of file cVectorProperty.h.
fib::cVectorProperty::cVectorProperty | ( | unsignedIntFib | uiPropertyType, |
cFibElement * | pDefiningPropertyElement = NULL |
||
) |
The constructor of the propertyvector.
uiPropertyType | a number for the type of the property, this should be a type with a correct standard domain |
pDefiningPropertyElement | the Fib -propertyelement which defines/ uses the propertyvector |
fib::cVectorProperty::cVectorProperty | ( | const cVectorProperty & | vector, |
cFibElement * | pDefiningFibElement = NULL |
||
) |
The copy constructor of the vector.
vector | the vector from which to copy the data |
definingFibElement | the Fib -element which defines/ uses the new vector |
fib::cVectorProperty::cVectorProperty | ( | unsignedIntFib | uiPropertyType, |
unsignedIntFib | iNumberOfElements, | ||
cFibElement * | pDefiningPropertyElement = NULL |
||
) |
The constructor of the propertyvector.
uiPropertyType | a number for the type of the property |
iNumberOfElements | number of elements in the vector |
pDefiningPropertyElement | the Fib -propertyelement which defines/ uses the propertyvector |
fib::cVectorProperty::cVectorProperty | ( | const TiXmlElement * | pXmlElement, |
intFib & | outStatus, | ||
list< cFibVariable * > & | liDefinedVariables | ||
) |
The constructor for restoring a vector from an TinyXml element.
pXmlNode | a pointer to the TinyXml node the vector 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 vector, every variable should have it's number (the number under which it is stored) as it's value |
fib::cVectorProperty::cVectorProperty | ( | cReadBits & | iBitStream, |
intFib & | outStatus, | ||
list< cFibVariable * > & | liDefinedVariables, | ||
const cDomain * | pInVectorDomain, | ||
const cDomain * | pInDomainVariable, | ||
unsignedIntFib | uiInPropertyType | ||
) |
This constructor restores a propertyvector from the stream where it is stored in the compressed fib -format.
iBitStream | the stream where this vector 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 vector, every variable should have it's number (the number under which it is stored) as it's value |
pInVectorDomain | the domain for this vector |
pInDomainVariable | the domain for variables |
uiInPropertyType | a number for the type of the property |
fib::cVectorProperty::cVectorProperty | ( | const cTypeProperty & | typeProperty | ) |
The constructor of the propertyvector.
typeProperty | the type this propertyvector should have |
|
virtual |
This method creates an instance of this vector type.
iNumberOfElements | number of elements in the vector |
definingPropertyElement | the Fib -propertyelement which defines/ uses the propertyvector |
Implements fib::cFibVector.
|
static |
This function evalues the distance of two properties of the same type. This distance is the sum of the differnece of the property vectorelements
property1 | the first propertyvector |
property2 | the second propertyvector |
doubleFib fib::cVectorProperty::distanceOfPropertyToNull | ( | ) | const |
This function evalues the distance of the this property to a property of the same type, wher all vectorelements are 0. This distance is the sum of the differnece of the property vectorelements
property | the propertyvector |
|
static |
This function evalues the distance of the given property to a property of the same type, wher all vectorelements are 0. This distance is the sum of the differnece of the property vectorelements
property | the propertyvector |
doubleFib fib::cVectorProperty::distanceToProperty | ( | const cVectorProperty & | property | ) | const |
This function evalues the distance of this property to the given property of the same type. This distance is the sum of the differnece of the property vectorelements
property | the first propertyvector |
|
virtual |
Returns the type of the vector. You have to delete the returned object after usage.
Implements fib::cFibVector.
|
virtual |
This method returns a number for the type of the property.
|
virtual |
Implements fib::cFibVector.
bool fib::cVectorProperty::isEvalued | ( | ) | const |
bool fib::cVectorProperty::isOverwritenVector | ( | const cVectorProperty & | vectorToCheck | ) | const |
This method checks if the given vector is overwritten by this vector.
vectorToCheck | the vector to check, if it is overwritten |
bool fib::cVectorProperty::isOverwriting | ( | ) | const |
This function checks if the this property vector overwrites property vectors.
|
static |
This function compares two propertyvectors. Propertyvectors is lower if it's propertypvalues is lower than the propertyvectors of the other vector or its propertypvalues is equal, but if it has less elements than the other vector or it's i'th element is lower and all j'th elements with i > j are equal.
vector1 | the first property to compare |
vector2 | the second property to compare |
bool fib::cVectorProperty::operator< | ( | const cVectorProperty & | vector | ) | const |
This function compares this propertyvector with the given propertyvector. Propertyvectors is lower if it's propertypvalues is lower than the propertyvectors of the other vector or its propertypvalues is equal, but if it has less elements than the other vector or it's i'th element is lower and all j'th elements with i > j are equal.
vector | the property to compare this with |
|
virtual |
This Method makes this vectorelements equal to the correspondending vectorelements of the given vector. The type of the vector won't be changed. The type of the propertie will be adapted.
vector | the vector to copy |
Reimplemented from fib::cFibVector.
Reimplemented in fib::cVectorChecksum.
|
protected |
Definition at line 59 of file cVectorProperty.h.