coins.flow
クラス BitVectorImpl

java.lang.Object
  |
  +--coins.flow.BitVectorImpl
すべての実装インタフェース:
BitVector, java.lang.Cloneable
直系の既知のサブクラス:
BBlockVectorImpl, ExpVectorImpl, PointVectorImpl

public class BitVectorImpl
extends java.lang.Object
implements BitVector, java.lang.Cloneable

BitVectorImpl class


フィールドの概要
protected  int fBitLength
           
protected  int fLongWordLength
           
protected  int fShiftMax
           
protected  long[] fVectorWord
           
 
コンストラクタの概要
protected BitVectorImpl()
           
protected BitVectorImpl(int pLongWordCount)
           
 
メソッドの概要
 BitVectorIterator bitVectorIterator(SubpFlow pSubpFlow)
          Returns the BitVectorIterator object backed by this BitVector
 java.lang.Object clone()
           
 boolean equals(java.lang.Object pObj)
          Same as vectorEqual if the specified argument is an instance of BitVector, otherwise returns false.
 int getBit(int pInx)
          getBit Get pIndex-th bit of this bit vector.
 int getBitLength()
          Returns the length of this BitVector, not counting the 0-th bit, which is not used.
 long[] getVectorWord()
          Returns the array of long, which is where the actual data for this BitVector is stored.
 int getWordLength()
          Returns the # of long words this BitVector uses to store its data.
 int hashCode()
           
 boolean isSet(int pInx)
          Same as getBit(pInx) == 1.
 boolean isZero()
          Are all the bits zero?
 void resetBit(int pInx)
          resetBit Reset pIndex-th bit of this bit vector to 0.
 void setBit(int pInx)
          setBit Set pIndex-th bit of this bit vector to 1.
 java.lang.String toString()
          toString Get the sequence of indexes corresponding to the position having 1.
 java.lang.String toStringDescriptive()
          Returns a possibly more descriptive string representation than toString() of this BitVector.
 void vectorAnd(BitVector pOperand2, BitVector pResult)
          vectorAnd; Make a bit vector and set its value by executing bit-wise-and operation on this and pOperand2.
 void vectorCopy(BitVector pResult)
          vectorCopy; Make a bit vector and set its value same to that of pOperand.
 boolean vectorEqual(BitVector pOperand2)
          vectorEqual; See if this and pOperand2 have the same value or not.
 void vectorNot(BitVector pResult)
          vectorNot; Make a bit vector and set its value by executing bit-wise-not operation on pOperand.
 void vectorOr(BitVector pOperand2, BitVector pResult)
          vectorOr; Make a bit vector and set its value by executing bit-wise-or operation on this and pOperand2.
 void vectorReset()
          vectorReset; Reset all bits of this vector to 0.
 void vectorSub(BitVector pOperand2, BitVector pResult)
          vectorSub; Make a bit vector and set its value by executing bit-wise-sub operation on this and pOperand2.
 void vectorXor(BitVector pOperand2, BitVector pResult)
          vectorXor; Make a bit vector and set its value by executing bit-wise exclusive-or operation on this and pOperand2.
 
クラス java.lang.Object から継承したメソッド
finalize, getClass, notify, notifyAll, wait, wait, wait
 

フィールドの詳細

fLongWordLength

protected int fLongWordLength

fBitLength

protected int fBitLength

fShiftMax

protected int fShiftMax

fVectorWord

protected long[] fVectorWord
コンストラクタの詳細

BitVectorImpl

protected BitVectorImpl()

BitVectorImpl

protected BitVectorImpl(int pLongWordCount)
メソッドの詳細

setBit

public void setBit(int pInx)
インタフェース BitVector の記述:
setBit Set pIndex-th bit of this bit vector to 1.

定義:
インタフェース BitVector 内の setBit
戻り値:
this bit vector whose pIndex-th bit is reset to 1.

resetBit

public void resetBit(int pInx)
インタフェース BitVector の記述:
resetBit Reset pIndex-th bit of this bit vector to 0.

定義:
インタフェース BitVector 内の resetBit
戻り値:
this bit vector whose pIndex-th bit is reset to 0.

getBit

public int getBit(int pInx)
インタフェース BitVector の記述:
getBit Get pIndex-th bit of this bit vector.

定義:
インタフェース BitVector 内の getBit
戻り値:
pIndex-th bit of this bit vector.

isSet

public boolean isSet(int pInx)
インタフェース BitVector の記述:
Same as getBit(pInx) == 1.

