Public Types | Public Member Functions | Protected Attributes | List of all members
lanelet::ConstWeakLanelet Class Reference

#include <Lanelet.h>

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

Public Types

using ConstType = ConstWeakLanelet
 
using MutableType = WeakLanelet
 
using ThreeDType = ConstWeakLanelet
 
using TwoDType = ConstWeakLanelet
 

Public Member Functions

 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...
 

Protected Attributes

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 316 of file primitives/Lanelet.h.

Member Typedef Documentation

◆ ConstType

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

◆ MutableType

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

◆ ThreeDType

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

◆ TwoDType

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

Constructor & Destructor Documentation

◆ ConstWeakLanelet() [1/2]

lanelet::ConstWeakLanelet::ConstWeakLanelet ( )
default

◆ ConstWeakLanelet() [2/2]

lanelet::ConstWeakLanelet::ConstWeakLanelet ( const ConstLanelet llet)
inline

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

Member Function Documentation

◆ expired()

bool lanelet::ConstWeakLanelet::expired ( ) const
inlinenoexcept

tests whether the WeakLanelet is still valid

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

◆ lock()

ConstLanelet lanelet::ConstWeakLanelet::lock ( ) const
inline

Obtains the original ConstLanelet.

Exceptions
NullptrErrorif the managed lanelet expired.

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

Member Data Documentation

◆ inverted_

bool lanelet::ConstWeakLanelet::inverted_ {false}
protected

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

◆ laneletData_

std::weak_ptr<const LaneletData> lanelet::ConstWeakLanelet::laneletData_
protected

Definition at line 336 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:52