Class ArcsSet.SubArcsIterator

  • All Implemented Interfaces:
    java.util.Iterator<double[]>
    Enclosing class:
    ArcsSet

    private class ArcsSet.SubArcsIterator
    extends java.lang.Object
    implements java.util.Iterator<double[]>
    Local iterator for sub-arcs.
    • Constructor Summary

      Constructors 
      Constructor Description
      SubArcsIterator()
      Simple constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean hasNext()
      double[] next()
      void remove()
      private void selectPending()
      Walk the tree to select the pending sub-arc.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.Iterator

        forEachRemaining
    • Field Detail

      • firstStart

        private final BSPTree<Sphere1D> firstStart
        Start of the first arc.
      • pending

        private double[] pending
        Sub-arc no yet returned.
    • Constructor Detail

      • SubArcsIterator

        SubArcsIterator()
        Simple constructor.
    • Method Detail

      • selectPending

        private void selectPending()
        Walk the tree to select the pending sub-arc.
      • hasNext

        public boolean hasNext()
        Specified by:
        hasNext in interface java.util.Iterator<double[]>
      • next

        public double[] next()
        Specified by:
        next in interface java.util.Iterator<double[]>
      • remove

        public void remove()
        Specified by:
        remove in interface java.util.Iterator<double[]>