|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcoins.flow.BitVectorIteratorImpl
BitVectorIteratorImpl class (##6)
| Field Summary | |
protected int |
fBitCount
|
protected int |
fBitPosition
|
protected BitVector |
fBitVector
|
protected int |
fLongWordLength
|
protected int |
fShiftMax
|
SubpFlow |
fSubpFlow
|
protected long[] |
fVectorWord
|
| Constructor Summary | |
BitVectorIteratorImpl(SubpFlow pSubpFlow,
BitVector pBitVector)
|
|
| Method Summary | |
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(). |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected int fLongWordLength
protected int fBitCount
protected int fShiftMax
protected long[] fVectorWord
protected final BitVector fBitVector
protected int fBitPosition
public final SubpFlow fSubpFlow
| Constructor Detail |
public BitVectorIteratorImpl(SubpFlow pSubpFlow,
BitVector pBitVector)
| Method Detail |
public boolean hasNext()
BitVectorIteratorBitVector associated with this BitVectorIterator has more elements. This method does not check the contents of the remaining bits.
hasNext in interface BitVectorIteratorpublic int next()
BitVectorIteratorBitVectorIterator.
next in interface BitVectorIteratorpublic int nextIndex()
BitVectorIteratorhasNext returned true does not guarantee this method returns meaningful (nonzero) value.
nextIndex in interface BitVectorIteratorpublic int currentIndex()
BitVectorIteratornext() or nextIndex().
currentIndex in interface BitVectorIteratorpublic void resetBit()
BitVectorIterator
resetBit in interface BitVectorIteratorpublic void setBit()
BitVectorIterator
setBit in interface BitVectorIterator
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||