Inheritance Graph
graph BT
ObjectPool
click ObjectPool "classUtil_1_1ObjectPool"
Description
Generic object pool for objects.
The pool template can be instaniated to generate different kinds of pools. The generated pool generates and pools objects of typeObjectType. It hashes the parameters used to create an object and stores it in a map. If an object with the same hash already exists, it is returned instead of creating a new one.
Parameters
- ObjectType
- Base type for all objects that are generated by the factory
- IdentifierType
- Type of the identifier that specifies which object pool to call
- FallbackPolicy
- Template with a functiononUnknownType()that handles the case that the requested object type was not found
Classes
Public Types
Public Attributes
Public Functions
Documentation
typedef
Util::ObjectPool::fallbackPolicy_t
Defined in Util/Factory/ObjectPool.h:50
variable
Util::ObjectPool::fallbackPolicy
Defined in Util/Factory/ObjectPool.h:51
function
Util::ObjectPool::ObjectPool
Defined in Util/Factory/ObjectPool.h:52
function
Util::ObjectPool::ObjectPool
Defined in Util/Factory/ObjectPool.h:53
function
Util::ObjectPool::~ObjectPool
Defined in Util/Factory/ObjectPool.h:54
function
Util::ObjectPool::registerType
Defined in Util/Factory/ObjectPool.h:56
function
Util::ObjectPool::unregisterType
Defined in Util/Factory/ObjectPool.h:63
function
Util::ObjectPool::hasType
|
|
|
|
|
|
bool hasType( |
const IdentifierType & |
id ) |
Defined in Util/Factory/ObjectPool.h:67
function
Util::ObjectPool::create
|
|
|
|
|
|
ObjectType create( |
const IdentifierType & |
id ) |
Defined in Util/Factory/ObjectPool.h:71
function
Util::ObjectPool::free
|
|
|
|
|
|
void free( |
const IdentifierType & |
id, |
|
const ObjectType & |
obj |
) |
|
|
Defined in Util/Factory/ObjectPool.h:82
function
Util::ObjectPool::reset
Defined in Util/Factory/ObjectPool.h:88