de.lmu.ifi.dbs.elki.utilities.datastructures.hierarchy
Class HierarchyReferenceLists.ItrAnc

java.lang.Object
  extended by de.lmu.ifi.dbs.elki.utilities.datastructures.hierarchy.HierarchyReferenceLists.ItrAnc
All Implemented Interfaces:
IterableIterator<O>, Iterable<O>, Iterator<O>
Enclosing class:
HierarchyReferenceLists<O extends Hierarchical<O>>

private class HierarchyReferenceLists.ItrAnc
extends Object
implements IterableIterator<O>

Iterator over all Ancestors.


Field Summary
(package private)  Iterator<O> parentiter
          Iterator over parents
(package private)  Iterator<O> subiter
          Iterator of current parent
 
Constructor Summary
HierarchyReferenceLists.ItrAnc(O start)
           
 
Method Summary
 boolean hasNext()
           
 Iterator<O> iterator()
           
 O next()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

parentiter

final Iterator<O extends Hierarchical<O>> parentiter
Iterator over parents


subiter

Iterator<O extends Hierarchical<O>> subiter
Iterator of current parent

Constructor Detail

HierarchyReferenceLists.ItrAnc

public HierarchyReferenceLists.ItrAnc(O start)
Method Detail

hasNext

public boolean hasNext()
Specified by:
hasNext in interface Iterator<O extends Hierarchical<O>>

next

public O next()
Specified by:
next in interface Iterator<O extends Hierarchical<O>>

remove

public void remove()
Specified by:
remove in interface Iterator<O extends Hierarchical<O>>

iterator

public Iterator<O> iterator()
Specified by:
iterator in interface Iterable<O extends Hierarchical<O>>

Release 0.4.0 (2011-09-20_1324)