CrystalSpace

Public API Reference

iCollection Struct Reference

A collection is used to store related objects in a simple structure to guarentee that they won't be freed by the engine and to help management. More...

#include <iengine/collection.h>

Inheritance diagram for iCollection:

List of all members.

Public Member Functions

virtual void Add (iObject *obj)=0
 Add an object to this collection.
virtual iCameraPositionFindCameraPosition (const char *name)=0
 Looks to see if this collection contains the camera position.
virtual iMaterialWrapperFindMaterial (const char *name)=0
 Looks to see if this collection contains the material.
virtual iMeshFactoryWrapperFindMeshFactory (const char *name)=0
 Looks to see if this collection contains the mesh factory.
virtual iMeshWrapperFindMeshObject (const char *name)=0
 Looks to see if this collection contains the sector.
virtual iSectorFindSector (const char *name)=0
 Looks to see if this collection contains the sector.
virtual iShaderFindShader (const char *name)=0
 Looks to see if this collection contains the shader.
virtual iTextureWrapperFindTexture (const char *name)=0
 Looks to see if this collection contains the texture.
virtual bool IsParentOf (iObject *obj)=0
 Returns true if this collection is the parent of the object passed.
virtual iObjectQueryObject ()=0
 Get the iObject for this collection.
virtual void ReleaseAllObjects (bool debug=false)=0
 Release all references to objects held by this collection.
virtual void Remove (iObject *obj)=0
 Remove an object from this collection.

Detailed Description

A collection is used to store related objects in a simple structure to guarentee that they won't be freed by the engine and to help management.

Definition at line 39 of file collection.h.


Member Function Documentation

virtual void iCollection::Add ( iObject obj  )  [pure virtual]

Add an object to this collection.

virtual iCameraPosition* iCollection::FindCameraPosition ( const char *  name  )  [pure virtual]

Looks to see if this collection contains the camera position.

If so, it returns the camera position.

virtual iMaterialWrapper* iCollection::FindMaterial ( const char *  name  )  [pure virtual]

Looks to see if this collection contains the material.

If so, it returns the material.

virtual iMeshFactoryWrapper* iCollection::FindMeshFactory ( const char *  name  )  [pure virtual]

Looks to see if this collection contains the mesh factory.

If so, it returns the mesh factory.

virtual iMeshWrapper* iCollection::FindMeshObject ( const char *  name  )  [pure virtual]

Looks to see if this collection contains the sector.

If so, it returns the sector.

virtual iSector* iCollection::FindSector ( const char *  name  )  [pure virtual]

Looks to see if this collection contains the sector.

If so, it returns the sector.

virtual iShader* iCollection::FindShader ( const char *  name  )  [pure virtual]

Looks to see if this collection contains the shader.

If so, it returns the shader.

virtual iTextureWrapper* iCollection::FindTexture ( const char *  name  )  [pure virtual]

Looks to see if this collection contains the texture.

If so, it returns the texture.

virtual bool iCollection::IsParentOf ( iObject obj  )  [pure virtual]

Returns true if this collection is the parent of the object passed.

virtual iObject* iCollection::QueryObject (  )  [pure virtual]

Get the iObject for this collection.

virtual void iCollection::ReleaseAllObjects ( bool  debug = false  )  [pure virtual]

Release all references to objects held by this collection.

virtual void iCollection::Remove ( iObject obj  )  [pure virtual]

Remove an object from this collection.


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

Generated for Crystal Space 1.4.1 by doxygen 1.7.1