maliput
|
Uniquely identifies a bulb group in the Inertial
space.
This consists of the concatenation of the ID of the bulb group, and the ID of the traffic light that contains the bulb group.
String representation of this ID is: "`traffic_light_id().string()`-`bulb_group_id.string()`"
#include <include/maliput/api/rules/traffic_lights.h>
Public Member Functions | |
UniqueBulbGroupId () | |
A default constructor. More... | |
UniqueBulbGroupId (const TrafficLight::Id &traffic_light_id, const BulbGroup::Id &bulb_group_id) | |
Constructs a UniqueBulbGroupId. More... | |
bool | operator== (const UniqueBulbGroupId &rhs) const |
Tests for equality with another UniqueBulbGroupId. More... | |
bool | operator!= (const UniqueBulbGroupId &rhs) const |
Tests for inequality with another UniqueBulbGroupId, specifically returning the opposite of operator==(). More... | |
TrafficLight::Id | traffic_light_id () const |
BulbGroup::Id | bulb_group_id () const |
![]() | |
MALIPUT_DEFAULT_COPY_AND_MOVE_AND_ASSIGN (UniqueId) | |
UniqueId (const std::string &string) | |
Constructs a UniqueId from the given string . More... | |
const std::string & | string () const |
Returns the string representation of the UniqueId. More... | |
bool | operator== (const UniqueId &rhs) const |
Tests for equality with another UniqueId. More... | |
bool | operator!= (const UniqueId &rhs) const |
Tests for inequality with another UniqueId, specifically returning the opposite of operator==(). More... | |
Static Public Member Functions | |
static const std::string | delimiter () |
Returns "-", the string delimiter to separate IDs. More... | |
Friends | |
template<class HashAlgorithm > | |
void | hash_append (HashAlgorithm &hasher, const UniqueBulbGroupId &id) noexcept |
Implements the hash_append concept. More... | |
A default constructor.
This was originally intended for use by boost::python bindings in downstream projects.
UniqueBulbGroupId | ( | const TrafficLight::Id & | traffic_light_id, |
const BulbGroup::Id & | bulb_group_id | ||
) |
Constructs a UniqueBulbGroupId.
BulbGroup::Id bulb_group_id | ( | ) | const |
|
static |
Returns "-", the string delimiter to separate IDs.
bool operator!= | ( | const UniqueBulbGroupId & | rhs | ) | const |
Tests for inequality with another UniqueBulbGroupId, specifically returning the opposite of operator==().
bool operator== | ( | const UniqueBulbGroupId & | rhs | ) | const |
Tests for equality with another UniqueBulbGroupId.
TrafficLight::Id traffic_light_id | ( | ) | const |
|
friend |
Implements the hash_append concept.