C# Class BitsetsNET.UncompressedBitArray

Inheritance: IBitset
Exibir arquivo Open project: BitSetsNet/BitSetsNet Class Usage Examples

Public Methods

Method 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 method

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

AndWith() public method

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

Cardinality() public method

The number of members in the set
public Cardinality ( ) : int
return int

Clone() public method

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

Difference() public method

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
return IBitset

Equals() public method

public Equals ( object obj ) : bool
obj object
return bool

Flip() public method

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
return void

Flip() public method

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)
return void

Get() public method

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

GetEnumerator() public method

public GetEnumerator ( ) : IEnumerator
return IEnumerator

GetHashCode() public method

public GetHashCode ( ) : int
return int

GetObjectData() public method

public GetObjectData ( SerializationInfo info, StreamingContext context ) : void
info System.Runtime.Serialization.SerializationInfo
context System.Runtime.Serialization.StreamingContext
return void

Not() public method

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

Or() public method

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

OrWith() public method

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

Serialize() public method

public Serialize ( System stream ) : void
stream System
return void

Set() public method

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
return void

Set() public method

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
return void

SetAll() public method

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

ToBitArray() public method

public ToBitArray ( ) : BitArray
return System.Collections.BitArray

UncompressedBitArray() public method

public UncompressedBitArray ( ) : System
return System

UncompressedBitArray() public method

public UncompressedBitArray ( UncompressedBitArray copy ) : System
copy UncompressedBitArray
return System

UncompressedBitArray() public method

public UncompressedBitArray ( int indices ) : System
indices int
return System

UncompressedBitArray() public method

public UncompressedBitArray ( int indices, int capacity ) : System
indices int
capacity int
return System