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.KeyedPool< K, T > Class Template Reference

Pool that lends values of type T with an associated key of type K. More...

Inheritance diagram for Smooth.Pools.KeyedPool< K, T >:
Smooth.Pools.KeyedPoolWithDefaultKey< K, T >

Public Member Functions

Borrow (K key)
 Borrows a value with the specified key from the pool. More...
 
Disposable< T > BorrowDisposable (K key)
 Borrows a wrapped value with the specified key from the pool. More...
 
 KeyedPool (DelegateFunc< K, T > create, DelegateFunc< T, K > reset)
 Creates a new keyed 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...
 

Detailed Description

Pool that lends values of type T with an associated key of type K.

Constructor & Destructor Documentation

Smooth.Pools.KeyedPool< K, T >.KeyedPool ( DelegateFunc< K, T >  create,
DelegateFunc< T, K >  reset 
)
inline

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

Member Function Documentation

T Smooth.Pools.KeyedPool< K, T >.Borrow ( key)
inline

Borrows a value with the specified key from the pool.

Disposable<T> Smooth.Pools.KeyedPool< K, T >.BorrowDisposable ( key)
inline

Borrows a wrapped value with the specified key from the pool.

void Smooth.Pools.KeyedPool< K, T >.Release ( value)
inline

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


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