Top Description Fields Constructors Methods
com.googlecode.javaewah32

public Class IntIteratorOverIteratingRLW32

extends Object
implements IntIterator
Class Inheritance
All Implemented Interfaces
com.googlecode.javaewah.IntIterator
Imports
com.googlecode.javaewah.IntIterator

Implementation of an IntIterator over an IteratingRLW.

Field Summary

Modifier and TypeField and Description
private boolean
private int
pack-priv final IteratingRLW32
private int
private int
private int
private int
private int

Constructor Summary

AccessConstructor and Description
public
IntIteratorOverIteratingRLW32(final IteratingRLW32
iterator we wish to iterate over
p
)

Method Summary

Modifier and TypeMethod and Description
public boolean
private boolean
private boolean

Returns:

whether we could find another set bit; don't move if there is an unprocessed value
moveToNext
()

public final int
next()

Implements com.googlecode.javaewah.IntIterator.next.

Return the next integer

private boolean
private void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

hasNextback to summary
private boolean hasNext
literalPositionback to summary
private int literalPosition
parentback to summary
pack-priv final IteratingRLW32 parent
positionback to summary
private int position
runningLengthback to summary
private int runningLength
wordback to summary
private int word
wordLengthback to summary
private int wordLength
wordPositionback to summary
private int wordPosition

Constructor Detail

IntIteratorOverIteratingRLW32back to summary
public IntIteratorOverIteratingRLW32(final IteratingRLW32 p)
Parameters
p:IteratingRLW32

iterator we wish to iterate over

Method Detail

hasNextback to summary
public boolean hasNext()

Implements com.googlecode.javaewah.IntIterator.hasNext.

Doc from com.googlecode.javaewah.IntIterator.hasNext.

Is there more?

Returns:boolean

true, if there is more, false otherwise

Annotations
@Override
literalHasNextback to summary
private boolean literalHasNext()
moveToNextback to summary
private boolean moveToNext()
Returns:boolean

whether we could find another set bit; don't move if there is an unprocessed value

nextback to summary
public final int next()

Implements com.googlecode.javaewah.IntIterator.next.

Doc from com.googlecode.javaewah.IntIterator.next.

Return the next integer

Returns:int

the integer

Annotations
@Override
runningHasNextback to summary
private boolean runningHasNext()
setupForCurrentRunningLengthWordback to summary
private void setupForCurrentRunningLengthWord()