faudes::TimeInterval Class Reference Model of a time interval. More...
Detailed DescriptionModel of a time interval. An interval consisits of a lower and upper bound, plus flags to indicate whether the bounds are inclusive or not. The maximum and minimum values of the time data tyle are interpreted as infinity. Definition at line 86 of file tp_timeinterval.h. Constructor & Destructor Documentation
Default constructor - sets time interval to (-inf; +inf) Definition at line 93 of file tp_timeinterval.h.
Default destructor. Definition at line 98 of file tp_timeinterval.h. Member Function Documentation
Convert to canonical representation. Uses tpTime::Step to convert to aleft closed / right opened representation Definition at line 16 of file tp_timeinterval.cpp.
Test interval for empty set.
Definition at line 30 of file tp_timeinterval.cpp.
Test whether interval is full.
Definition at line 250 of file tp_timeinterval.h.
Test whether a point satisfies interval.
Definition at line 40 of file tp_timeinterval.cpp.
Test whether interval includes (-inf,0].
Definition at line 275 of file tp_timeinterval.h.
Test whether interval includes [0,inf)
Definition at line 266 of file tp_timeinterval.h.
Intersect this interval with other interval.
Definition at line 85 of file tp_timeinterval.cpp.
Intersection of two time intervals.
Definition at line 114 of file tp_timeinterval.cpp.
Set the lower bound to a given value. If the value is minus infinity, it is set exclusive. Otherwise, the exclusive/inclusive flag is kept.
Definition at line 108 of file tp_timeinterval.h.
Configures the lower bound to be inclusive. If the lower bound is minus infinity, it stays exclusive.
Definition at line 150 of file tp_timeinterval.h.
Test for lower bound inclusive.
Definition at line 187 of file tp_timeinterval.h.
Test for lower bound infinity.
Definition at line 201 of file tp_timeinterval.h.
Merge this interval with other interval. I.e. find smallest superset of the union of the two intervals.
Definition at line 125 of file tp_timeinterval.cpp.
Merge this interval with other interval. I.e. find smallest superset of the union of the two intervals.
Definition at line 147 of file tp_timeinterval.cpp.
Test whether two intervals not equal. Note that the test is strictly based on the internal representation, ie [0,10] is not equal to [0,11). This may change in future implementations to consider the tpTime::TypeStep
Definition at line 314 of file tp_timeinterval.h.
Test whether two intervals are equal. Note that the test is strictly based on the internal representation, ie [0,10] is not equal to [0,11). This may change in future implementations to consider the tpTime::TypeStep
Definition at line 296 of file tp_timeinterval.h.
Transform by left shift and intersection with [0, inf)
Definition at line 49 of file tp_timeinterval.cpp.
Set to empty (1, -1) Definition at line 228 of file tp_timeinterval.h.
Set to full (-inf, +inf) Definition at line 222 of file tp_timeinterval.h.
Set lower bound to infinity. Definition at line 165 of file tp_timeinterval.h.
Set to negative (-inf, 0]. Definition at line 241 of file tp_timeinterval.h.
Set to positive [0, inf) Definition at line 234 of file tp_timeinterval.h.
Set upper bound to infinity. Definition at line 159 of file tp_timeinterval.h.
Pretty printable string.
Definition at line 59 of file tp_timeinterval.cpp.
Set the upper bound to a given value. If the value is infinity, it is set exclusive. Otherwise, the exclusive/inclusive flag is kept.
Definition at line 124 of file tp_timeinterval.h.
Configures the upper bound to be inclusive. If the upper bound is infinity, it stays exclusive.
Definition at line 138 of file tp_timeinterval.h.
Test for upper bound inclusive.
Definition at line 194 of file tp_timeinterval.h.
Test for upper bound infinity.
Definition at line 208 of file tp_timeinterval.h. Member Data Documentation
Flag to indicate that lower boundary is part of the interval. Definition at line 390 of file tp_timeinterval.h.
Flag to indicate that the upper bound is part of the interval. Definition at line 387 of file tp_timeinterval.h.
Lower bound. Definition at line 384 of file tp_timeinterval.h.
Upper bound. Definition at line 381 of file tp_timeinterval.h. The documentation for this class was generated from the following files: libFAUDES 2.24g --- 2014.09.15 --- c++ api documentaion by doxygen |