Class Inconsistencies

Nested Relationships

Nested Types

Class Documentation

class Inconsistencies

An Inconsistency occurs when one or more ItineraryVersion values get skipped by the inputs into the database. This container expresses the ranges of which ItineraryVersions were skipped for a single Participant.

Iterators

Public Types

template<typename E, typename I, typename F>
using base_iter = rmf_traffic::detail::forward_iterator<E, I, F>
using const_iterator = base_iter<const Element, IterImpl, Inconsistencies>

Public Functions

const_iterator begin() const

Get the beginning iterator.

const_iterator cbegin() const

Explicitly const-qualified alternative for begin()

const_iterator end() const

Get the one-past-the-end iterator.

const_iterator cend() const

Explicitly const-qualified alternative for end()

const_iterator find(ParticipantId id) const

Get the iterator for this ParticipantId.

std::size_t size() const

Get the number of participants with inconsistencies.

struct Element

An element of the Inconsistencies container. This tells the ranges of inconsistencies that are present for the specified Participant.

Public Members

ParticipantId participant
Ranges ranges
class Ranges

A container of the ranges of inconsistencies for a single participant.

Public Types

using const_iterator = base_iter<const Range, IterImpl, Ranges>

Public Functions

const_iterator begin() const

Get the beginning iterator.

const_iterator cbegin() const

Explicitly const-qualified alternative for begin()

const_iterator end() const

Get the one-past-the-end iterator.

const_iterator cend() const

Explicitly const-qualified alternative for end()

std::size_t size() const

Get the number of ranges in this container.

ItineraryVersion last_known_version() const

Get the value of the last itinerary version that has been received.

struct Range

A single range of inconsistencies within a participant.

Every version between (and including) the lower and upper versions have not been received by the Database.

Public Members

ItineraryVersion lower
ItineraryVersion upper