Photon Voice v2.53

Public Member Functions | Protected Member Functions | List of all members
ImageBufferNativePool< T > Class Template Reference

Inherits ObjectPool< T, ImageBufferInfo >.

Public Member Functions

delegate T Factory (ImageBufferNativePool< T > pool, ImageBufferInfo info)
 
 ImageBufferNativePool (int capacity, Factory factory, string name)
 
 ImageBufferNativePool (int capacity, Factory factory, string name, ImageBufferInfo info)
 
- Public Member Functions inherited from ObjectPool< T, ImageBufferInfo >
 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 (ImageBufferInfo info)
 
override void destroyObject (T obj)
 
override bool infosMatch (ImageBufferInfo i0, ImageBufferInfo i1)
 
- Protected Member Functions inherited from ObjectPool< T, ImageBufferInfo >
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, ImageBufferInfo >
int capacity
 
TInfo info
 
int pos
 
string name
 
- Properties inherited from ObjectPool< T, ImageBufferInfo >
TInfo Info [get]
 The property (info) that objects in this Pool must match. More...