edu.ucla.belief
Class TableIndex.Iterator

Object
  extended by TableIndex.Iterator
All Implemented Interfaces:
IntIterator
Enclosing class:
TableIndex

public class TableIndex.Iterator
extends Object
implements IntIterator

A class for stepping through the instantiations of an index.


Constructor Summary
TableIndex.Iterator()
          creates an iterator.
 
Method Summary
 int[] current()
          returns the current instantiation.
 boolean hasNext()
          returns true if some index values still remain to be visited.
 int next()
          returns the next linear index.
 
Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TableIndex.Iterator

public TableIndex.Iterator()
creates an iterator.

Method Detail

hasNext

public boolean hasNext()
returns true if some index values still remain to be visited.

Specified by:
hasNext in interface IntIterator

next

public int next()
returns the next linear index.

Specified by:
next in interface IntIterator

current

public int[] current()
returns the current instantiation.



Copyright 2010 UCLA Automated Reasoning Group