org.osm2world.core.map_data.creation.index
Class Map2dTree.Leaf

Object
  extended by Map2dTree.Leaf
All Implemented Interfaces:
Iterable<MapElement>, Map2dTree.Node
Enclosing class:
Map2dTree

protected static class Map2dTree.Leaf
extends Object
implements Map2dTree.Node, Iterable<MapElement>


Field Summary
protected  ArrayList<MapElement> elements
           
protected  int numberWaysAndAreas
           
protected  Map2dTree.InnerNode parent
           
 
Constructor Summary
protected Map2dTree.Leaf(Map2dTree.InnerNode parent)
           
 
Method Summary
 void add(MapElement element, boolean suppressSplits)
           
 void collectLeaves(List<Map2dTree.Leaf> leaves)
          adds all leaves in the subtree starting at this node to a list
 Iterator<MapElement> iterator()
           
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

parent

protected final Map2dTree.InnerNode parent

elements

protected final ArrayList<MapElement> elements

numberWaysAndAreas

protected int numberWaysAndAreas
Constructor Detail

Map2dTree.Leaf

protected Map2dTree.Leaf(Map2dTree.InnerNode parent)
Method Detail

add

public void add(MapElement element,
                boolean suppressSplits)
Specified by:
add in interface Map2dTree.Node

iterator

public Iterator<MapElement> iterator()
Specified by:
iterator in interface Iterable<MapElement>

collectLeaves

public void collectLeaves(List<Map2dTree.Leaf> leaves)
Description copied from interface: Map2dTree.Node
adds all leaves in the subtree starting at this node to a list

Specified by:
collectLeaves in interface Map2dTree.Node