Inheritance diagram for CP_ObjectManager:
Public Member Functions | |
CP_ObjectManager () | |
virtual | ~CP_ObjectManager () |
UInt32 | Count () |
void | Append (CP_Object *inDocument) |
void | Remove (CP_Object *inDocument) |
CP_Object * | FindByID (FourCharCode inObjectID) |
Static Public Member Functions | |
static CP_ObjectManager * | Instance () |
Protected Attributes | |
CP_Objects_List * | fObjects |
Static Protected Attributes | |
static CP_ObjectManager * | fsInstance = NULL |
|
Constructor. |
|
Destructor. |
|
|
|
Returns the number of objects managed by this class.
|
|
Adds the passed in CP_Object to the list of objects managed by this class. This will only add the object if it is not currently in the list of known objects for this object. So it is safe to call with the same object more than once. You normally do not need to call this, as it is called in the objects constructor.
|
|
Remove an object from this list. This is called for you automatically when a CP_Object is deleted. A std::runtime_error is thrown if the object is not in the list. You normally do not need to call this, as it is called in the objects destructor.
|
|
Returns the CP_Object in the list with the passed in object id.
|
|
|
|
|