MutableS2ShapeIndex

Undocumented in source.

Constructors

this
this()
Undocumented in source.
this
this(Options options)
Undocumented in source.

Destructor

~this
~this()
Undocumented in source.

Members

Classes

Iterator
class Iterator
Undocumented in source.

Functions

add
int add(S2Shape shape)
Undocumented in source. Be warned that the author may not have intended to support it.
clear
void clear()
Undocumented in source. Be warned that the author may not have intended to support it.
forceBuild
void forceBuild()
Undocumented in source. Be warned that the author may not have intended to support it.
getEdgeMaxLevel
int getEdgeMaxLevel(S2Shape.Edge edge)
Undocumented in source. Be warned that the author may not have intended to support it.
initialize
void initialize(Options options)
Undocumented in source.
isFresh
bool isFresh()
Undocumented in source. Be warned that the author may not have intended to support it.
minimize
void minimize()
Undocumented in source. Be warned that the author may not have intended to support it.
newIterator
IteratorBase newIterator(InitialPosition pos)
Undocumented in source. Be warned that the author may not have intended to support it.
numShapeIds
int numShapeIds()
Undocumented in source. Be warned that the author may not have intended to support it.
options
const(Options) options()
Undocumented in source. Be warned that the author may not have intended to support it.
release
S2Shape release(int shapeId)

Removes the given shape from the index and return ownership to the caller. Invalidates all iterators and their associated data.

releaseAll
S2Shape[] releaseAll()
Undocumented in source.
shape
inout(S2Shape) shape(int id)
Undocumented in source. Be warned that the author may not have intended to support it.
spaceUsed
size_t spaceUsed()
Undocumented in source. Be warned that the author may not have intended to support it.

Structs

Options
struct Options
Undocumented in source.

Variables

CELL_PADDING
enum double CELL_PADDING;
Undocumented in source.

Inherited Members

From S2ShapeIndex

numShapeIds
int numShapeIds()
Undocumented in source.
shape
inout(S2Shape) shape(int id)
Undocumented in source.
spaceUsed
size_t spaceUsed()
Undocumented in source.
minimize
void minimize()
Undocumented in source.
CellRelation
enum CellRelation
Undocumented in source.
InitialPosition
enum InitialPosition
Undocumented in source.
Iterator
class Iterator

A random access iterator that provides low-level access to the cells of the index. Cells are sorted in increasing order of S2CellId.

IteratorBase
class IteratorBase

Each subtype of S2ShapeIndex should define an Iterator type derived from the following base class.

newIterator
IteratorBase newIterator(InitialPosition pos)
Undocumented in source.

Meta