|
maliput
|
Defines a discrete value for a DiscreteValueRule.
#include <include/maliput/api/rules/discrete_value_rule.h>
Public Member Functions | |
| MALIPUT_DEFAULT_COPY_AND_MOVE_AND_ASSIGN (DiscreteValue) | |
| DiscreteValue ()=default | |
| Default constructor. More... | |
| DiscreteValue (int severity, RelatedRules related_rules, RelatedUniqueIds related_unique_ids, std::string value) | |
| Creates a Rule::State. More... | |
| bool | operator== (const DiscreteValue &other) const |
| bool | operator!= (const DiscreteValue &other) const |
Public Member Functions inherited from Rule::State | |
| MALIPUT_DEFAULT_COPY_AND_MOVE_AND_ASSIGN (State) | |
| State ()=default | |
| Default constructor. More... | |
| State (int severity, RelatedRules related_rules, RelatedUniqueIds related_unique_ids) | |
| Creates a Rule::State. More... | |
| bool | operator== (const State &other) const |
| bool | operator!= (const State &other) const |
Public Attributes | |
| std::string | value |
| Value of the DiscreteValue. More... | |
Public Attributes inherited from Rule::State | |
| int | severity {} |
| Severity of the Rule::State. More... | |
| RelatedRules | related_rules |
| RelatedUniqueIds | related_unique_ids |
Additional Inherited Members | |
Static Public Attributes inherited from Rule::State | |
| static constexpr int | kStrict {0} |
| Defines common Rule severity levels. More... | |
| static constexpr int | kBestEffort {1} |
| Rule should be obeyed on a best-effort basis. More... | |
|
default |
Default constructor.
| DiscreteValue | ( | int | severity, |
| RelatedRules | related_rules, | ||
| RelatedUniqueIds | related_unique_ids, | ||
| std::string | value | ||
| ) |
Creates a Rule::State.
| severity | A non-negative quantity that specifies the level of enforcement. The smaller it is, the more strictly the rule is enforced. |
| related_rules | Contains groups of related rules. |
| related_unique_ids | Contains groups of related unique ids. |
| value | Is the discrete value contained in the rule. |
| MALIPUT_DEFAULT_COPY_AND_MOVE_AND_ASSIGN | ( | DiscreteValue | ) |
| bool operator!= | ( | const DiscreteValue & | other | ) | const |
| bool operator== | ( | const DiscreteValue & | other | ) | const |
| std::string value |
Value of the DiscreteValue.