/*
 * @(#)SegmentTreeIterator.java  1.0  2010-12-25
 *
 * Copyright (c) 2000-2010 Werner Randelshofer, Immensee, Switzerland.
 * All rights reserved.
 *
 * You may not use, copy or modify this file, except in compliance with the
 * license agreement you entered into with Werner Randelshofer.
 * For details see accompanying license terms.
 */
package ch.randelshofer.segmenttree;

/**
 * Interface for segment tree iterator.
 *
 */
public interface SegmentTreeIterator {
	/**
	 * Returns true if there is another node in the tree not visited yet.
	 */
	public boolean hasNext();
	
	/**
	 * Returns next node in  the tree;
	 * @return the next segment.
	 */
	public SegmentNode next();
}
