Public Member Functions | Static Public Attributes | Private Member Functions | Friends | List of all members
example::LightsOn Class Reference
Inheritance diagram for example::LightsOn:
Inheritance graph
[legend]

Public Member Functions

lanelet::ConstLineString3d fromWhere () const
 
- Public Member Functions inherited from lanelet::RegulatoryElement
void applyVisitor (RuleParameterVisitor &visitor) const
 
bool empty () const
 
Optional< ConstRuleParameterfind (Id id) const
 
boost::optional< ConstLaneletfind (Id id) const
 
Optional< T > find (Id id) const
 
boost::optional< ConstAreafind (Id id) const
 
ConstRuleParameterMap getParameters () const
 
std::vector< T > getParameters (const std::string &role) const
 
std::vector< ConstLaneletgetParameters (const std::string &role) const
 
std::vector< T > getParameters (RoleName role) const
 
std::vector< ConstLaneletgetParameters (RoleName role) const
 
std::vector< std::string > roles () const
 
void setId (Id id) noexcept
 
size_t size () const
 
virtual ~RegulatoryElement ()
 
- Public Member Functions inherited from ConstPrimitive< RegulatoryElementData >
const Attribute & attribute (AttributeName name) const
 
const Attribute & attribute (const std::string &name) const
 
attributeOr (AttributeName name, T defaultVal) const
 
attributeOr (const std::string &name, T defaultVal) const noexcept
 
const AttributeMapattributes () const
 
const std::shared_ptr< const RegulatoryElementData > & constData () const
 
 ConstPrimitive (const std::shared_ptr< const RegulatoryElementData > &data)
 
bool hasAttribute (AttributeName name) const noexcept
 
bool hasAttribute (const std::string &name) const noexcept
 
Id id () const noexcept
 
bool operator!= (const ConstPrimitive &rhs) const
 
bool operator== (const ConstPrimitive &rhs) const
 

Static Public Attributes

static constexpr char RuleName [] = "lights_on"
 
- Static Public Attributes inherited from lanelet::RegulatoryElement
static constexpr char RuleName []
 
- Static Public Attributes inherited from ConstPrimitive< RegulatoryElementData >
static constexpr bool IsConst
 

Private Member Functions

 LightsOn (const lanelet::RegulatoryElementDataPtr &data)
 
 LightsOn (lanelet::Id id, lanelet::LineString3d fromWhere)
 

Friends

class lanelet::RegisterRegulatoryElement< LightsOn >
 

Additional Inherited Members

- Public Types inherited from lanelet::RegulatoryElement
typedef traits::RegulatoryElementTag Category
 
typedef RuleParameterMap::const_iterator const_iterator
 
typedef RegulatoryElement ConstType
 
typedef RuleParameterMap::iterator iterator
 
typedef GenericRegulatoryElement MutableType
 
typedef RegulatoryElement ThreeDType
 
typedef RegulatoryElement TwoDType
 
- Public Types inherited from ConstPrimitive< RegulatoryElementData >
typedef RegulatoryElementData DataType
 
- Protected Member Functions inherited from lanelet::RegulatoryElement
void applyVisitor (internal::MutableParameterVisitor &visitor) const
 
const_iterator begin () const
 
RegulatoryElementDataPtr data ()
 
const_iterator end () const
 
std::vector< T > getParameters (RoleName role)
 
RuleParameterMapparameters ()
 
const RuleParameterMapparameters () const
 
 RegulatoryElement (const RegulatoryElementDataPtr &data)
 
 RegulatoryElement (Id id=InvalId, const RuleParameterMap &members=RuleParameterMap(), const AttributeMap &attributes=AttributeMap())
 
- Protected Member Functions inherited from ConstPrimitive< RegulatoryElementData >
 ConstPrimitive (const ConstPrimitive &rhs)=default
 
 ConstPrimitive (ConstPrimitive &&rhs) noexcept=default
 
ConstPrimitiveoperator= (const ConstPrimitive &rhs)=default
 
ConstPrimitiveoperator= (ConstPrimitive &&rhs) noexcept=default
 
 ~ConstPrimitive () noexcept=default
 

Detailed Description

Definition at line 89 of file 02_regulatory_elements/main.cpp.

Constructor & Destructor Documentation

◆ LightsOn() [1/2]

example::LightsOn::LightsOn ( lanelet::Id  id,
lanelet::LineString3d  fromWhere 
)
inlineprivate

Definition at line 100 of file 02_regulatory_elements/main.cpp.

◆ LightsOn() [2/2]

example::LightsOn::LightsOn ( const lanelet::RegulatoryElementDataPtr data)
inlineexplicitprivate

Definition at line 108 of file 02_regulatory_elements/main.cpp.

Member Function Documentation

◆ fromWhere()

lanelet::ConstLineString3d example::LightsOn::fromWhere ( ) const
inline

Definition at line 95 of file 02_regulatory_elements/main.cpp.

Friends And Related Function Documentation

◆ lanelet::RegisterRegulatoryElement< LightsOn >

Definition at line 107 of file 02_regulatory_elements/main.cpp.

Member Data Documentation

◆ RuleName

constexpr char example::LightsOn::RuleName = "lights_on"
staticconstexpr

Definition at line 92 of file 02_regulatory_elements/main.cpp.


The documentation for this class was generated from the following file:


lanelet2_examples
Author(s): Fabian Poggenhans
autogenerated on Thu Mar 6 2025 03:26:15