StrangeIoC  0.6.0
The IoC/Binding Framework for Unity3D and C#
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events Pages
Public Member Functions | List of all members
strange.extensions.pool.api.IPool< T > Interface Template Reference
Inheritance diagram for strange.extensions.pool.api.IPool< T >:
strange.extensions.pool.api.IPool strange.framework.api.IManagedList strange.extensions.pool.impl.Pool< T >

Public Member Functions

new T GetInstance ()
 Gets an instance from the pool if one is available. More...
 
- Public Member Functions inherited from strange.extensions.pool.api.IPool
void ReturnInstance (object value)
 Returns an instance to the pool. More...
 
void Clean ()
 Remove all instance references from the Pool. More...
 
- Public Member Functions inherited from strange.framework.api.IManagedList
IManagedList Add (object value)
 Add a value to this List.
 
IManagedList Add (object[] list)
 Add a set of values to this List.
 
IManagedList Remove (object value)
 Remove a value from this List.
 
IManagedList Remove (object[] list)
 Remove a set of values from this List.
 

Additional Inherited Members

- Properties inherited from strange.extensions.pool.api.IPool
IInstanceProvider instanceProvider [get, set]
 A class that provides instances to the pool when it needs them. More...
 
Type poolType [get, set]
 The object Type of the first object added to the pool. More...
 
int available [get]
 Returns the count of non-committed instances More...
 
int size [get, set]
 Gets or sets the size of the pool. More...
 
int instanceCount [get]
 Returns the total number of instances currently managed by this pool. More...
 
PoolOverflowBehavior overflowBehavior [get, set]
 Gets or sets the overflow behavior of this pool. More...
 
PoolInflationType inflationType [get, set]
 Gets or sets the type of inflation for infinite-sized pools. More...
 

Member Function Documentation

new T strange.extensions.pool.api.IPool< T >.GetInstance ( )

Gets an instance from the pool if one is available.

Returns
The instance.

Implements strange.extensions.pool.api.IPool.

Implemented in strange.extensions.pool.impl.Pool< T >.


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