Ejemplo n.º 1
0
 public NonEmptyRangeEnumerator(S2CellIndex index) : base(index)
 {
 }
Ejemplo n.º 2
0
 // Convenience constructor that calls Init().
 public ContentsEnumerator(S2CellIndex index)
 {
     cell_tree_ = index.cell_tree_;
     Reset();
 }
Ejemplo n.º 3
0
 // Initializes a RangeIterator for the given S2CellIndex.  The iterator is
 // initially *unpositioned*; you must call a positioning method such as
 // Begin() or Seek() before accessing its contents.
 public RangeNodeEnumerator(S2CellIndex index)
 {
     range_nodes_ = index.range_nodes_;
     Position     = -1;
     System.Diagnostics.Debug.Assert(range_nodes_.Any()); // Call Build() first.
 }