SIM_ConstObjectArray Class Reference

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

#include <SIM_ObjectArray.h>

Inheritance diagram for SIM_ConstObjectArray:

UT_PtrArraySorted< const SIM_Object * >

List of all members.

Public Member Functions

 SIM_ConstObjectArray ()
virtual ~SIM_ConstObjectArray ()
const SIM_ConstObjectArrayoperator= (const SIM_ObjectArray &src)
const SIM_ObjectfindObjectById (int objectid) const
int findPositionById (int objectid) const
void filterConst (const SIM_DataFilter &filter, SIM_ConstObjectArray &filtered) const

Static Public Member Functions

static int compareConstObjectId (const SIM_Object *const *, const SIM_Object *const *)


Detailed Description

Holds pointers to a number of const SIM_Object objects.

Definition at line 58 of file SIM_ObjectArray.h.


Constructor & Destructor Documentation

SIM_ConstObjectArray::SIM_ConstObjectArray (  ) 

virtual SIM_ConstObjectArray::~SIM_ConstObjectArray (  )  [virtual]


Member Function Documentation

static int SIM_ConstObjectArray::compareConstObjectId ( const SIM_Object *const *  ,
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_ConstObjectArray::filterConst ( const SIM_DataFilter filter,
SIM_ConstObjectArray filtered 
) const

Fills an array with all the objects in this array that match the supplied filter.

const SIM_Object* SIM_ConstObjectArray::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_ConstObjectArray::findPositionById ( int  objectid  )  const

This function returns the index within the array of the object with the specified id.

const SIM_ConstObjectArray& SIM_ConstObjectArray::operator= ( const SIM_ObjectArray src  ) 

An assignment operator to copy a SIM_ObjectArray into a SIM_ConstObjectArray.


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

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