coins.flow
クラス BitVectorIteratorImpl

java.lang.Object
  |
  +--coins.flow.BitVectorIteratorImpl
すべての実装インタフェース:
BitVectorIterator
直系の既知のサブクラス:
ExpVectorIteratorImpl, PointVectorIteratorImpl

public class BitVectorIteratorImpl
extends java.lang.Object
implements BitVectorIterator

BitVectorIteratorImpl class (##6)


フィールドの概要
protected  int fBitCount
           
protected  int fBitPosition
           
protected  BitVector fBitVector
           
protected  int fLongWordLength
           
protected  int fShiftMax
           
 SubpFlow fSubpFlow
           
protected  long[] fVectorWord
           
 
コンストラクタの概要
BitVectorIteratorImpl(SubpFlow pSubpFlow, BitVector pBitVector)
           
 
メソッドの概要
 int currentIndex()
          Returns the current index of bit position.
 boolean hasNext()
          hasNext Sees whether the BitVector associated with this BitVectorIterator has more elements.
 int next()
          Returns the next bit position of this BitVectorIterator.
 int nextIndex()
          nextIndex Returns the next index of bit position that has value 1.
 void resetBit()
          Resets the bit for the position returned by the last call to next() or nextIndex().
 void setBit()
          Sets the bit for the position returned by the last call to next() or nextIndex().
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

fLongWordLength

protected int fLongWordLength

fBitCount

protected int fBitCount

fShiftMax

protected int fShiftMax

fVectorWord

protected long[] fVectorWord

fBitVector

protected final BitVector fBitVector

fBitPosition

protected int fBitPosition

fSubpFlow

public final SubpFlow fSubpFlow
コンストラクタの詳細

BitVectorIteratorImpl

public BitVectorIteratorImpl(SubpFlow pSubpFlow,
                             BitVector pBitVector)
メソッドの詳細

hasNext

public boolean hasNext()
インタフェース BitVectorIterator の記述:
hasNext Sees whether the BitVector associated with this BitVectorIterator has more elements. This method does not check the contents of the remaining bits.

定義:
インタフェース BitVectorIterator 内の hasNext
戻り値:
true if the vector has next element, false otherwise.

next

public int next()
インタフェース BitVectorIterator の記述:
Returns the next bit position of this BitVectorIterator.

定義:
インタフェース BitVectorIterator 内の next

nextIndex

public int nextIndex()
インタフェース BitVectorIterator の記述:
nextIndex Returns the next index of bit position that has value 1. If the there is no non-zero bit remaining, then 0 is returned. Therefore, having hasNext returned true does not guarantee this method returns meaningful (nonzero) value.

定義:
インタフェース BitVectorIterator 内の nextIndex

currentIndex

public int currentIndex()
インタフェース BitVectorIterator の記述:
Returns the current index of bit position. This is what was last returned by next() or nextIndex().

定義:
インタフェース BitVectorIterator 内の currentIndex

resetBit

public void resetBit()
インタフェース BitVectorIterator の記述:
Resets the bit for the position returned by the last call to next() or nextIndex(). The behavior is undefined if there was no such call or the call returned 0.

定義:
インタフェース BitVectorIterator 内の resetBit

setBit

public void setBit()
インタフェース BitVectorIterator の記述:
Sets the bit for the position returned by the last call to next() or nextIndex(). The behavior is undefined if there was no such call or the call returned 0.

定義:
インタフェース BitVectorIterator 内の setBit