定義:
インタフェース BitVector 内の isSet

isZero

public boolean isZero()
インタフェース BitVector の記述:
Are all the bits zero?

定義:
インタフェース BitVector 内の isZero

getBitLength

public int getBitLength()
インタフェース BitVector の記述:
Returns the length of this BitVector, not counting the 0-th bit, which is not used.

定義:
インタフェース BitVector 内の getBitLength

getWordLength

public int getWordLength()
インタフェース BitVector の記述:
Returns the # of long words this BitVector uses to store its data.

定義:
インタフェース BitVector 内の getWordLength

getVectorWord

public long[] getVectorWord()
インタフェース BitVector の記述:
Returns the array of long, which is where the actual data for this BitVector is stored.

定義:
インタフェース BitVector 内の getVectorWord

bitVectorIterator

public BitVectorIterator bitVectorIterator(SubpFlow pSubpFlow)
インタフェース BitVector の記述:
Returns the BitVectorIterator object backed by this BitVector

定義:
インタフェース BitVector 内の bitVectorIterator

vectorAnd

public void vectorAnd(BitVector pOperand2,
                      BitVector pResult)
インタフェース BitVector の記述:
vectorAnd; Make a bit vector and set its value by executing bit-wise-and operation on this and pOperand2.

定義:
インタフェース BitVector 内の vectorAnd
戻り値:
the bit vector obtained by bit-wise-and operaion.

vectorOr

public void vectorOr(BitVector pOperand2,
                     BitVector pResult)
インタフェース BitVector の記述:
vectorOr; Make a bit vector and set its value by executing bit-wise-or operation on this and pOperand2.

定義:
インタフェース BitVector 内の vectorOr
戻り値:
the bit vector obtained by bit-wise-or operaion.

vectorXor

public void vectorXor(BitVector pOperand2,
                      BitVector pResult)
インタフェース BitVector の記述:
vectorXor; Make a bit vector and set its value by executing bit-wise exclusive-or operation on this and pOperand2.

定義:
インタフェース BitVector 内の vectorXor
戻り値:
the bit vector obtained by bit-wise exclusive-or operaion.

vectorNot

public void vectorNot(BitVector pResult)
インタフェース BitVector の記述:
vectorNot; Make a bit vector and set its value by executing bit-wise-not operation on pOperand.

定義:
インタフェース BitVector 内の vectorNot
戻り値:
the bit vector obtained by bit-wise-not operaion.

vectorSub

public void vectorSub(BitVector pOperand2,
                      BitVector pResult)
インタフェース BitVector の記述:
vectorSub; Make a bit vector and set its value by executing bit-wise-sub operation on this and pOperand2. (pOperand2 is subtracted from this.) //##62

定義:
インタフェース BitVector 内の vectorSub

vectorCopy

public void vectorCopy(BitVector pResult)
インタフェース BitVector の記述:
vectorCopy; Make a bit vector and set its value same to that of pOperand.

定義:
インタフェース BitVector 内の vectorCopy
戻り値:
a new bit vector having the same value as pOperand.

vectorEqual

public boolean vectorEqual(BitVector pOperand2)
インタフェース BitVector の記述:
vectorEqual; See if this and pOperand2 have the same value or not.

定義:
インタフェース BitVector 内の vectorEqual
戻り値:
true if this and pOperand2 have the same value, false otherwise.

equals

public boolean equals(java.lang.Object pObj)
インタフェース BitVector の記述:
Same as vectorEqual if the specified argument is an instance of BitVector, otherwise returns false.

定義:
インタフェース BitVector 内の equals
オーバーライド:
クラス java.lang.Object 内の equals

hashCode

public int hashCode()
オーバーライド:
クラス java.lang.Object 内の hashCode

vectorReset

public void vectorReset()
インタフェース BitVector の記述:
vectorReset; Reset all bits of this vector to 0.

定義:
インタフェース BitVector 内の vectorReset
戻り値:
this vector after resetting all of its bits to 0.

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
オーバーライド:
クラス java.lang.Object 内の clone
java.lang.CloneNotSupportedException

toString

public java.lang.String toString()
インタフェース BitVector の記述:
toString Get the sequence of indexes corresponding to the position having 1.

定義:
インタフェース BitVector 内の toString
オーバーライド:
クラス java.lang.Object 内の toString

toStringDescriptive

public java.lang.String toStringDescriptive()
インタフェース BitVector の記述:
Returns a possibly more descriptive string representation than toString() of this BitVector.

定義:
インタフェース BitVector 内の toStringDescriptive