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

Pool that lends values of type T with an associated key of type K and defines a default key. More...

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

Public Member Functions

Borrow ()
 Borrows a value with the default key from the pool. More...
 
Disposable< T > BorrowDisposable ()
 Borrows a wrapped value with the default key from the pool. More...
 
 KeyedPoolWithDefaultKey (DelegateFunc< K, T > create, DelegateFunc< T, K > reset, K defaultKey)
 Creates a new keyed pool with the specified creation delegate, reset delegate, and default key. More...
 
 KeyedPoolWithDefaultKey (DelegateFunc< K, T > create, DelegateFunc< T, K > reset, DelegateFunc< K > defaultKeyFunc)
 Creates a new keyed pool with the specified creation delegate, reset delegate, and default key. More...
 
- Public Member Functions inherited from Smooth.Pools.KeyedPool< K, T >
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 and defines a default key.

Constructor & Destructor Documentation

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

Creates a new keyed pool with the specified creation delegate, reset delegate, and default key.

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

Creates a new keyed pool with the specified creation delegate, reset delegate, and default key.

Member Function Documentation

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

Borrows a value with the default key from the pool.

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

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


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