ScummVM API documentation
Sword25::ObjectRegistry< T > Class Template Reference

Classes

struct  ClassPointer_EqualTo
 
struct  ClassPointer_Hash
 

Public Member Functions

uint registerObject (T *objectPtr)
 
uint registerObject (T *objectPtr, uint handle)
 
void deregisterObject (T *objectPtr)
 
T * resolveHandle (uint handle)
 
uint resolvePtr (T *objectPtr)
 

Protected Types

typedef Common::HashMap< uint32, T * > HANDLE2PTR_MAP
 
typedef Common::HashMap< T *, uint32, ClassPointer_Hash, ClassPointer_EqualToPTR2HANDLE_MAP
 

Protected Member Functions

T * findPtrByHandle (uint handle)
 
uint findHandleByPtr (T *objectPtr)
 

Protected Attributes

HANDLE2PTR_MAP _handle2PtrMap
 
PTR2HANDLE_MAP _ptr2HandleMap
 
uint32 _nextHandle
 

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