Pool that lends values of type T with an associated key of type K.
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.
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.
T Smooth.Pools.KeyedPool< K, T >.Borrow |
( |
K |
key | ) |
|
|
inline |
Borrows a value with the specified key from the pool.
Disposable<T> Smooth.Pools.KeyedPool< K, T >.BorrowDisposable |
( |
K |
key | ) |
|
|
inline |
Borrows a wrapped value with the specified key from the pool.
void Smooth.Pools.KeyedPool< K, T >.Release |
( |
T |
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:
- KSP/Assets/Scripts/Util Scripts/SmoothFoundations/Pools/KeyedPool.cs