SIM_ObjectArray Class Reference

Holds pointers to a number of SIM_Object objects. More...

#include <SIM_ObjectArray.h>

Inheritance diagram for SIM_ObjectArray:

UT_PtrArraySorted< SIM_Object * >

List of all members.

Public Member Functions

 SIM_ObjectArray ()
virtual ~SIM_ObjectArray ()
SIM_ObjectfindObjectById (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 *)


Detailed Description

Holds pointers to a number of SIM_Object objects.
Examples:

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.


Constructor & Destructor Documentation

SIM_ObjectArray::SIM_ObjectArray (  ) 

virtual SIM_ObjectArray::~SIM_ObjectArray (  )  [virtual]


Member Function Documentation

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.

Examples:
DOP/DOP_GroupAndApply.C.

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.


The documentation for this class was generated from the following file:

Generated on Mon Jan 28 00:48:53 2013 for HDK by  doxygen 1.5.9