C# Класс Lucene.Net.Support.BitSetSupport

This class provides supporting methods of java.util.BitSet that are not present in System.Collections.BitArray.
Показать файл Открыть проект

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

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