C# Class BitsetsNET.RoaringArray

Afficher le fichier Open project: BitSetsNet/BitSetsNet Class Usage Examples

Protected Properties

Свойство Type Description
INITIAL_CAPACITY short

Méthodes publiques

Méthode Description
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

Private Methods

Méthode Description
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.

Method Details

Append() public méthode

public Append ( ushort key, Container value ) : void
key ushort
value Container
Résultat void

AppendCopy() public méthode

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
Résultat void

AppendCopy() public méthode

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
Résultat void

Clone() public méthode

Creates a deep copy of this roaring array
public Clone ( ) : RoaringArray
Résultat RoaringArray

Deserialize() public static méthode

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.
Résultat RoaringArray

Equals() public méthode

public Equals ( Object o ) : bool
o Object
Résultat bool

ExtendArray() public méthode

public ExtendArray ( int k ) : void
k int
Résultat void

GetContainerAtIndex() public méthode

public GetContainerAtIndex ( int i ) : Container
i int
Résultat Container

GetEnumerator() public méthode

Get an enumerator of the set indices of this bitset.
public GetEnumerator ( ) : IEnumerator
Résultat IEnumerator

GetHashCode() public méthode

public GetHashCode ( ) : int
Résultat int

GetIndex() public méthode

public GetIndex ( ushort x ) : int
x ushort
Résultat int

GetKeyAtIndex() public méthode

public GetKeyAtIndex ( int i ) : ushort
i int
Résultat ushort

InsertNewKeyValueAt() public méthode

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
Résultat void

RemoveAtIndex() public méthode

public RemoveAtIndex ( int i ) : void
i int
Résultat void

RemoveIndexRange() public méthode

public RemoveIndexRange ( int begin, int end ) : void
begin int
end int
Résultat void

ReplaceKeyAndContainerAtIndex() public méthode

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
Résultat void

Resize() public méthode

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
Résultat void

RoaringArray() public méthode

public RoaringArray ( ) : System
Résultat System

RoaringArray() public méthode

public RoaringArray ( int capacity ) : System
capacity int
Résultat System

Serialize() public méthode

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

SetContainerAtIndex() public méthode

public SetContainerAtIndex ( int i, Container c ) : void
i int
c Container
Résultat void

Property Details

INITIAL_CAPACITY protected_oe static_oe property

protected static short INITIAL_CAPACITY
Résultat short