Kerbal Space Program  1.12.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Public Member Functions | List of all members
Smooth.Pools.PoolWithInitializer< T, U > Class Template Reference

Pool that lends values of type T with an optional initializer that takes a value of type U. More...

Inheritance diagram for Smooth.Pools.PoolWithInitializer< T, U >:
Smooth.Pools.Pool< T >

Public Member Functions

Borrow (U u)
 Borrows a value from the pool and initializes it with the specified value. More...
 
Disposable< T > BorrowDisposable (U u)
 Borrows a wrapped value from from the pool and initializes it with the specified value. More...
 
 PoolWithInitializer (DelegateFunc< T > create, DelegateAction< T > reset, DelegateAction< T, U > initialize)
 Creates a new pool with the specified creation, reset, and initialization delegates. More...
 
- Public Member Functions inherited from Smooth.Pools.Pool< T >
Borrow ()
 Borrows a value from the pool. More...
 
Disposable< T > BorrowDisposable ()
 Borrows a wrapped value from the pool. More...
 
 Pool (DelegateFunc< T > create, DelegateAction< T > reset)
 Creates a new pool with the specified value creation and reset delegates. More...
 
void Release (T value)
 Relinquishes ownership of the specified value and returns it to the pool. More...
 

Additional Inherited Members

- Properties inherited from Smooth.Pools.Pool< T >
int Allocated [get]
 
int Size [get]
 

Detailed Description

Pool that lends values of type T with an optional initializer that takes a value of type U.

Constructor & Destructor Documentation

Smooth.Pools.PoolWithInitializer< T, U >.PoolWithInitializer ( DelegateFunc< T >  create,
DelegateAction< T >  reset,
DelegateAction< T, U >  initialize 
)
inline

Creates a new pool with the specified creation, reset, and initialization delegates.

Member Function Documentation

T Smooth.Pools.PoolWithInitializer< T, U >.Borrow ( u)
inline

Borrows a value from the pool and initializes it with the specified value.

Disposable<T> Smooth.Pools.PoolWithInitializer< T, U >.BorrowDisposable ( u)
inline

Borrows a wrapped value from from the pool and initializes it with the specified value.


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