C# 클래스 Lucene.Net.Support.BitSetSupport

This class provides supporting methods of java.util.BitSet that are not present in System.Collections.BitArray.
파일 보기 프로젝트 열기: paulirwin/lucene.net

공개 메소드들

메소드 설명
AndNot ( this bitsA, BitArray bitsB ) : void
And_UnequalLengths ( this bitsA, BitArray bitsB ) : BitArray
BitWiseEquals ( this bitsA, BitArray bitsB ) : bool
Cardinality ( this bits ) : int

Returns the number of bits set to true in this BitSet.

Clear ( this bits ) : void

Sets all bits to false

Clear ( this bits, int index ) : void

Sets the bit at the given index to false.

Clear ( this bits, int startIdx, int endIdx ) : void
Equal ( this a, OpenBitSet b ) : bool
Flip ( this bits, int startIdx, int endIdx ) : void
NextClearBit ( this bitArray, int index ) : int

Returns the next un-set bit at or after index, or -1 if no such bit exists.

NextSetBit ( this bitArray, int index ) : int

Returns the next set bit at or after index, or -1 if no such bit exists.

Or_UnequalLengths ( this bitsA, BitArray bitsB ) : BitArray
PrevSetBit ( this bitArray, int index ) : int
SafeGet ( this a, int loc ) : bool
SafeSet ( this a, int loc, bool value ) : void
Set ( this bits, int index ) : void

Sets the bit at the given index to true.

Set ( this bits, int startIdx, int endIdx ) : void
Set ( this bits, int fromIndex, int toIndex, bool value ) : void

Sets the bit at the given index to true.

Xor_UnequalLengths ( this bitsA, BitArray bitsB ) : BitArray

메소드 상세

AndNot() 공개 정적인 메소드

public static AndNot ( this bitsA, BitArray bitsB ) : void
bitsA this
bitsB System.Collections.BitArray
리턴 void

And_UnequalLengths() 공개 정적인 메소드

public static And_UnequalLengths ( this bitsA, BitArray bitsB ) : BitArray
bitsA this
bitsB System.Collections.BitArray
리턴 System.Collections.BitArray

BitWiseEquals() 공개 정적인 메소드

public static BitWiseEquals ( this bitsA, BitArray bitsB ) : bool
bitsA this
bitsB System.Collections.BitArray
리턴 bool

Cardinality() 공개 정적인 메소드

Returns the number of bits set to true in this BitSet.
public static Cardinality ( this bits ) : int
bits this The BitArray object.
리턴 int

Clear() 공개 정적인 메소드

Sets all bits to false
public static Clear ( this bits ) : void
bits this The BitArray object.
리턴 void

Clear() 공개 정적인 메소드

Sets the bit at the given index to false.
public static Clear ( this bits, int index ) : void
bits this The BitArray object.
index int The position to set to false.
리턴 void

Clear() 공개 정적인 메소드

public static Clear ( this bits, int startIdx, int endIdx ) : void
bits this
startIdx int
endIdx int
리턴 void

Equal() 공개 정적인 메소드

public static Equal ( this a, OpenBitSet b ) : bool
a this
b Lucene.Net.Util.OpenBitSet
리턴 bool

Flip() 공개 정적인 메소드

public static Flip ( this bits, int startIdx, int endIdx ) : void
bits this
startIdx int
endIdx int
리턴 void

NextClearBit() 공개 정적인 메소드

Returns the next un-set bit at or after index, or -1 if no such bit exists.
public static NextClearBit ( this bitArray, int index ) : int
bitArray this
index int the index of bit array at which to start checking
리턴 int

NextSetBit() 공개 정적인 메소드

Returns the next set bit at or after index, or -1 if no such bit exists.
public static NextSetBit ( this bitArray, int index ) : int
bitArray this
index int the index of bit array at which to start checking
리턴 int

Or_UnequalLengths() 공개 정적인 메소드

public static Or_UnequalLengths ( this bitsA, BitArray bitsB ) : BitArray
bitsA this
bitsB System.Collections.BitArray
리턴 System.Collections.BitArray

PrevSetBit() 공개 정적인 메소드

public static PrevSetBit ( this bitArray, int index ) : int
bitArray this
index int
리턴 int

SafeGet() 공개 정적인 메소드

public static SafeGet ( this a, int loc ) : bool
a this
loc int
리턴 bool

SafeSet() 공개 정적인 메소드

public static SafeSet ( this a, int loc, bool value ) : void
a this
loc int
value bool
리턴 void

Set() 공개 정적인 메소드

Sets the bit at the given index to true.
public static Set ( this bits, int index ) : void
bits this The BitArray object.
index int The position to set to true.
리턴 void

Set() 공개 정적인 메소드

public static Set ( this bits, int startIdx, int endIdx ) : void
bits this
startIdx int
endIdx int
리턴 void

Set() 공개 정적인 메소드

Sets the bit at the given index to true.
public static Set ( this bits, int fromIndex, int toIndex, bool value ) : void
bits this The BitArray object.
fromIndex int The start of the range to set(inclusive)
toIndex int The end of the range to set(exclusive)
value bool the value to set to the range
리턴 void

Xor_UnequalLengths() 공개 정적인 메소드

public static Xor_UnequalLengths ( this bitsA, BitArray bitsB ) : BitArray
bitsA this
bitsB System.Collections.BitArray
리턴 System.Collections.BitArray