Class Spacetime::Timespan
Defined in File Query.hpp
Nested Relationships
This class is a nested type of Class Query::Spacetime.
Class Documentation
-
class Timespan
A class for specifying a timespan.
Public Functions
-
const std::unordered_set<std::string> &maps() const
Get the maps that will be queried.
-
Timespan &add_map(std::string map_name)
Add a map to the query.
-
Timespan &remove_map(const std::string &map_name)
Remove a map from the query.
-
Timespan &clear_maps()
Remove all maps from the query.
-
bool all_maps() const
Returns true if all maps should be queried. If true, the set of maps mentioned above will be ignored.
-
Timespan &all_maps(bool query_all_maps)
Set whether all maps should be queried. When true, the set of maps above will be ignored. When false, only the maps in the set above will be included in the query.
-
const Time *get_lower_time_bound() const
Get the lower bound for the time range.
If there is no lower bound for the time range, then this returns a nullptr.
-
Timespan &remove_lower_time_bound()
Remove the lower bound for the time range.
-
const Time *get_upper_time_bound() const
Get the upper bound for the time range.
If there is no upper bound for the time range, then this returns a nullptr.
-
Timespan &remove_upper_time_bound()
Remove the upper bound for the time range.
-
const std::unordered_set<std::string> &maps() const