API reference

PoolManager Class

A pool manager that manages pools of primitives.

Methods

AddPool ( primitive , pool )
Adds a pool to the collection, associated with the given primitive.
Signature
void AddPool(K primitive, P pool)
Parameters
primitive: K  The primitive object used as a key for the pool.
pool: P  The pool to add to the collection.
Returns
void
ContainsPool ( primitive )
Checks if a pool exists in the collection for the given primitive.
Signature
bool ContainsPool(K primitive)
Parameters
primitive: K  The primitive object used as a key for the pool.
Returns
bool  True if a pool exists for the given primitive, false otherwise.
GetPool ( primitive )
Retrieves the pool associated with the given primitive from the collection.
Signature
P GetPool(K primitive)
Parameters
primitive: K  The primitive object used as a key for the pool.
Returns
P  The pool associated with the given primitive, or null if no such pool exists.