Pool that lends values of type T with an associated key of type K and defines a default key.
More...
|
T | 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...
|
|
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...
|
|
Pool that lends values of type T with an associated key of type K and defines a default key.
Smooth.Pools.KeyedPoolWithDefaultKey< K, T >.KeyedPoolWithDefaultKey |
( |
DelegateFunc< K, T > |
create, |
|
|
DelegateFunc< T, K > |
reset, |
|
|
K |
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.
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: