C# 클래스 Jurassic.Library.SparseArray

Represents an array with non-consecutive elements.
파일 보기 프로젝트 열기: paulbartrum/jurassic 1 사용 예제들

공개 메소드들

메소드 설명
CopyTo ( SparseArray source, uint start ) : void

Copies the elements of the given sparse array to this sparse array, starting at a particular index. Existing values are overwritten.

CopyTo ( object source, uint start, int length ) : void

Copies the elements of the sparse array to this sparse array, starting at a particular index. Existing values are overwritten.

Delete ( uint index ) : void

Deletes (sets to null) an array element.

DeleteRange ( uint start, uint length ) : void

Deletes (sets to null) a range of array elements.

FromDenseArray ( object array, int length ) : SparseArray

Creates a sparse array from the given dense array.

SparseArray ( ) : System
this ( uint index ) : object

Gets the total number of items that can be stored in this tree without having to increase the size of the tree.

비공개 메소드들

메소드 설명
DeleteRange ( uint start, uint length, Node parentNode, Node node, int nodeIndex, int nodeDepth ) : void

Deletes (sets to null) a range of array elements.

FindOrCreateArray ( uint index, bool writeAccess ) : object[]
GetValueNonCached ( uint index ) : object

메소드 상세

CopyTo() 공개 메소드

Copies the elements of the given sparse array to this sparse array, starting at a particular index. Existing values are overwritten.
public CopyTo ( SparseArray source, uint start ) : void
source SparseArray The sparse array to copy.
start uint The zero-based index at which copying begins.
리턴 void

CopyTo() 공개 메소드

Copies the elements of the sparse array to this sparse array, starting at a particular index. Existing values are overwritten.
public CopyTo ( object source, uint start, int length ) : void
source object The sparse array to copy.
start uint The zero-based index at which copying begins.
length int The number of elements to copy.
리턴 void

Delete() 공개 메소드

Deletes (sets to null) an array element.
public Delete ( uint index ) : void
index uint The index of the array element to delete.
리턴 void

DeleteRange() 공개 메소드

Deletes (sets to null) a range of array elements.
public DeleteRange ( uint start, uint length ) : void
start uint The index of the first array element to delete.
length uint The number of array elements to delete.
리턴 void

FromDenseArray() 공개 정적인 메소드

Creates a sparse array from the given dense array.
public static FromDenseArray ( object array, int length ) : SparseArray
array object The array to copy items from.
length int The number of items to copy.
리턴 SparseArray

SparseArray() 공개 메소드

public SparseArray ( ) : System
리턴 System

this() 공개 메소드

Gets the total number of items that can be stored in this tree without having to increase the size of the tree.
public this ( uint index ) : object
index uint
리턴 object