The QualifiedTimeRange class provides a pair of qualified times that represent a range. This is used to specify a desired time range to the BasicQueryOptions class.
More...
#include <QualifiedTime.hh>
The QualifiedTimeRange class provides a pair of qualified times that represent a range. This is used to specify a desired time range to the BasicQueryOptions class.
◆ QualifiedTimeRange() [1/3]
Construct a time range.
- Parameters
-
[in] | _begin | The beginning of the time range. |
[in] | _end | The end of the time range. |
- See also
- From()
-
Until()
-
AllTime()
◆ QualifiedTimeRange() [2/3]
Copy constructor.
- Parameters
-
◆ QualifiedTimeRange() [3/3]
Default move constructor.
- Parameters
-
[in] | _old | the instance being moved into this one |
◆ ~QualifiedTimeRange()
◆ AllTime()
Construct a time range that has no beginning or end.
- Returns
- A time range that has no beginning or end.
◆ Beginning()
Get a reference to the start time of this range.
- Returns
- A reference to the start time.
◆ Ending()
Get a reference to the end time of this range.
- Returns
- A reference to the end time.
◆ From()
Construct a time range that begins at _begin and never ends.
- Parameters
-
[in] | _begin | The beginning of the time range. |
- Returns
- A time range that begins at _begin and never ends.
◆ operator!=()
Inequality operator.
- Parameters
-
- Returns
- Opposite of operator==(const QualifiedTimeRange &)
◆ operator=() [1/2]
Copy assignment operator.
- Parameters
-
- Returns
- Reference to this object
◆ operator=() [2/2]
Default move assignment.
- Returns
- Reference to this object
◆ operator==()
Equality operator.
- Parameters
-
- Returns
- true if the time ranges represented by each object are equivalent
◆ SetBeginning()
Set the start time of this range. Passing in an indeterminate QualifiedTime (its default constructor) will tell this range to have no beginning (effectively, it should start at the beginning of the log).
- Parameters
-
[in] | _begin | The start time of this range. |
- Returns
- True if the new range is valid. False if the range is now invalid. The _begin value will be accepted either way.
- See also
- SetRange()
-
Valid()
◆ SetEnding()
Set the finish time of this range. Passing in an indeterminate QualifiedTime (its default constructor) will tell this range to have no end (effectively, it should not stop until the end of the log).
- Parameters
-
[in] | _end | The finish time of this range. |
- Returns
- True if this new range is valid. False if the range is now invalid. The _end value will be accepted either way.
- See also
- SetRange()
-
Valid()
◆ SetRange()
Set both endpoints of the range.
- Parameters
-
[in] | _begin | The start time of this range. |
[in] | _end | The end time of this range. |
- Returns
- True if this new range is valid. False if the range is now invalid. The values for _begin and _end will be accepted either way.
- See also
- SetBeginning()
-
SetEnding()
-
Valid()
◆ Until()
Construct a time range that ends at _end and has no beginning.
- Parameters
-
[in] | _end | The end of the time range. |
- Returns
- A time range that ends at _end and has no beginning.
◆ Valid()
Check if the range is valid. A valid range means that the finish time is guaranteed to be later than or coincident with the start time.
- Returns
- True if the range is valid, false if invalid.
The documentation for this class was generated from the following file: