Class Spacetime::Regions

Nested Relationships

This class is a nested type of Class Query::Spacetime.

Class Documentation

class Regions

A container class for rmf_traffic::Region instances. Using Regions mode will query for Trajectories that intersect the specified regions.

Public Types

using iterator = base_iterator<Region, IterImpl, Regions>
using const_iterator = base_iterator<const Region, IterImpl, Regions>

Public Functions

void push_back(Region region)

Add a Region to this container.

void pop_back()

Remove the last Region that was added to this container.

iterator erase(iterator it)

Erase a Region based on its iterator.

iterator erase(iterator first, iterator last)

Erase a range of Regions based on their iterators.

iterator begin()

Get the beginning iterator of this container.

const_iterator begin() const

const-qualified begin()

const_iterator cbegin() const

Explicitly const-qualified alternative to begin()

iterator end()

Get the one-past-the-end iterator of this container.

const_iterator end() const

const-qualified end()

const_iterator cend() const

Explicitly const-qualified alternative to end()

std::size_t size() const

Get the number of Spacetime Region elements in this container.