Lines Matching refs:TP

92 struct Interval(TP)
111 this(U)(in TP begin, in U end) pure
112 if (is(Unqual!TP == Unqual!U))
116 _begin = cast(TP) begin;
117 _end = cast(TP) end;
136 this(D)(in TP begin, in D duration) pure
139 _begin = cast(TP) begin;
152 _begin = cast(TP) rhs._begin;
153 _end = cast(TP) rhs._end;
164 _begin = cast(TP) rhs._begin;
165 _end = cast(TP) rhs._end;
179 @property TP begin() const pure nothrow
181 return cast(TP) _begin;
195 @property void begin(TP timePoint) pure
212 @property TP end() const pure nothrow
214 return cast(TP) _end;
228 @property void end(TP timePoint) pure
287 bool contains(in TP timePoint) const pure
346 bool contains(in PosInfInterval!TP interval) const pure
373 bool contains(in NegInfInterval!TP interval) const pure
403 bool isBefore(in TP timePoint) const pure
461 bool isBefore(in PosInfInterval!TP interval) const pure
488 bool isBefore(in NegInfInterval!TP interval) const pure
518 bool isAfter(in TP timePoint) const pure
576 bool isAfter(in PosInfInterval!TP interval) const pure
600 bool isAfter(in NegInfInterval!TP interval) const pure
656 bool intersects(in PosInfInterval!TP interval) const pure
682 bool intersects(in NegInfInterval!TP interval) const pure
745 Interval intersection(in PosInfInterval!TP interval) const
777 Interval intersection(in NegInfInterval!TP interval) const
839 bool isAdjacent(in PosInfInterval!TP interval) const pure
866 bool isAdjacent(in NegInfInterval!TP interval) const pure
929 PosInfInterval!TP merge(in PosInfInterval!TP interval) const
936 return PosInfInterval!TP(_begin < interval._begin ? _begin : interval._begin);
961 NegInfInterval!TP merge(in NegInfInterval!TP interval) const
968 return NegInfInterval!TP(_end > interval._end ? _end : interval._end);
1030 PosInfInterval!TP span(in PosInfInterval!TP interval) const pure
1033 return PosInfInterval!TP(_begin < interval._begin ? _begin : interval._begin);
1060 NegInfInterval!TP span(in NegInfInterval!TP interval) const pure
1063 return NegInfInterval!TP(_end > interval._end ? _end : interval._end);
1407 IntervalRange!(TP, Direction.fwd) fwdRange(TP delegate(in TP) func, PopFirst popFirst = PopFirst.no) const
1411 auto range = IntervalRange!(TP, Direction.fwd)(this, func);
1501 IntervalRange!(TP, Direction.bwd) bwdRange(TP delegate(in TP) func, PopFirst popFirst = PopFirst.no) const
1505 auto range = IntervalRange!(TP, Direction.bwd)(this, func);
1573 static bool _valid(in TP begin, in TP end) pure nothrow
1585 TP _begin;
1586 TP _end;
3136 struct PosInfInterval(TP)
3149 this(in TP begin) pure nothrow
3151 _begin = cast(TP) begin;
3161 _begin = cast(TP) rhs._begin;
3172 _begin = cast(TP) rhs._begin;
3185 @property TP begin() const pure nothrow
3187 return cast(TP)_begin;
3197 @property void begin(TP timePoint) pure nothrow
3226 bool contains(TP timePoint) const pure nothrow
3254 bool contains(in Interval!TP interval) const pure
3297 bool contains(in NegInfInterval!TP interval) const pure nothrow
3319 bool isBefore(in TP timePoint) const pure nothrow
3349 bool isBefore(in Interval!TP interval) const pure
3397 bool isBefore(in NegInfInterval!TP interval) const pure nothrow
3416 bool isAfter(in TP timePoint) const pure nothrow
3445 bool isAfter(in Interval!TP interval) const pure
3493 bool isAfter(in NegInfInterval!TP interval) const pure nothrow
3521 bool intersects(in Interval!TP interval) const pure
3569 bool intersects(in NegInfInterval!TP interval) const pure nothrow
3596 Interval!TP intersection(in Interval!TP interval) const
3605 return Interval!TP(begin, interval._end);
3653 Interval!TP intersection(in NegInfInterval!TP interval) const
3660 return Interval!TP(_begin, interval._end);
3684 bool isAdjacent(in Interval!TP interval) const pure
3732 bool isAdjacent(in NegInfInterval!TP interval) const pure nothrow
3766 PosInfInterval merge(in Interval!TP interval) const
3840 PosInfInterval span(in Interval!TP interval) const pure
4101 PosInfIntervalRange!(TP) fwdRange(TP delegate(in TP) func, PopFirst popFirst = PopFirst.no) const
4103 auto range = PosInfIntervalRange!(TP)(this, func);
4151 TP _begin;
5346 struct NegInfInterval(TP)
5359 this(in TP end) pure nothrow
5361 _end = cast(TP) end;
5371 _end = cast(TP) rhs._end;
5382 _end = cast(TP) rhs._end;
5395 @property TP end() const pure nothrow
5397 return cast(TP)_end;
5407 @property void end(TP timePoint) pure nothrow
5437 bool contains(TP timePoint) const pure nothrow
5465 bool contains(in Interval!TP interval) const pure
5487 bool contains(in PosInfInterval!TP interval) const pure nothrow
5528 bool isBefore(in TP timePoint) const pure nothrow
5557 bool isBefore(in Interval!TP interval) const pure
5580 bool isBefore(in PosInfInterval!TP interval) const pure nothrow
5629 bool isAfter(in TP timePoint) const pure nothrow
5662 bool isAfter(in Interval!TP interval) const pure
5688 bool isAfter(in PosInfInterval!TP interval) const pure nothrow
5741 bool intersects(in Interval!TP interval) const pure
5764 bool intersects(in PosInfInterval!TP interval) const pure nothrow
5788 bool intersects(in NegInfInterval!TP interval) const pure nothrow
5815 Interval!TP intersection(in Interval!TP interval) const
5824 return Interval!TP(interval._begin, end);
5849 Interval!TP intersection(in PosInfInterval!TP interval) const
5856 return Interval!TP(interval._begin, _end);
5909 bool isAdjacent(in Interval!TP interval) const pure
5932 bool isAdjacent(in PosInfInterval!TP interval) const pure nothrow
5990 NegInfInterval merge(in Interval!TP interval) const
6064 NegInfInterval span(in Interval!TP interval) const pure
6323 NegInfIntervalRange!(TP) bwdRange(TP delegate(in TP) func, PopFirst popFirst = PopFirst.no) const
6325 auto range = NegInfIntervalRange!(TP)(this, func);
6373 TP _end;
7586 TP delegate(in TP) everyDayOfWeek(TP, Direction dir = Direction.fwd)(DayOfWeek dayOfWeek) nothrow
7587 if (isTimePoint!TP &&
7589 __traits(hasMember, TP, "dayOfWeek") &&
7590 !__traits(isStaticFunction, TP.dayOfWeek) &&
7591 is(typeof(TP.dayOfWeek) == DayOfWeek))
7593 TP func(in TP tp)
7595 TP retval = cast(TP) tp;
7696 TP delegate(in TP) everyMonth(TP, Direction dir = Direction.fwd)(int month)
7697 if (isTimePoint!TP &&
7699 __traits(hasMember, TP, "month") &&
7700 !__traits(isStaticFunction, TP.month) &&
7701 is(typeof(TP.month) == Month))
7707 TP func(in TP tp)
7709 TP retval = cast(TP) tp;
7826 TP delegate(in TP) everyDuration(TP, Direction dir = Direction.fwd, D)(D duration) nothrow
7827 if (isTimePoint!TP &&
7828 __traits(compiles, TP.init + duration) &&
7831 TP func(in TP tp)
7931 TP delegate(in TP) everyDuration(TP, Direction dir = Direction.fwd, D)
7936 if (isTimePoint!TP &&
7937 __traits(compiles, TP.init + duration) &&
7938 __traits(compiles, TP.init.add!"years"(years)) &&
7939 __traits(compiles, TP.init.add!"months"(months)) &&
7942 TP func(in TP tp)
7946 TP retval = cast(TP) tp;
7955 TP retval = tp - duration;
8083 struct IntervalRange(TP, Direction dir)
8084 if (isTimePoint!TP && dir != Direction.both)
8122 @property TP front() const pure
8190 @property Interval!TP interval() const pure nothrow
8192 return cast(Interval!TP)_interval;
8199 TP delegate(in TP) func() pure nothrow @property
8222 this(in Interval!TP interval, TP delegate(in TP) func) pure nothrow
8246 void _enforceCorrectDirection(in TP newTP, size_t line = __LINE__) const
8271 Interval!TP _interval;
8272 TP delegate(in TP) _func;
8600 struct PosInfIntervalRange(TP)
8601 if (isTimePoint!TP)
8633 @property TP front() const pure nothrow
8667 @property PosInfInterval!TP interval() const pure nothrow
8669 return cast(PosInfInterval!TP)_interval;
8676 TP delegate(in TP) func() pure nothrow @property
8690 this(in PosInfInterval!TP interval, TP delegate(in TP) func) pure nothrow
8702 void _enforceCorrectDirection(in TP newTP, size_t line = __LINE__) const
8715 PosInfInterval!TP _interval;
8716 TP delegate(in TP) _func;
8883 struct NegInfIntervalRange(TP)
8884 if (isTimePoint!TP)
8917 @property TP front() const pure nothrow
8951 @property NegInfInterval!TP interval() const pure nothrow
8953 return cast(NegInfInterval!TP)_interval;
8960 TP delegate(in TP) func() pure nothrow @property
8974 this(in NegInfInterval!TP interval, TP delegate(in TP) func) pure nothrow
8986 void _enforceCorrectDirection(in TP newTP, size_t line = __LINE__) const
8999 NegInfInterval!TP _interval;
9000 TP delegate(in TP) _func;