meos::TimestampSet class

Set of one or more time_point objects.

Constructors, destructors, conversion operators

TimestampSet()
TimestampSet(std::set<time_point>& timestamps)
TimestampSet(std::set<std::string>& timestamps)
TimestampSet(std::string const& serialized)

Public functions

auto periods() const -> std::set<Period>
auto period() const -> Period
auto numPeriods() const -> size_t
auto startPeriod() const -> Period
auto endPeriod() const -> Period
auto periodN(size_t n) const -> Period
auto timespan() const -> duration_ms
auto shift(duration_ms const timedelta) const -> std::unique_ptr<TimestampSet>
auto timestamps() const -> std::set<time_point>
auto numTimestamps() const -> size_t
auto startTimestamp() const -> time_point
auto endTimestamp() const -> time_point
auto timestampN(size_t n) const -> time_point

Protected variables

std::set<time_point> m_timestamps

Friends

auto operator==(TimestampSet const& lhs, TimestampSet const& rhs) -> bool
auto operator!=(TimestampSet const& lhs, TimestampSet const& rhs) -> bool
auto operator<(TimestampSet const& lhs, TimestampSet const& rhs) -> bool
auto operator>(TimestampSet const& lhs, TimestampSet const& rhs) -> bool
auto operator>=(TimestampSet const& lhs, TimestampSet const& rhs) -> bool
auto operator<=(TimestampSet const& lhs, TimestampSet const& rhs) -> bool
auto operator>>(std::istream& in, TimestampSet& timestamp_set) -> std::istream&
auto operator<<(std::ostream& os, TimestampSet const& timestamp_set) -> std::ostream&