#include <traffic_light.hpp>
|
static auto | make (const std::string &name) -> Status |
|
|
static const std::unordered_map< std::string, Value > | table |
|
◆ Value
enum traffic_simulator::TrafficLight::Status::Value : std::uint8_t |
Enumerator |
---|
solid_on | |
solid_off | |
flashing | |
unknown | |
◆ Status() [1/2]
◆ Status() [2/2]
◆ is()
constexpr auto traffic_simulator::TrafficLight::Status::is |
( |
const Value |
given | ) |
const |
|
inlineconstexpr |
◆ make()
auto traffic_simulator::TrafficLight::Status::make |
( |
const std::string & |
name | ) |
-> Status |
|
static |
◆ operator bool()
constexpr traffic_simulator::TrafficLight::Status::operator bool |
( |
| ) |
const |
|
inlineconstexpr |
◆ operator Value()
constexpr traffic_simulator::TrafficLight::Status::operator Value |
( |
| ) |
const |
|
inlineconstexprnoexcept |
◆ operator<<
auto operator<< |
( |
std::ostream & |
os, |
|
|
const Status & |
status |
|
) |
| -> std::ostream & |
|
friend |
◆ operator>>
◆ table
const std::unordered_map<std::string, Value> traffic_simulator::TrafficLight::Status::table |
|
inlinestatic |
Initial value:{
std::make_pair(
"unknown",
unknown),
}
@ solid_off
Definition: traffic_light.hpp:91
@ unknown
Definition: traffic_light.hpp:93
@ solid_on
Definition: traffic_light.hpp:90
@ flashing
Definition: traffic_light.hpp:92
◆ value
The documentation for this struct was generated from the following files: