C# Класс BitsetsNET.UncompressedBitArray

Наследование: IBitset
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Описание методов

And() публичный Метод

Creates a new bitset that is the bitwise AND of this bitset with another
public And ( IBitset otherSet ) : IBitset
otherSet IBitset Other bitset
Результат IBitset

AndWith() публичный Метод

Performs an in-place intersection of two Roaring Bitsets.
public AndWith ( IBitset otherSet ) : void
otherSet IBitset the second Roaring Bitset to intersect
Результат void

Cardinality() публичный Метод

The number of members in the set
public Cardinality ( ) : int
Результат int

Clone() публичный Метод

Create a new bitset that is a deep copy of this one.
public Clone ( ) : IBitset
Результат IBitset

Difference() публичный Метод

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
Результат IBitset

Equals() публичный Метод

public Equals ( object obj ) : bool
obj object
Результат bool

Flip() публичный Метод

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
Результат void

Flip() публичный Метод

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)
Результат void

Get() публичный Метод

Return whether the given index is a member of this set
public Get ( int index ) : bool
index int the index to test
Результат bool

GetEnumerator() публичный Метод

public GetEnumerator ( ) : IEnumerator
Результат IEnumerator

GetHashCode() публичный Метод

public GetHashCode ( ) : int
Результат int

GetObjectData() публичный Метод

public GetObjectData ( SerializationInfo info, StreamingContext context ) : void
info System.Runtime.Serialization.SerializationInfo
context System.Runtime.Serialization.StreamingContext
Результат void

Not() публичный Метод

Returns a new bitset that consists of all elements that are not in this bitset.
public Not ( ) : IBitset
Результат IBitset

Or() публичный Метод

Creates a new bitset that is the bitwise OR of this bitset with another bitset.
public Or ( IBitset otherSet ) : IBitset
otherSet IBitset Other bitset
Результат IBitset

OrWith() публичный Метод

Computes the in-place bitwise OR of this bitset with another bitset.
public OrWith ( IBitset otherSet ) : void
otherSet IBitset Other bitset
Результат void

Serialize() публичный Метод

public Serialize ( System stream ) : void
stream System
Результат void

Set() публичный Метод

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
Результат void

Set() публичный Метод

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
Результат void

SetAll() публичный Метод

Sets all bits in the array to the specified value
public SetAll ( bool value ) : void
value bool
Результат void

ToBitArray() публичный Метод

public ToBitArray ( ) : BitArray
Результат System.Collections.BitArray

UncompressedBitArray() публичный Метод

public UncompressedBitArray ( ) : System
Результат System

UncompressedBitArray() публичный Метод

public UncompressedBitArray ( UncompressedBitArray copy ) : System
copy UncompressedBitArray
Результат System

UncompressedBitArray() публичный Метод

public UncompressedBitArray ( int indices ) : System
indices int
Результат System

UncompressedBitArray() публичный Метод

public UncompressedBitArray ( int indices, int capacity ) : System
indices int
capacity int
Результат System