Class GenericRegulatoryElement

Inheritance Relationships

Base Type

Class Documentation

class GenericRegulatoryElement : public lanelet::Primitive<RegulatoryElement>

A GenericRegulatoryElement can hold any parameters.

Public Functions

inline explicit GenericRegulatoryElement(const RegulatoryElementDataPtr &data)
inline explicit GenericRegulatoryElement(Id id = InvalId, const RuleParameterMap &parameters = RuleParameterMap(), const AttributeMap &attributes = AttributeMap())

Construct generically from id, parameters and attributes.

template<typename PrimitiveT>
void addParameter(const std::string &role, const PrimitiveT &primitive)

Add a (mutable) primitive to the regulatory element.

template<typename PrimitiveT>
void addParameter(RoleName role, const PrimitiveT &primitive)

Add a (mutable) primitive (RoleName version)

inline RuleParameterMap &parameters() noexcept

getter for all parameters of a regulatory element.

Public Static Attributes

static constexpr char RuleName[] = "regulatory_element"