Space Engineers
Public Member Functions | Properties | List of all members
VRageRender.MyGenericObjectPool Class Reference

A copy of MyObjectsPool that handles types a little different for the MyObjectPoolManager More...

Public Member Functions

 MyGenericObjectPool (int baseCapacity, Type storedTypeOverride)
 
bool AllocateOrCreate (out object item)
 Returns true when new item was allocated More...
 
void Deallocate (object item)
 
void MarkForDeallocate (object item)
 
void DeallocateAllMarked ()
 
void DeallocateAll ()
 
void TrimToBaseCapacity ()
 

Properties

QueueReader< object > Unused [get]
 
HashSetReader< object > Active [get]
 
int ActiveCount [get]
 
int BaseCapacity [get]
 
int Capacity [get]
 

Detailed Description

A copy of MyObjectsPool that handles types a little different for the MyObjectPoolManager

Definition at line 296 of file MyObjectPoolManager.cs.

Constructor & Destructor Documentation

VRageRender.MyGenericObjectPool.MyGenericObjectPool ( int  baseCapacity,
Type  storedTypeOverride 
)
inline

Definition at line 336 of file MyObjectPoolManager.cs.

Member Function Documentation

bool VRageRender.MyGenericObjectPool.AllocateOrCreate ( out object  item)
inline

Returns true when new item was allocated

Definition at line 362 of file MyObjectPoolManager.cs.

void VRageRender.MyGenericObjectPool.Deallocate ( object  item)
inline

Definition at line 373 of file MyObjectPoolManager.cs.

void VRageRender.MyGenericObjectPool.DeallocateAll ( )
inline

Definition at line 395 of file MyObjectPoolManager.cs.

void VRageRender.MyGenericObjectPool.DeallocateAllMarked ( )
inline

Definition at line 386 of file MyObjectPoolManager.cs.

void VRageRender.MyGenericObjectPool.MarkForDeallocate ( object  item)
inline

Definition at line 380 of file MyObjectPoolManager.cs.

void VRageRender.MyGenericObjectPool.TrimToBaseCapacity ( )
inline

Definition at line 405 of file MyObjectPoolManager.cs.

Property Documentation

HashSetReader<object> VRageRender.MyGenericObjectPool.Active
get

Definition at line 313 of file MyObjectPoolManager.cs.

int VRageRender.MyGenericObjectPool.ActiveCount
get

Definition at line 318 of file MyObjectPoolManager.cs.

int VRageRender.MyGenericObjectPool.BaseCapacity
get

Definition at line 323 of file MyObjectPoolManager.cs.

int VRageRender.MyGenericObjectPool.Capacity
get

Definition at line 328 of file MyObjectPoolManager.cs.

QueueReader<object> VRageRender.MyGenericObjectPool.Unused
get

Definition at line 308 of file MyObjectPoolManager.cs.


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