#include <traffic_light.hpp>
|
static auto | make (const std::string &name) -> Color |
|
|
static const std::unordered_map< std::string, Value > | table |
|
◆ Value
Enumerator |
---|
green | |
yellow | |
red | |
white | |
◆ Color() [1/2]
constexpr traffic_simulator::TrafficLight::Color::Color |
( |
const Value |
value = green | ) |
|
|
inlineconstexpr |
◆ Color() [2/2]
traffic_simulator::TrafficLight::Color::Color |
( |
const std::string & |
name | ) |
|
|
inline |
◆ is()
constexpr auto traffic_simulator::TrafficLight::Color::is |
( |
const Color |
given | ) |
const |
|
inlineconstexpr |
◆ make()
auto traffic_simulator::TrafficLight::Color::make |
( |
const std::string & |
name | ) |
-> Color |
|
static |
◆ operator Value()
constexpr traffic_simulator::TrafficLight::Color::operator Value |
( |
| ) |
const |
|
inlineconstexprnoexcept |
◆ operator<<
auto operator<< |
( |
std::ostream & |
os, |
|
|
const Color & |
color |
|
) |
| -> std::ostream & |
|
friend |
◆ operator>>
◆ table
const std::unordered_map<std::string, Value> traffic_simulator::TrafficLight::Color::table |
|
inlinestatic |
Initial value:{
std::make_pair(
"amber",
yellow),
std::make_pair(
"green",
green),
std::make_pair(
"red",
red),
std::make_pair(
"white",
white),
std::make_pair(
"yellow",
yellow),
std::make_pair(
"Green",
green),
std::make_pair(
"Red",
red),
std::make_pair(
"Yellow",
yellow),
}
@ white
Definition: traffic_light.hpp:47
@ green
Definition: traffic_light.hpp:44
@ red
Definition: traffic_light.hpp:46
@ yellow
Definition: traffic_light.hpp:45
◆ value
The documentation for this struct was generated from the following files: