textmaven.tst
Class TSTCountIterator

java.lang.Object
  extended bytextmaven.tst.TSTIterator
      extended bytextmaven.tst.TSTCountIterator
All Implemented Interfaces:
java.util.Iterator

public class TSTCountIterator
extends TSTIterator

Iterator that vistis every node and collects some statistics.

Author:
Peter Kolloch

Field Summary
 
Fields inherited from class textmaven.tst.TSTIterator
REL_TO_STATE, STATE_TO_REL, STATE0_LO, STATE1_NODE, STATE2_EQ, STATE3_HI, STATE4_DONE
 
Constructor Summary
TSTCountIterator(textmaven.tst.TSTNode root)
           
 
Method Summary
static TSTCountIterator count(TernarySearchTree tst)
           
 java.lang.String toString()
           
protected  boolean visitNode(textmaven.tst.TSTNode node)
           
 
Methods inherited from class textmaven.tst.TSTIterator
calculateNext, hasNext, next, nextEntry, remove
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TSTCountIterator

public TSTCountIterator(textmaven.tst.TSTNode root)
Parameters:
root -
Method Detail

visitNode

protected boolean visitNode(textmaven.tst.TSTNode node)
Overrides:
visitNode in class TSTIterator

count

public static TSTCountIterator count(TernarySearchTree tst)

toString

public java.lang.String toString()


Copyright © 2002-2005 Sourceforge. All Rights Reserved.