dentist.util.region

Defines a Region and common operation with these. A Region is a set of tagged intervals where differently tagged intervals are distinct.

Members

Classes

EmptyRegionException
class EmptyRegionException

Thrown if regions is unexpectedly empty.

MismatchingTagsException
class MismatchingTagsException(Tag)

Thrown if two operands require the same tag but different were provided.

Functions

empty
bool empty(in T thing)

Returns true iff thing is empty

min
auto min(R region)
sup
auto sup(R region)

Returns the minimum/supremum point of the intervals. Both values are undefined for empty regions.

union_
auto union_(Range regions)

Returns the union of all elements.

Structs

Region
struct Region(Number, Tag, string tagAlias = null, Tag emptyTag = Tag.init)

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

Templates

TagType
template TagType(T)

Returns the type of the property tag of T.

isTaggable
template isTaggable(T)

Checks if T has a property tag implicitly convertible to Tag – if given.

Meta

License

Subject to the terms of the MIT license, as written in the included LICENSE file.

Authors

Arne Ludwig <arne.ludwig@posteo.de>