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

Pool that lends values of type T. More...

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

Public Member Functions

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...
 

Properties

int Allocated [get]
 
int Size [get]
 

Detailed Description

Pool that lends values of type T.

Constructor & Destructor Documentation

Smooth.Pools.Pool< T >.Pool ( DelegateFunc< T >  create,
DelegateAction< T >  reset 
)
inline

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

Member Function Documentation

T Smooth.Pools.Pool< T >.Borrow ( )
inline

Borrows a value from the pool.

Disposable<T> Smooth.Pools.Pool< T >.BorrowDisposable ( )
inline

Borrows a wrapped value from the pool.

void Smooth.Pools.Pool< T >.Release ( value)
inline

Relinquishes ownership of the specified value and returns it to the pool.

Property Documentation

int Smooth.Pools.Pool< T >.Allocated
get
int Smooth.Pools.Pool< T >.Size
get

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