gz/transport/log/QualifiedTime.hh
Go to the documentation of this file.
The QualifiedTimeRange class provides a pair of qualified times that represent a range....
Definition: gz/transport/log/QualifiedTime.hh:189
bool SetEnding(const QualifiedTime &_end)
Set the finish time of this range. Passing in an indeterminate QualifiedTime (its default constructor...
static QualifiedTimeRange AllTime()
Construct a time range that has no beginning or end.
QualifiedTimeRange(QualifiedTimeRange &&_old)
Default move constructor.
QualifiedTimeRange & operator=(QualifiedTimeRange &&)=default
Default move assignment.
static QualifiedTimeRange Until(const QualifiedTime &_end)
Construct a time range that ends at _end and has no beginning.
const QualifiedTime & Ending() const
Get a reference to the end time of this range.
QualifiedTimeRange(const QualifiedTimeRange &_other)
Copy constructor.
~QualifiedTimeRange()
Virtual destructor.
bool Valid() const
Check if the range is valid. A valid range means that the finish time is guaranteed to be later than ...
bool SetRange(const QualifiedTime &_begin, const QualifiedTime &_end)
Set both endpoints of the range.
static QualifiedTimeRange From(const QualifiedTime &_begin)
Construct a time range that begins at _begin and never ends.
const QualifiedTime & Beginning() const
Get a reference to the start time of this range.
QualifiedTimeRange & operator=(const QualifiedTimeRange &_other)
Copy assignment operator.
bool SetBeginning(const QualifiedTime &_begin)
Set the start time of this range. Passing in an indeterminate QualifiedTime (its default constructor)...
QualifiedTimeRange(const QualifiedTime &_begin, const QualifiedTime &_end)
Construct a time range.
bool operator!=(const QualifiedTimeRange &_other) const
Inequality operator.
bool operator==(const QualifiedTimeRange &_other) const
Equality operator.
Since time is continuous, it may be difficult to know the exact time stamp of a desired message....
Definition: gz/transport/log/QualifiedTime.hh:41
QualifiedTime(const QualifiedTime &_other)
Copy constructor.
QualifiedTime & operator=(QualifiedTime &&)=default
move assignment operator
QualifiedTime(const Time &_time, Qualifier _qualifier=Qualifier::INCLUSIVE)
Construct a qualified time specifier.
bool operator!=(const QualifiedTime &_other) const
Inequality operator.
const Qualifier * GetQualifier() const
Get the qualifier for this qualified time, unless the time is indeterminate.
bool operator==(const QualifiedTime &_other) const
Equality operator.
void SetTime(const Time &_time, Qualifier _qualifier=Qualifier::INCLUSIVE)
Set the time that this QualifiedTime object represents.
QualifiedTime & operator=(const QualifiedTime &_other)
Copy assignment operator.
QualifiedTime(const std::chrono::duration< Rep, Period > &_time, Qualifier _qualifier=Qualifier::INCLUSIVE)
Construct a qualified time specifier. This allows implicit conversion from any std::chrono::duration ...
Definition: gz/transport/log/QualifiedTime.hh:87
void Clear()
Set this QualifiedTime object to be indeterminate.
const Time * GetTime() const
Get the time stamp for this qualified time, unless the time is indeterminate.
bool IsIndeterminate() const
Indicates whether this QualifiedTime object is indeterminate.
Qualifier
The Qualifier determines the behavior of how a message is selected.
Definition: gz/transport/log/QualifiedTime.hh:45
QualifiedTime()
Default constructor. The time will be treated as indeterminate. This means that the QualifiedTime obj...
QualifiedTime(QualifiedTime &&_old)=default
move constructor
Definition: gz/transport/log/Batch.hh:28