#include <SIM_ObjectArray.h>

Public Member Functions | |
| SIM_ObjectArray () | |
| virtual | ~SIM_ObjectArray () |
| SIM_Object * | findObjectById (int objectid) const |
| int | findPositionById (int objectid) const |
| void | filter (const SIM_DataFilter &filter, SIM_ObjectArray &filtered) const |
| void | filterConst (const SIM_DataFilter &filter, SIM_ConstObjectArray &filtered) const |
Static Public Member Functions | |
| static int | compareObjectId (SIM_Object *const *, SIM_Object *const *) |
DOP/DOP_GroupAndApply.C, DOP/DOP_GroupAndApply.h, SIM/SIM_SolverHair.C, SIM/SIM_SolverHair.h, SIM/SNOW_Solver.C, and SIM/SNOW_Solver.h.
Definition at line 26 of file SIM_ObjectArray.h.
| SIM_ObjectArray::SIM_ObjectArray | ( | ) |
| virtual SIM_ObjectArray::~SIM_ObjectArray | ( | ) | [virtual] |
| static int SIM_ObjectArray::compareObjectId | ( | SIM_Object *const * | , | |
| SIM_Object *const * | ||||
| ) | [static] |
This function is used for sorting the objects in the array. It compares objects using the object id values.
| void SIM_ObjectArray::filter | ( | const SIM_DataFilter & | filter, | |
| SIM_ObjectArray & | filtered | |||
| ) | const |
Fills an array with all the objects in this array that match the supplied filter.
| void SIM_ObjectArray::filterConst | ( | const SIM_DataFilter & | filter, | |
| SIM_ConstObjectArray & | filtered | |||
| ) | const |
Fills an array with all the objects in this array that match the supplied filter.
| SIM_Object* SIM_ObjectArray::findObjectById | ( | int | objectid | ) | const |
This function returns a pointer the the SIM_Object with the specified object id. If the object id is not found, it returns null.
| int SIM_ObjectArray::findPositionById | ( | int | objectid | ) | const |
This function returns the index within the array of the object with the specified id.
1.5.9