Public Member Functions | List of all members
lanelet::WeakLanelet Class Referencefinal

#include <Lanelet.h>

Inheritance diagram for lanelet::WeakLanelet:
Inheritance graph
[legend]

Public Member Functions

Lanelet lock () const
 Obtains the original Lanelet. More...
 
 WeakLanelet ()=default
 
 WeakLanelet (const Lanelet &llet)
 
- Public Member Functions inherited from lanelet::ConstWeakLanelet
 ConstWeakLanelet ()=default
 
 ConstWeakLanelet (const ConstLanelet &llet)
 
bool expired () const noexcept
 tests whether the WeakLanelet is still valid More...
 
ConstLanelet lock () const
 Obtains the original ConstLanelet. More...
 

Additional Inherited Members

- Public Types inherited from lanelet::ConstWeakLanelet
using ConstType = ConstWeakLanelet
 
using MutableType = WeakLanelet
 
using ThreeDType = ConstWeakLanelet
 
using TwoDType = ConstWeakLanelet
 
- Protected Attributes inherited from lanelet::ConstWeakLanelet
bool inverted_ {false}
 
std::weak_ptr< const LaneletDatalaneletData_
 

Detailed Description

Used internally by RegulatoryElements to avoid cyclic dependencies. Conceptually similar to a std::weak_ptr.

Definition at line 342 of file primitives/Lanelet.h.

Constructor & Destructor Documentation

◆ WeakLanelet() [1/2]

lanelet::WeakLanelet::WeakLanelet ( )
default

◆ WeakLanelet() [2/2]

lanelet::WeakLanelet::WeakLanelet ( const Lanelet llet)
inline

Definition at line 345 of file primitives/Lanelet.h.

Member Function Documentation

◆ lock()

Lanelet lanelet::WeakLanelet::lock ( ) const
inline

Obtains the original Lanelet.

Exceptions
NullptrErrorif the managed lanelet expired.

Definition at line 351 of file primitives/Lanelet.h.


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


lanelet2_core
Author(s): Fabian Poggenhans
autogenerated on Thu Mar 6 2025 03:25:53