Space Engineers
Public Member Functions | Properties | List of all members
VRage.Generics.MyDynamicObjectPool< T > Class Template Reference

Dynamic object pool. It's allocate new instance when necessary. More...

Public Member Functions

 MyDynamicObjectPool (int capacity)
 
Allocate ()
 
void Deallocate (T item)
 
void TrimToSize (int size)
 

Properties

int Count [get]
 

Detailed Description

Dynamic object pool. It's allocate new instance when necessary.

Template Parameters
T
Type Constraints
T :class 
T :new() 

Definition at line 12 of file MyDynamicObjectsPool.cs.

Constructor & Destructor Documentation

Definition at line 18 of file MyDynamicObjectsPool.cs.

Member Function Documentation

T VRage.Generics.MyDynamicObjectPool< T >.Allocate ( )
inline

Definition at line 33 of file MyDynamicObjectsPool.cs.

void VRage.Generics.MyDynamicObjectPool< T >.Deallocate ( item)
inline

Definition at line 43 of file MyDynamicObjectsPool.cs.

void VRage.Generics.MyDynamicObjectPool< T >.TrimToSize ( int  size)
inline

Definition at line 48 of file MyDynamicObjectsPool.cs.

Property Documentation

Definition at line 16 of file MyDynamicObjectsPool.cs.


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