public NonEmptyRangeEnumerator(S2CellIndex index) : base(index) { }
// Convenience constructor that calls Init(). public ContentsEnumerator(S2CellIndex index) { cell_tree_ = index.cell_tree_; Reset(); }
// 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. }