Colobot
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
CInstanceManager Class Reference

Manager for instances of certain classes. More...

#include <iman.h>

Inheritance diagram for CInstanceManager:
Inheritance graph
[legend]

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 CInstanceManagerGetInstance ()
static CInstanceManagerGetInstancePointer ()
static bool IsCreated ()
- Static Protected Attributes inherited from CSingleton< CInstanceManager >
static CInstanceManagerm_instance = nullptr

Detailed Description

Manager for instances of certain classes.

Instance manager (often shortened to iMan) allows to register instances of classes and search them.


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