C# Class Lucene.Net.Support.BitSetSupport

This class provides supporting methods of java.util.BitSet that are not present in System.Collections.BitArray.
显示文件 Open project: paulirwin/lucene.net

Public Methods

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

Method Details

AndNot() public static method

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

And_UnequalLengths() public static method

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

BitWiseEquals() public static method

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

Cardinality() public static method

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

Clear() public static method

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

Clear() public static method

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

Clear() public static method

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

Equal() public static method

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

Flip() public static method

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

NextClearBit() public static method

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

NextSetBit() public static method

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

Or_UnequalLengths() public static method

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

PrevSetBit() public static method

public static PrevSetBit ( this bitArray, int index ) : int
bitArray this
index int
return int

SafeGet() public static method

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

SafeSet() public static method

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

Set() public static method

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

Set() public static method

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

Set() public static method

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

Xor_UnequalLengths() public static method

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