Region

A Region is a set of tagged intervals where differently tagged intervals are distinct.

Members

Aliases

includes
alias includes = opBinaryRight!"in"

Returns true iff point is in this region.

Functions

empty
bool empty()

Returns true iff the region is empty.

opBinary
Region opBinary(in Region other)
Region opBinary(in TaggedInterval other)

Computes the union of all tagged intervals.

opBinary
Region opBinary(in TaggedInterval other)

Computes the intersection of the two regions.

opBinary
Region opBinary(in Region other)

Computes the intersection of the two regions.

opBinaryRight
bool opBinaryRight(in TaggedPoint point)

Returns true iff point is in this region.

size
Number size()

Returns the size of this region.

Properties

intervals
const(TaggedInterval)[] intervals [@property getter]

Return a list of the tagged intervals in this region.

Structs

TaggedInterval
struct TaggedInterval

This is a right-open interval [begin, end) tagged with tag. If tagAlias is given then the tag may be access as a property of that name.

TaggedPoint
struct TaggedPoint

This represents a single tagged point.

Meta