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

Public Member Functions

 MyObjectsPool (int baseCapacity)
 
bool AllocateOrCreate (out T item)
 Returns true when new item was allocated More...
 
Allocate (bool nullAllowed=false)
 
void Deallocate (T item)
 
void MarkForDeallocate (T item)
 
void MarkAllActiveForDeallocate ()
 
void DeallocateAllMarked ()
 
void DeallocateAll ()
 

Properties

HashSetReader< T > Active [get]
 
int ActiveCount [get]
 
int BaseCapacity [get]
 
int Capacity [get]
 

Detailed Description

Type Constraints
T :class 
T :new() 

Definition at line 9 of file MyObjectsPool.cs.

Constructor & Destructor Documentation

VRage.Generics.MyObjectsPool< T >.MyObjectsPool ( int  baseCapacity)
inline

Definition at line 48 of file MyObjectsPool.cs.

Member Function Documentation

T VRage.Generics.MyObjectsPool< T >.Allocate ( bool  nullAllowed = false)
inline

Definition at line 83 of file MyObjectsPool.cs.

bool VRage.Generics.MyObjectsPool< T >.AllocateOrCreate ( out T  item)
inline

Returns true when new item was allocated

Definition at line 67 of file MyObjectsPool.cs.

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

Definition at line 100 of file MyObjectsPool.cs.

void VRage.Generics.MyObjectsPool< T >.DeallocateAll ( )
inline

Definition at line 137 of file MyObjectsPool.cs.

void VRage.Generics.MyObjectsPool< T >.DeallocateAllMarked ( )
inline

Definition at line 126 of file MyObjectsPool.cs.

void VRage.Generics.MyObjectsPool< T >.MarkAllActiveForDeallocate ( )
inline

Definition at line 118 of file MyObjectsPool.cs.

void VRage.Generics.MyObjectsPool< T >.MarkForDeallocate ( item)
inline

Definition at line 111 of file MyObjectsPool.cs.

Property Documentation

Definition at line 25 of file MyObjectsPool.cs.

int VRage.Generics.MyObjectsPool< T >.ActiveCount
get

Definition at line 30 of file MyObjectsPool.cs.

int VRage.Generics.MyObjectsPool< T >.BaseCapacity
get

Definition at line 35 of file MyObjectsPool.cs.

int VRage.Generics.MyObjectsPool< T >.Capacity
get

Definition at line 40 of file MyObjectsPool.cs.


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