Library
Module
Module type
Parameter
Class
Class type
The operations in the submodule Unsafe
are deemed unsafe because they expose unstable information, that is, information that will become out of date when further operations are performed. This unstable information includes a point's current tag, predecessor, and successor, as well as a region's current sequence of points. Unsafe operations can be useful in some situations (e.g., when debugging).
val tag : point -> int
tag p
is the current (internal) integer tag of the point p
. This tag lies in the semi-open interval [0, capacity)
.
prev p
returns the current predecessor of the point p
in the total order, if there is one.
next p
returns the current successor of the point p
in the total order, if there is one.
first r
returns the smallest point that currently inhabits the region r
, if there is one.
last r
returns the greatest point that currently inhabits the region r
, if there is one.
val cardinal : region -> int
cardinal r
returns the number of points that currently exist in the region r
. Invalidated points are not counted.