Region.intervals

Return a list of the tagged intervals in this region.

struct Region(Number, Tag, string tagAlias = null, Tag emptyTag = Tag.init)
@property
intervals
const pure nothrow
(
)

Examples

1 alias R = Region!(int, int);
2 alias TI = R.TaggedInterval;
3 
4 R emptyRegion;
5 auto region1 = R(0, 5, 10);
6 auto region2 = R([TI(0, 5, 10), TI(0, 15, 20)]);
7 
8 assert(emptyRegion.intervals == []);
9 assert(region1.intervals == [TI(0, 5, 10)]);
10 assert(region2.intervals == [TI(0, 5, 10), TI(0, 15, 20)]);

Meta