C# 클래스 BitsetsNET.UncompressedBitArray

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

공개 메소드들

메소드 설명
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