|
knowrob
2.1.0
A Knowledge Base System for Cognition-enabled Robots
|
#include <TimeInterval.h>


Public Member Functions | |
| TimeInterval (const std::optional< TimePoint > &since, const std::optional< TimePoint > &until) | |
| bool | operator== (const TimeInterval &other) const |
| std::shared_ptr< TimeInterval > | intersectWith (const TimeInterval &other) const |
| const auto & | since () const |
| const auto & | until () const |
| void | write (std::ostream &os) const override |
| TimeInterval (const std::optional< TimePoint > &since, const std::optional< TimePoint > &until) | |
| bool | operator== (const TimeInterval &other) const |
| std::shared_ptr< TimeInterval > | intersectWith (const TimeInterval &other) const |
| const auto & | since () const |
| const auto & | until () const |
| void | write (std::ostream &os) const override |
Public Member Functions inherited from knowrob::Printable | |
| virtual | ~Printable ()=default |
| virtual std::string | format () const |
| virtual | ~Printable ()=default |
| virtual std::string | format () const |
Static Public Member Functions | |
| static const TimeInterval & | anytime () |
| static TimeInterval | currently () |
| static TimeInterval | during (const TimePoint &begin, const TimePoint &end) |
| static const TimeInterval & | anytime () |
| static TimeInterval | currently () |
| static TimeInterval | during (const TimePoint &begin, const TimePoint &end) |
Protected Attributes | |
| std::optional< TimePoint > | since_ |
| std::optional< TimePoint > | until_ |
A fuzzy time interval where start and end time point lie within a range.
Definition at line 19 of file TimeInterval.h.
| TimeInterval::TimeInterval | ( | const std::optional< TimePoint > & | since, |
| const std::optional< TimePoint > & | until | ||
| ) |
| since | the time point where the interval starts |
| until | the time point where the interval ends |
Definition at line 10 of file TimeInterval.cpp.
| knowrob::TimeInterval::TimeInterval | ( | const std::optional< TimePoint > & | since, |
| const std::optional< TimePoint > & | until | ||
| ) |
| since | the time point where the interval starts |
| until | the time point where the interval ends |
|
static |
Definition at line 18 of file TimeInterval.cpp.
|
static |
|
static |
Definition at line 23 of file TimeInterval.cpp.
|
static |
|
static |
| begin | the begin time point of the interval |
| end | the end time point of the interval |
Definition at line 28 of file TimeInterval.cpp.
|
static |
| begin | the begin time point of the interval |
| end | the end time point of the interval |
| std::shared_ptr< TimeInterval > TimeInterval::intersectWith | ( | const TimeInterval & | other | ) | const |
| std::shared_ptr<TimeInterval> knowrob::TimeInterval::intersectWith | ( | const TimeInterval & | other | ) | const |
Intersect this time interval with another one.
| other | another time interval. |
| bool TimeInterval::operator== | ( | const TimeInterval & | other | ) | const |
| bool knowrob::TimeInterval::operator== | ( | const TimeInterval & | other | ) | const |
| other | another time interval |
|
inline |
|
inline |
|
inline |
|
inline |
|
overridevirtual |
Print this object to a stream.
| os | the stream to print to. |
Implements knowrob::Printable.
Definition at line 36 of file TimeInterval.cpp.
|
overridevirtual |
|
protected |
Definition at line 70 of file TimeInterval.h.
|
protected |
Definition at line 71 of file TimeInterval.h.