ResidualVM logo ResidualVM website - Forums - Contact us BuildBot - Doxygen - Wiki curved edge

#include <pool.h>

Inheritance diagram for Grim::PoolObject< T >:
Collaboration diagram for Grim::PoolObject< T >:

List of all members.

Classes

class  Pool
class  Ptr
 Smart pointer class This class wraps a C pointer to T, subclass of PoolObject, which gets reset to NULL as soon as the object is deleted, e.g by Pool::restoreObjects(). More...

Public Member Functions

virtual ~PoolObject ()
void setId (int id)
int getId () const override
virtual int32 getTag () const override

Static Public Member Functions

static PoolgetPool ()

Protected Member Functions

 PoolObject ()

Static Protected Member Functions

static void saveStaticState (SaveGame *state)
static void restoreStaticState (SaveGame *state)

Private Member Functions

void addPointer (Ptr *pointer)
void removePointer (Ptr *pointer)

Private Attributes

int _id
Common::List< Ptr * > _pointers

Static Private Attributes

static int s_id = 0
static Pools_pool = NULL

Friends

class Pool
class Ptr

Detailed Description

template<class T>
class Grim::PoolObject< T >

Definition at line 43 of file pool.h.


Constructor & Destructor Documentation

template<class T >
Grim::PoolObject< T >::~PoolObject (  )  [virtual]

Definition at line 196 of file pool.h.

template<class T >
Grim::PoolObject< T >::PoolObject (  )  [protected]

Definition at line 185 of file pool.h.


Member Function Documentation

template<class T>
void Grim::PoolObject< T >::addPointer ( Ptr pointer  )  [inline, private]

Definition at line 155 of file pool.h.

template<class T >
int Grim::PoolObject< T >::getId (  )  const [override, virtual]

Implements Grim::PoolObjectBase.

Definition at line 213 of file pool.h.

template<class T >
PoolObject< T >::Pool & Grim::PoolObject< T >::getPool (  )  [static]

Definition at line 218 of file pool.h.

template<class T>
virtual int32 Grim::PoolObject< T >::getTag (  )  const [inline, override, virtual]

Implements Grim::PoolObjectBase.

Definition at line 144 of file pool.h.

template<class T>
void Grim::PoolObject< T >::removePointer ( Ptr pointer  )  [inline, private]

Definition at line 156 of file pool.h.

template<class T>
static void Grim::PoolObject< T >::restoreStaticState ( SaveGame state  )  [inline, static, protected]

Reimplemented in Grim::Actor.

Definition at line 152 of file pool.h.

template<class T>
static void Grim::PoolObject< T >::saveStaticState ( SaveGame state  )  [inline, static, protected]

Reimplemented in Grim::Actor.

Definition at line 151 of file pool.h.

template<class T >
void Grim::PoolObject< T >::setId ( int  id  ) 

Definition at line 205 of file pool.h.


Friends And Related Function Documentation

template<class T>
friend class Pool [friend]

Definition at line 164 of file pool.h.

template<class T>
friend class Ptr [friend]

Definition at line 165 of file pool.h.


Member Data Documentation

template<class T>
int Grim::PoolObject< T >::_id [private]

Definition at line 158 of file pool.h.

template<class T>
Common::List<Ptr *> Grim::PoolObject< T >::_pointers [private]

Definition at line 162 of file pool.h.

template<class T>
int Grim::PoolObject< T >::s_id = 0 [static, private]

Definition at line 159 of file pool.h.

template<class T>
PoolObject< T >::Pool * Grim::PoolObject< T >::s_pool = NULL [static, private]

Definition at line 160 of file pool.h.


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


Generated on Sat Jan 12 2019 05:04:40 for ResidualVM by doxygen 1.7.1
curved edge   curved edge