dalicious.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

convexHull
auto convexHull(R region)

Returns the minimum/supremum point or convex hull of the intervals. Both minimum and supremum are undefined for empty regions but the convex hull is not.

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 or convex hull of the intervals. Both minimum and supremum are undefined for empty regions but the convex hull is not.

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>