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

used internally by RegulatoryElements to avoid cyclic dependencies. More...

#include <Area.h>

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

Public Member Functions

Area lock () const
 Obtains the original ConstArea. More...
 
 WeakArea ()=default
 
 WeakArea (Area llet)
 
- Public Member Functions inherited from lanelet::ConstWeakArea
 ConstWeakArea ()=default
 
 ConstWeakArea (ConstArea area)
 
bool expired () const noexcept
 tests whether the WeakArea is still valid More...
 
ConstArea lock () const
 Obtains the original ConstArea. More...
 

Additional Inherited Members

- Public Types inherited from lanelet::ConstWeakArea
using ConstType = ConstWeakArea
 
using MutableType = WeakArea
 
using ThreeDType = ConstWeakArea
 
using TwoDType = ConstWeakArea
 
- Protected Attributes inherited from lanelet::ConstWeakArea
std::weak_ptr< const AreaDataareaData_
 

Detailed Description

used internally by RegulatoryElements to avoid cyclic dependencies.

It works conceptually similar to a std::weak_ptr. This is the mutable version of a WeakArea.

Definition at line 300 of file primitives/Area.h.

Constructor & Destructor Documentation

◆ WeakArea() [1/2]

lanelet::WeakArea::WeakArea ( )
default

◆ WeakArea() [2/2]

lanelet::WeakArea::WeakArea ( Area  llet)
inline

Definition at line 303 of file primitives/Area.h.

Member Function Documentation

◆ lock()

Area lanelet::WeakArea::lock ( ) const
inline

Obtains the original ConstArea.

Exceptions
NullptrErrorif the managed lanelet expired.

Definition at line 309 of file primitives/Area.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