#include <cEvaluePositionList.h>
List of all members.
Static Public Member Functions |
static void | sortPositionsData (list< pair< cVectorPosition, list< cVectorProperty > > > *liEvaluedPositionData, bool bDeleteEmptyPoints=true) |
static bool | lowerPositionPair (const pair< cVectorPosition, list< cVectorProperty > > &paPosition1, const pair< cVectorPosition, list< cVectorProperty > > &paPosition2) |
static list< cVectorProperty > | mergeProperties (const list< cVectorProperty > &liProperties1, const list< cVectorProperty > &liProperties2) |
static doubleFib | distanceOfProperties (const list< cVectorProperty > &liPropertiesOriginal, const list< cVectorProperty > &liPropertiesGiven) |
static cFibElement * | toFibObject (const cVectorPosition &vecPosition, const list< cVectorProperty > &liProperties) |
static void | printPositionsData (const list< pair< cVectorPosition, list< cVectorProperty > > > &liEvaluedPositionData, ostream &strOutput) |
Detailed Description
Definition at line 60 of file cEvaluePositionList.h.
Constructor & Destructor Documentation
fib::cEvaluePositionList::cEvaluePositionList |
( |
| ) |
|
Member Function Documentation
void fib::cEvaluePositionList::clear |
( |
| ) |
|
This method clears the data from the list with the evalued position data liEvaluedPositionData. After the function call the liEvaluedPositionData list will be empty.
- See also:
- liEvaluedPositionData
This function evalues the difference betwean the two propertielists. Both propertylist have to be sorted in the order of lowerPropertyVector().
- See also:
- cVectorProperty::lowerPropertyVector()
-
cVectorProperty::distanceOfProperty()
-
cVectorProperty::distanceOfPropertyToNull()
- Parameters:
-
liPropertiesOriginal | the positions with ther properties of the original fib -object |
liPropertiesGiven | the positions with ther properties of the given fib -object, for which the distance to the original fib -object (liPropertiesOriginal) should be evalued |
- Returns:
- the sum of the distance of the properties of the points (for missing properties, ther value to the nullvector will be added)
This function compares two positions with ther properties. For that just the positionsvectors are compared. A (position)vector is lower 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.
- Parameters:
-
paPosition1 | the first pair of position with it's properties to compare |
paPosition2 | the second pair of position with it's properties to compare |
- Returns:
- true if the positionsvector of paPosition1 is lower than that of paPosition2, else false
This function mergs the two given propertylists. All Properties of the second list liProperties2 that, aren't overwritten by properties in the first propertylist, liProperties1 are added to it.
- Parameters:
-
liProperties1 | the propertielist to add to |
liProperties2 | the list with the properties to be added |
- Returns:
- a lis with the properties from the list liProperties1 and the properties from the list liProperties2 which arn't overwirtten by properties from list liProperties1
static void fib::cEvaluePositionList::printPositionsData |
( |
const list< pair< cVectorPosition, list< cVectorProperty > > > & |
liEvaluedPositionData, |
|
|
ostream & |
strOutput |
|
) |
| |
|
static |
This function prints the given list of positions with ther values. It also prints the property sublists.
- Parameters:
-
liEvaluedPositionData | a reference to the positionsdata to print |
strOutput | the stream wher to print the data to |
void fib::cEvaluePositionList::sortPositionsData |
( |
bool |
bDeleteEmptyPoints = true | ) |
|
This function sorts the list liEvaluedPositionData of positions with ther values. It also sorts the property sublists. A vector is lower if it has less elements than the other vector or it's i'th element is lower und all j'th elements with i > j are equal. The positions with ther properties are sorted in the order as the positionsvectors. Propertyvectors with lower propertypvalues are sorted befor propertyvectors with higer propertypvalues, independent of ther elements. Also equal/duplicate positions will be removed, ther properties will be merged. Properties of a later positions in the given list will overwrite properties earlier in the list, if neccessary. Positions without porperties will be removed.
- See also:
- liEvaluedPositionData
- Parameters:
-
bDeleteEmptyPoints | if true points without properties will be deleted, else (if false) points without properties won't be deleted |
static void fib::cEvaluePositionList::sortPositionsData |
( |
list< pair< cVectorPosition, list< cVectorProperty > > > * |
liEvaluedPositionData, |
|
|
bool |
bDeleteEmptyPoints = true |
|
) |
| |
|
static |
This function sorts the given list of positions with ther values. It also sorts the property sublists. A vector is lower if it has less elements than the other vector or it's i'th element is lower und all j'th elements with i > j are equal. The positions with ther properties are sorted in the order as the positionsvectors. Propertyvectors with lower propertypvalues are sorted befor propertyvectors with higer propertypvalues, independent of ther elements. Also equal/duplicate positions will be removed, ther properties will be merged. Properties of a later positions in the given list will overwrite properties earlier in the list, if neccessary. Positions without porperties will be removed.
- Parameters:
-
liEvaluedPositionData | a pointer to the positionsdata to sort |
bDeleteEmptyPoints | if true points without properties will be deleted, else (if false) points without properties won't be deleted |
This function creats a fib -object, which represents the given data. Beware: You have to care, that the created fib -object is deleted.
- Parameters:
-
vecPosition | the position for the to create point |
liProperties | the properties of the create point |
- Returns:
- a fib -object with a point on the given position, wich is an underobject of propertyelements, with the given properties
Member Data Documentation
The list for the evalued fib -object data.
The first pairelement is the position and the second are the properties for the position.
Definition at line 70 of file cEvaluePositionList.h.
The documentation for this class was generated from the following file: