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

Grim::PoolObject< T >::Pool Class Reference

#include <pool.h>

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

List of all members.

Classes

class  Iterator

Public Types

typedef Iterator< typename
Common::HashMap< int32, T * >
::iterator, T * > 
iterator
typedef Iterator< typename
Common::HashMap< int32, T * >
::const_iterator, T *const > 
const_iterator

Public Member Functions

 Pool ()
 ~Pool ()
void addObject (T *obj)
void removeObject (int32 id)
T * getObject (int32 id)
iterator begin ()
const_iterator begin () const
iterator end ()
const_iterator end () const
int getSize () const
void deleteObjects ()
void saveObjects (SaveGame *save)
void restoreObjects (SaveGame *save)

Private Attributes

bool _restoring
Common::HashMap< int32, T * > _map

Detailed Description

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

Definition at line 45 of file pool.h.


Member Typedef Documentation

template<class T>
typedef Iterator<typename Common::HashMap<int32, T *>::const_iterator, T *const> Grim::PoolObject< T >::Pool::const_iterator

Definition at line 74 of file pool.h.

template<class T>
typedef Iterator<typename Common::HashMap<int32, T *>::iterator, T *> Grim::PoolObject< T >::Pool::iterator

Definition at line 73 of file pool.h.


Constructor & Destructor Documentation

template<class T >
Grim::PoolObject< T >::Pool::Pool (  ) 

Definition at line 230 of file pool.h.

template<class T >
Grim::PoolObject< T >::Pool::~Pool (  ) 

Definition at line 235 of file pool.h.


Member Function Documentation

template<class T>
void Grim::PoolObject< T >::Pool::addObject ( T *  obj  ) 

Definition at line 240 of file pool.h.

template<class T >
PoolObject< T >::Pool::iterator Grim::PoolObject< T >::Pool::begin (  ) 

Definition at line 257 of file pool.h.

template<class T >
PoolObject< T >::Pool::const_iterator Grim::PoolObject< T >::Pool::begin (  )  const

Definition at line 262 of file pool.h.

template<class T >
void Grim::PoolObject< T >::Pool::deleteObjects (  ) 

Definition at line 282 of file pool.h.

template<class T >
PoolObject< T >::Pool::iterator Grim::PoolObject< T >::Pool::end (  ) 

Definition at line 267 of file pool.h.

template<class T >
PoolObject< T >::Pool::const_iterator Grim::PoolObject< T >::Pool::end (  )  const

Definition at line 272 of file pool.h.

template<class T >
T * Grim::PoolObject< T >::Pool::getObject ( int32  id  ) 

Definition at line 252 of file pool.h.

template<class T >
int Grim::PoolObject< T >::Pool::getSize (  )  const

Definition at line 277 of file pool.h.

template<class T >
void Grim::PoolObject< T >::Pool::removeObject ( int32  id  ) 

Definition at line 247 of file pool.h.

template<class T >
void Grim::PoolObject< T >::Pool::restoreObjects ( SaveGame save  ) 

Definition at line 307 of file pool.h.

template<class T >
void Grim::PoolObject< T >::Pool::saveObjects ( SaveGame save  ) 

Definition at line 290 of file pool.h.


Member Data Documentation

template<class T>
Common::HashMap<int32, T*> Grim::PoolObject< T >::Pool::_map [private]

Definition at line 94 of file pool.h.

template<class T>
bool Grim::PoolObject< T >::Pool::_restoring [private]

Definition at line 93 of file pool.h.


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


Generated on Sat Mar 23 2019 05:07:55 for ResidualVM by doxygen 1.7.1
curved edge   curved edge