Defines a base state for a Rule.
#include <include/maliput/api/rules/rule.h>
◆ State() [1/2]
◆ State() [2/2]
Creates a Rule::State.
- Parameters
-
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. |
◆ MALIPUT_DEFAULT_COPY_AND_MOVE_AND_ASSIGN()
MALIPUT_DEFAULT_COPY_AND_MOVE_AND_ASSIGN |
( |
State |
| ) |
|
◆ operator!=()
bool operator!= |
( |
const State & |
other | ) |
const |
◆ operator==()
bool operator== |
( |
const State & |
other | ) |
const |
◆ kBestEffort
constexpr int kBestEffort {1} |
|
staticconstexpr |
Rule should be obeyed on a best-effort basis.
◆ kStrict
constexpr int kStrict {0} |
|
staticconstexpr |
Defines common Rule severity levels.
Specific rule types can choose to use these, or define their own custom levels. Rule must always be obeyed.
◆ related_rules
◆ related_unique_ids
◆ severity
Severity of the Rule::State.
A non-negative quantity that specifies the level of enforcement. The smaller it is, the more strictly the rule is enforced. Each rule type can define its own set of severity level semantics. See kStrict and kBestEffort for two commonly used severity levels.
The documentation for this struct was generated from the following files: