|
Colobot
|
Manager for instances of certain classes. More...
#include <iman.h>

Public Member Functions | |
| void | Flush () |
| Remove all managed instances. | |
| void | Flush (ManagedClassType classType) |
| Removes instances of one type of class. | |
| bool | AddInstance (ManagedClassType classType, void *instance, int max=1) |
| Registers new instance of class type. | |
| bool | DeleteInstance (ManagedClassType classType, void *instance) |
| Deletes the registered instance of class type. | |
| void * | SearchInstance (ManagedClassType classType, int rank=0) |
| Seeks a class instance of given type. | |
Protected Member Functions | |
| void | Compress (ManagedClassType classType) |
| Fills holes in instance table. | |
Protected Attributes | |
| ManagedClassInstances | m_table [CLASS_MAX] |
Additional Inherited Members | |
Static Public Member Functions inherited from CSingleton< CInstanceManager > | |
| static CInstanceManager & | GetInstance () |
| static CInstanceManager * | GetInstancePointer () |
| static bool | IsCreated () |
Static Protected Attributes inherited from CSingleton< CInstanceManager > | |
| static CInstanceManager * | m_instance = nullptr |
Manager for instances of certain classes.
Instance manager (often shortened to iMan) allows to register instances of classes and search them.
1.8.5