Space Engineers
Classes | Public Member Functions | Public Attributes | Properties | List of all members
VRage.Generics.MySparseGrid< TItemData, TCellData > Class Template Reference
Inheritance diagram for VRage.Generics.MySparseGrid< TItemData, TCellData >:

Classes

class  Cell
 

Public Member Functions

 MySparseGrid (int cellSize)
 
Vector3I Add (Vector3I pos, TItemData data)
 
bool Contains (Vector3I pos)
 
bool Remove (Vector3I pos, bool removeEmptyCell=true)
 
void Clear ()
 
void ClearCells ()
 Clears cells, but keep them preallocated More...
 
TItemData Get (Vector3I pos)
 
bool TryGet (Vector3I pos, out TItemData data)
 
Cell GetCell (Vector3I cell)
 
bool TryGetCell (Vector3I cell, out Cell result)
 
bool IsDirty (Vector3I cell)
 
void MarkDirty (Vector3I cell)
 
void UnmarkDirty (Vector3I cell)
 
void UnmarkDirtyAll ()
 
Dictionary< Vector3I, Cell >.Enumerator GetEnumerator ()
 

Public Attributes

readonly int CellSize
 

Properties

DictionaryReader< Vector3I, CellCells [get]
 
HashSetReader< Vector3IDirtyCells [get]
 
int ItemCount [get]
 
int CellCount [get]
 

Detailed Description

Definition at line 10 of file MySparseGrid.cs.

Constructor & Destructor Documentation

VRage.Generics.MySparseGrid< TItemData, TCellData >.MySparseGrid ( int  cellSize)
inline

Definition at line 50 of file MySparseGrid.cs.

Member Function Documentation

Vector3I VRage.Generics.MySparseGrid< TItemData, TCellData >.Add ( Vector3I  pos,
TItemData  data 
)
inline

Definition at line 55 of file MySparseGrid.cs.

void VRage.Generics.MySparseGrid< TItemData, TCellData >.Clear ( )
inline

Definition at line 90 of file MySparseGrid.cs.

void VRage.Generics.MySparseGrid< TItemData, TCellData >.ClearCells ( )
inline

Clears cells, but keep them preallocated

Definition at line 99 of file MySparseGrid.cs.

bool VRage.Generics.MySparseGrid< TItemData, TCellData >.Contains ( Vector3I  pos)
inline

Definition at line 64 of file MySparseGrid.cs.

TItemData VRage.Generics.MySparseGrid< TItemData, TCellData >.Get ( Vector3I  pos)
inline

Definition at line 108 of file MySparseGrid.cs.

Cell VRage.Generics.MySparseGrid< TItemData, TCellData >.GetCell ( Vector3I  cell)
inline

Definition at line 127 of file MySparseGrid.cs.

Dictionary<Vector3I, Cell>.Enumerator VRage.Generics.MySparseGrid< TItemData, TCellData >.GetEnumerator ( )
inline

Definition at line 168 of file MySparseGrid.cs.

bool VRage.Generics.MySparseGrid< TItemData, TCellData >.IsDirty ( Vector3I  cell)
inline

Definition at line 148 of file MySparseGrid.cs.

void VRage.Generics.MySparseGrid< TItemData, TCellData >.MarkDirty ( Vector3I  cell)
inline

Definition at line 153 of file MySparseGrid.cs.

bool VRage.Generics.MySparseGrid< TItemData, TCellData >.Remove ( Vector3I  pos,
bool  removeEmptyCell = true 
)
inline

Definition at line 70 of file MySparseGrid.cs.

bool VRage.Generics.MySparseGrid< TItemData, TCellData >.TryGet ( Vector3I  pos,
out TItemData  data 
)
inline

Definition at line 113 of file MySparseGrid.cs.

bool VRage.Generics.MySparseGrid< TItemData, TCellData >.TryGetCell ( Vector3I  cell,
out Cell  result 
)
inline

Definition at line 132 of file MySparseGrid.cs.

void VRage.Generics.MySparseGrid< TItemData, TCellData >.UnmarkDirty ( Vector3I  cell)
inline

Definition at line 158 of file MySparseGrid.cs.

void VRage.Generics.MySparseGrid< TItemData, TCellData >.UnmarkDirtyAll ( )
inline

Definition at line 163 of file MySparseGrid.cs.

Member Data Documentation

readonly int VRage.Generics.MySparseGrid< TItemData, TCellData >.CellSize

Definition at line 28 of file MySparseGrid.cs.

Property Documentation

int VRage.Generics.MySparseGrid< TItemData, TCellData >.CellCount
get

Definition at line 46 of file MySparseGrid.cs.

DictionaryReader<Vector3I, Cell> VRage.Generics.MySparseGrid< TItemData, TCellData >.Cells
get

Definition at line 31 of file MySparseGrid.cs.

HashSetReader<Vector3I> VRage.Generics.MySparseGrid< TItemData, TCellData >.DirtyCells
get

Definition at line 36 of file MySparseGrid.cs.

int VRage.Generics.MySparseGrid< TItemData, TCellData >.ItemCount
get

Definition at line 41 of file MySparseGrid.cs.


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