Top Description Fields Constructors Methods
com.googlecode.javaewah32

pack-priv final Class ReverseEWAHIterator32

extends Object
Class Inheritance
Imports
java.util.Stack

The class ReverseEWAHIterator32 represents a special type of efficient iterator iterating over (uncompressed) words of bits in reverse order.
Author
Gregory Ssi-Yan-Kai

Field Summary

Modifier and TypeField and Description
private int
pointer

The pointer representing the location of the current running length word in the array of words (embedded in the rlw attribute).

private Stack<Integer>
positions

The positions of running length words (embedded in the rlw attribute).

protected RunningLengthWord32
rlw

The current running length word.

Constructor Summary

AccessConstructor and Description
public
ReverseEWAHIterator32(final Buffer32
the buffer
buffer
)

Instantiates a new reverse EWAH iterator.

Method Summary

Modifier and TypeMethod and Description
public Buffer32

Returns:

the buffer
buffer
()

Access to the buffer

public boolean

Returns:

true, if successful
hasPrevious
()

Checks for previous.

public int

Returns:

the int
position
()

Position of the current running length word.

public RunningLengthWord32

Returns:

the running length word
previous
()

Previous running length word.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

pointerback to summary
private int pointer

The pointer representing the location of the current running length word in the array of words (embedded in the rlw attribute).

positionsback to summary
private Stack<Integer> positions

The positions of running length words (embedded in the rlw attribute).

rlwback to summary
protected RunningLengthWord32 rlw

The current running length word.

Constructor Detail

ReverseEWAHIterator32back to summary
public ReverseEWAHIterator32(final Buffer32 buffer)

Instantiates a new reverse EWAH iterator.

Parameters
buffer:Buffer32

the buffer

Method Detail

bufferback to summary
public Buffer32 buffer()

Access to the buffer

Returns:Buffer32

the buffer

hasPreviousback to summary
public boolean hasPrevious()

Checks for previous.

Returns:boolean

true, if successful

positionback to summary
public int position()

Position of the current running length word.

Returns:int

the int

previousback to summary
public RunningLengthWord32 previous()

Previous running length word.

Returns:RunningLengthWord32

the running length word