1 #ifndef UTILITY_DEFINITION_META_STRUCTURE_H 2 #define UTILITY_DEFINITION_META_STRUCTURE_H 7 #include <fmt/format.h> 39 Time(
Time&& time) noexcept =
default;
60 [[nodiscard]]
double end()
const {
return end_; };
73 if (start_ != rhs.
start())
74 return start_ < rhs.
start();
75 return end_ < rhs.
end();
101 out <<
"[" << time.
start_ <<
", " << time.
end_ <<
"]";
106 #endif //UTILITY_DEFINITION_META_STRUCTURE_H Time()
constructor
Definition: metaStructure.h:27
struct used to hold the duration information
Definition: metaStructure.h:14
double range() const
get the range of the interval specified by duration
Definition: metaStructure.h:65
Time & operator=(const Time &time)=default
assignment operator
double end_
end of the duration
Definition: metaStructure.h:23
Time(const double &start, const double &end)
constructor with given start and end of the duration
Definition: metaStructure.h:45
Definition: condition.cpp:3
double start() const
get the start of the duration
Definition: metaStructure.h:55
double end() const
get the end of the duration
Definition: metaStructure.h:60
friend std::ostream & operator<<(std::ostream &out, const Time &time)
out the given right hand side duration to standard out stream
Definition: metaStructure.h:99
bool operator<(const Time &rhs) const
relational operator
Definition: metaStructure.h:71
~Time()=default
destructor
double start_
start of the duration
Definition: metaStructure.h:19