C# 클래스 BitsetsNET.RoaringArray

파일 보기 프로젝트 열기: BitSetsNet/BitSetsNet 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
INITIAL_CAPACITY short

공개 메소드들

메소드 설명
Append ( ushort key, Container value ) : void
AppendCopy ( RoaringArray sa, int index ) : void

Append copy of the one value from another array

AppendCopy ( RoaringArray sa, int startingIndex, int end ) : void

Append copies of the values from another array

Clone ( ) : RoaringArray

Creates a deep copy of this roaring array

Deserialize ( BinaryReader reader ) : RoaringArray

Deserialize a roaring array from a binary format, as written by the Serialize method.

Equals ( Object o ) : bool
ExtendArray ( int k ) : void
GetContainerAtIndex ( int i ) : Container
GetEnumerator ( ) : IEnumerator

Get an enumerator of the set indices of this bitset.

GetHashCode ( ) : int
GetIndex ( ushort x ) : int
GetKeyAtIndex ( int i ) : ushort
InsertNewKeyValueAt ( int i, ushort key, Container value ) : void

insert a new key, it is assumed that it does not exist

RemoveAtIndex ( int i ) : void
RemoveIndexRange ( int begin, int end ) : void
ReplaceKeyAndContainerAtIndex ( int i, ushort key, Container c ) : void

Replaces the key and container value at a given index.

Resize ( int newSize ) : void

Logically resizes the Roaring Array after an in-place operation. Fills all keys and values after its new last index with zeros and null, respectively, and changes the size to the new size.

RoaringArray ( ) : System
RoaringArray ( int capacity ) : System
Serialize ( BinaryWriter writer ) : void

Serialize the roaring array into a binary format.

SetContainerAtIndex ( int i, Container c ) : void

비공개 메소드들

메소드 설명
AdvanceUntil ( ushort x, int pos ) : int
BinarySearch ( int begin, int end, ushort key ) : int
CopyRange ( int begin, int end, int newBegin ) : void

Copies a range of keys and values from one location in the roaring array to another.

메소드 상세

Append() 공개 메소드

public Append ( ushort key, Container value ) : void
key ushort
value Container
리턴 void

AppendCopy() 공개 메소드

Append copy of the one value from another array
public AppendCopy ( RoaringArray sa, int index ) : void
sa RoaringArray Other array
index int Index in the other array
리턴 void

AppendCopy() 공개 메소드

Append copies of the values from another array
public AppendCopy ( RoaringArray sa, int startingIndex, int end ) : void
sa RoaringArray other array
startingIndex int starting index in the other array
end int (exclusive) in the other array
리턴 void

Clone() 공개 메소드

Creates a deep copy of this roaring array
public Clone ( ) : RoaringArray
리턴 RoaringArray

Deserialize() 공개 정적인 메소드

Deserialize a roaring array from a binary format, as written by the Serialize method.
public static Deserialize ( BinaryReader reader ) : RoaringArray
reader BinaryReader The reader from which to deserialize the roaring array.
리턴 RoaringArray

Equals() 공개 메소드

public Equals ( Object o ) : bool
o Object
리턴 bool

ExtendArray() 공개 메소드

public ExtendArray ( int k ) : void
k int
리턴 void

GetContainerAtIndex() 공개 메소드

public GetContainerAtIndex ( int i ) : Container
i int
리턴 Container

GetEnumerator() 공개 메소드

Get an enumerator of the set indices of this bitset.
public GetEnumerator ( ) : IEnumerator
리턴 IEnumerator

GetHashCode() 공개 메소드

public GetHashCode ( ) : int
리턴 int

GetIndex() 공개 메소드

public GetIndex ( ushort x ) : int
x ushort
리턴 int

GetKeyAtIndex() 공개 메소드

public GetKeyAtIndex ( int i ) : ushort
i int
리턴 ushort

InsertNewKeyValueAt() 공개 메소드

insert a new key, it is assumed that it does not exist
public InsertNewKeyValueAt ( int i, ushort key, Container value ) : void
i int
key ushort
value Container
리턴 void

RemoveAtIndex() 공개 메소드

public RemoveAtIndex ( int i ) : void
i int
리턴 void

RemoveIndexRange() 공개 메소드

public RemoveIndexRange ( int begin, int end ) : void
begin int
end int
리턴 void

ReplaceKeyAndContainerAtIndex() 공개 메소드

Replaces the key and container value at a given index.
public ReplaceKeyAndContainerAtIndex ( int i, ushort key, Container c ) : void
i int the working index
key ushort key to set
c Container container to set
리턴 void

Resize() 공개 메소드

Logically resizes the Roaring Array after an in-place operation. Fills all keys and values after its new last index with zeros and null, respectively, and changes the size to the new size.
public Resize ( int newSize ) : void
newSize int the new size of the roaring array
리턴 void

RoaringArray() 공개 메소드

public RoaringArray ( ) : System
리턴 System

RoaringArray() 공개 메소드

public RoaringArray ( int capacity ) : System
capacity int
리턴 System

Serialize() 공개 메소드

Serialize the roaring array into a binary format.
public Serialize ( BinaryWriter writer ) : void
writer BinaryWriter The writer to write the serialization to.
리턴 void

SetContainerAtIndex() 공개 메소드

public SetContainerAtIndex ( int i, Container c ) : void
i int
c Container
리턴 void

프로퍼티 상세

INITIAL_CAPACITY 보호되어 있는 정적으로 프로퍼티

protected static short INITIAL_CAPACITY
리턴 short