![]() |
Photon Voice
v2.7
|
PrimitiveArrayPool< T > Class Template Reference
Pool of Arrays with components of type T, with ObjectPool info being the array's size. More...
Inherits ObjectPool< T[], int >.
Public Member Functions | |
| PrimitiveArrayPool (int capacity, string name) | |
| PrimitiveArrayPool (int capacity, string name, int info) | |
Public Member Functions inherited from ObjectPool< T[], int > | |
| ObjectPool (int capacity, string name) | |
| Create a new ObjectPool instance. Does not call Init(). More... | |
| ObjectPool (int capacity, string name, TInfo info) | |
| Create a new ObjectPool instance with the given info structure. Calls Init(). More... | |
| void | Init (TInfo info) |
| (Re-)Initializes this ObjectPool. More... | |
| TType | AcquireOrCreate () |
| Acquire an existing object, or create a new one if none are available. More... | |
| TType | AcquireOrCreate (TInfo info) |
| Acquire an existing object (if info matches), or create a new one from the passed info. More... | |
| virtual bool | Release (TType obj, TInfo objInfo) |
| Returns object to pool. More... | |
| virtual bool | Release (TType obj) |
| Returns object to pool, or destroys it if the pool is full. More... | |
| void | Dispose () |
| Free resources assoicated with this ObjectPool More... | |
Protected Member Functions | |
| override T[] | createObject (int info) |
| override void | destroyObject (T[] obj) |
| override bool | infosMatch (int i0, int i1) |
Protected Member Functions inherited from ObjectPool< T[], int > | |
| abstract TType | createObject (TInfo info) |
| abstract void | destroyObject (TType obj) |
| abstract bool | infosMatch (TInfo i0, TInfo i1) |
Additional Inherited Members | |
Protected Attributes inherited from ObjectPool< T[], int > | |
| int | capacity |
| TInfo | info |
| int | pos |
| string | name |
Properties inherited from ObjectPool< T[], int > | |
| TInfo | Info [get] |
| The property (info) that objects in this Pool must match. More... | |
Detailed Description
Pool of Arrays with components of type T, with ObjectPool info being the array's size.
- Template Parameters
-
T Array element type.

Public Member Functions inherited from