C# Class BitsetsNET.UncompressedBitArray

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

Méthodes publiques

Méthode Description
And ( IBitset otherSet ) : IBitset

Creates a new bitset that is the bitwise AND of this bitset with another

AndWith ( IBitset otherSet ) : void

Performs an in-place intersection of two Roaring Bitsets.

Cardinality ( ) : int

The number of members in the set

Clone ( ) : IBitset

Create a new bitset that is a deep copy of this one.

Difference ( IBitset otherSet ) : IBitset

Creates a new IBitSet that has the members of this BitSet that are not members of the other bitset

Equals ( object obj ) : bool
Flip ( int index ) : void

If the given index is not in the set add it, otherwise remove it.

Flip ( int start, int end ) : void

For indices in the range [start, end) add the index to the set if it does not exists, otherwise remove it.

Get ( int index ) : bool

Return whether the given index is a member of this set

GetEnumerator ( ) : IEnumerator
GetHashCode ( ) : int
GetObjectData ( SerializationInfo info, StreamingContext context ) : void
Not ( ) : IBitset

Returns a new bitset that consists of all elements that are not in this bitset.

Or ( IBitset otherSet ) : IBitset

Creates a new bitset that is the bitwise OR of this bitset with another bitset.

OrWith ( IBitset otherSet ) : void

Computes the in-place bitwise OR of this bitset with another bitset.

Serialize ( System stream ) : void
Set ( int index, bool value ) : void

If the value is true and given index is not in the set add it. If the value is false and the index is in the set remove it. Otherwise, do nothing.

Set ( int start, int end, bool value ) : void

For indices in the range [start, end) add the index to the set if the value is true, otherwise remove it.

SetAll ( bool value ) : void

Sets all bits in the array to the specified value

ToBitArray ( ) : BitArray
UncompressedBitArray ( ) : System
UncompressedBitArray ( UncompressedBitArray copy ) : System
UncompressedBitArray ( int indices ) : System
UncompressedBitArray ( int indices, int capacity ) : System

Method Details

And() public méthode

Creates a new bitset that is the bitwise AND of this bitset with another
public And ( IBitset otherSet ) : IBitset
otherSet IBitset Other bitset
Résultat IBitset

AndWith() public méthode

Performs an in-place intersection of two Roaring Bitsets.
public AndWith ( IBitset otherSet ) : void
otherSet IBitset the second Roaring Bitset to intersect
Résultat void

Cardinality() public méthode

The number of members in the set
public Cardinality ( ) : int
Résultat int

Clone() public méthode

Create a new bitset that is a deep copy of this one.
public Clone ( ) : IBitset
Résultat IBitset

Difference() public méthode

Creates a new IBitSet that has the members of this BitSet that are not members of the other bitset
public Difference ( IBitset otherSet ) : IBitset
otherSet IBitset The other bitset
Résultat IBitset

Equals() public méthode

public Equals ( object obj ) : bool
obj object
Résultat bool

Flip() public méthode

If the given index is not in the set add it, otherwise remove it.
public Flip ( int index ) : void
index int the index to flip
Résultat void

Flip() public méthode

For indices in the range [start, end) add the index to the set if it does not exists, otherwise remove it.
public Flip ( int start, int end ) : void
start int the index to start from (inclusive)
end int the index to stop at (exclusive)
Résultat void

Get() public méthode

Return whether the given index is a member of this set
public Get ( int index ) : bool
index int the index to test
Résultat bool

GetEnumerator() public méthode

public GetEnumerator ( ) : IEnumerator
Résultat IEnumerator

GetHashCode() public méthode

public GetHashCode ( ) : int
Résultat int

GetObjectData() public méthode

public GetObjectData ( SerializationInfo info, StreamingContext context ) : void
info System.Runtime.Serialization.SerializationInfo
context System.Runtime.Serialization.StreamingContext
Résultat void

Not() public méthode

Returns a new bitset that consists of all elements that are not in this bitset.
public Not ( ) : IBitset
Résultat IBitset

Or() public méthode

Creates a new bitset that is the bitwise OR of this bitset with another bitset.
public Or ( IBitset otherSet ) : IBitset
otherSet IBitset Other bitset
Résultat IBitset

OrWith() public méthode

Computes the in-place bitwise OR of this bitset with another bitset.
public OrWith ( IBitset otherSet ) : void
otherSet IBitset Other bitset
Résultat void

Serialize() public méthode

public Serialize ( System stream ) : void
stream System
Résultat void

Set() public méthode

If the value is true and given index is not in the set add it. If the value is false and the index is in the set remove it. Otherwise, do nothing.
public Set ( int index, bool value ) : void
index int the index to set
value bool
Résultat void

Set() public méthode

For indices in the range [start, end) add the index to the set if the value is true, otherwise remove it.
public Set ( int start, int end, bool value ) : void
start int the index to start from (inclusive)
end int the index to stop at (exclusive)
value bool
Résultat void

SetAll() public méthode

Sets all bits in the array to the specified value
public SetAll ( bool value ) : void
value bool
Résultat void

ToBitArray() public méthode

public ToBitArray ( ) : BitArray
Résultat System.Collections.BitArray

UncompressedBitArray() public méthode

public UncompressedBitArray ( ) : System
Résultat System

UncompressedBitArray() public méthode

public UncompressedBitArray ( UncompressedBitArray copy ) : System
copy UncompressedBitArray
Résultat System

UncompressedBitArray() public méthode

public UncompressedBitArray ( int indices ) : System
indices int
Résultat System

UncompressedBitArray() public méthode

public UncompressedBitArray ( int indices, int capacity ) : System
indices int
capacity int
Résultat System