Public Member Functions | Private Member Functions | Friends | List of all members
lanelet::AreaLayer Class Reference

Specialized map layer for Area. More...

#include <LaneletMap.h>

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

Public Member Functions

 AreaLayer ()=default
 
 AreaLayer (const AreaLayer &)=delete
 
Areas findUsages (const RegulatoryElementConstPtr &regElem)
 
ConstAreas findUsages (const RegulatoryElementConstPtr &regElem) const
 
AreaLayer operator= (AreaLayer &)=delete
 
 ~AreaLayer ()=default
 
- Public Member Functions inherited from lanelet::PrimitiveLayer< Area >
const_iterator begin () const
 iterator to beginning of the elements (not ordered by id!) More...
 
iterator begin ()
 iterator to beginning More...
 
bool empty () const
 returns whether this layer contains something More...
 
const_iterator end () const
 iterator to end of the elements More...
 
iterator end ()
 iterator to end More...
 
bool exists (Id id) const
 checks whether an element exists in this layer More...
 
const_iterator find (Id id) const
 find returns an iterator to an element if it exists More...
 
iterator find (Id id)
 non-const version of finding an element More...
 
std::vector< ConstPrimitiveTfindUsages (const traits::ConstPrimitiveType< traits::OwnedT< PrimitiveT >> &primitive) const
 finds usages of an owned type within this layer More...
 
std::vector< PrimitiveTfindUsages (const traits::ConstPrimitiveType< traits::OwnedT< PrimitiveT >> &primitive)
 finds usages of an owned type within this layer More...
 
ConstPrimitiveT get (Id id) const
 returns an element for this id if it exists More...
 
PrimitiveT get (Id id)
 returns an element for this id if it exists More...
 
ConstPrimitiveVec nearest (const BasicPoint2d &point, unsigned n) const
 search for the n nearest elements to a point More...
 
PrimitiveVec nearest (const BasicPoint2d &point, unsigned n)
 
ConstPrimitiveVec nearest (const Point2d &point, unsigned n) const
 
PrimitiveVec nearest (const Point2d &point, unsigned n)
 
OptConstPrimitiveT nearestUntil (const BasicPoint2d &point, const ConstSearchFunction &func) const
 repeatedly calls a user-defined predicate until it returns true. More...
 
OptPrimitiveT nearestUntil (const BasicPoint2d &point, const SearchFunction &func)
 
OptConstPrimitiveT nearestUntil (const ConstPoint2d &point, const ConstSearchFunction &func) const
 
OptPrimitiveT nearestUntil (const Point2d &point, const SearchFunction &func)
 
PrimitiveLayeroperator= (const PrimitiveLayer &rhs)=delete
 
 PrimitiveLayer (const PrimitiveLayer &rhs)=delete
 
 PrimitiveLayer (const PrimitiveLayer::Map &primitives)
 
 PrimitiveLayer (const PrimitiveLayer::Map &primitives)
 
ConstPrimitiveVec search (const BoundingBox2d &area) const
 searches for elements within a search area More...
 
PrimitiveVec search (const BoundingBox2d &area)
 
OptConstPrimitiveT searchUntil (const BoundingBox2d &area, const ConstSearchFunction &func) const
 searches within search area until a search function returns true. More...
 
OptPrimitiveT searchUntil (const BoundingBox2d &area, const SearchFunction &func)
 
size_t size () const
 returns number of elements in this layer More...
 
Id uniqueId () const
 returns a unique id. it is guaranteed that the id is not used within this layer More...
 

Private Member Functions

 AreaLayer (AreaLayer &&rhs) noexcept=default
 
AreaLayeroperator= (AreaLayer &&rhs) noexcept=default
 

Friends

class LaneletMap
 
class LaneletMapLayers
 
class LaneletSubmap
 

Additional Inherited Members

- Public Types inherited from lanelet::PrimitiveLayer< Area >
using const_iterator = internal::TransformIterator< typename Map::const_iterator, const ConstPrimitiveT, internal::PairConverter< const ConstPrimitiveT > >
 iterator that gives a const primitive, not a std::pair More...
 
using ConstPrimitiveT = traits::ConstPrimitiveType< Area >
 
using ConstPrimitiveVec = std::vector< ConstPrimitiveT >
 
using ConstSearchFunction = std::function< bool(const internal::SearchBoxT< Area > &box, const ConstPrimitiveT &prim)>
 
using iterator = internal::TransformIterator< typename Map::iterator, PrimitiveT, internal::PairConverter< PrimitiveT > >
 iterator that gives the primitive when dereferencing, not a std:pair More...
 
using Map = std::unordered_map< Id, Area >
 
using OptConstPrimitiveT = Optional< ConstPrimitiveT >
 
using OptPrimitiveT = Optional< PrimitiveT >
 
using PrimitiveT = Area
 
using PrimitiveVec = std::vector< PrimitiveT >
 
using SearchFunction = std::function< bool(const internal::SearchBoxT< Area > &box, const PrimitiveT &prim)>
 
- Protected Member Functions inherited from lanelet::PrimitiveLayer< Area >
void add (const PrimitiveT &element)
 
void add (const Area &area)
 
void add (const Lanelet &ll)
 
void add (const Point3d &p)
 
void add (const PrimitiveLayer< RegulatoryElementPtr >::PrimitiveT &element)
 
PrimitiveLayeroperator= (PrimitiveLayer &&rhs) noexcept
 
 PrimitiveLayer (const Map &primitives=Map())
 
 PrimitiveLayer (PrimitiveLayer &&rhs) noexcept
 
void remove (Id element)
 
 ~PrimitiveLayer () noexcept
 
- Protected Attributes inherited from lanelet::PrimitiveLayer< Area >
Map elements_
 the list of elements in this layer More...
 
std::unique_ptr< Tree > tree_
 Hides boost trees from you/the compiler. More...
 

Detailed Description

Specialized map layer for Area.

Definition at line 266 of file LaneletMap.h.

Constructor & Destructor Documentation

◆ AreaLayer() [1/3]

lanelet::AreaLayer::AreaLayer ( )
default

◆ ~AreaLayer()

lanelet::AreaLayer::~AreaLayer ( )
default

◆ AreaLayer() [2/3]

lanelet::AreaLayer::AreaLayer ( const AreaLayer )
delete

◆ AreaLayer() [3/3]

lanelet::AreaLayer::AreaLayer ( AreaLayer &&  rhs)
privatedefaultnoexcept

Member Function Documentation

◆ findUsages() [1/2]

Areas lanelet::AreaLayer::findUsages ( const RegulatoryElementConstPtr regElem)

Definition at line 443 of file LaneletMap.cpp.

◆ findUsages() [2/2]

ConstAreas lanelet::AreaLayer::findUsages ( const RegulatoryElementConstPtr regElem) const

Definition at line 448 of file LaneletMap.cpp.

◆ operator=() [1/2]

AreaLayer lanelet::AreaLayer::operator= ( AreaLayer )
delete

◆ operator=() [2/2]

AreaLayer& lanelet::AreaLayer::operator= ( AreaLayer &&  rhs)
privatedefaultnoexcept

Friends And Related Function Documentation

◆ LaneletMap

friend class LaneletMap
friend

Definition at line 277 of file LaneletMap.h.

◆ LaneletMapLayers

friend class LaneletMapLayers
friend

Definition at line 278 of file LaneletMap.h.

◆ LaneletSubmap

friend class LaneletSubmap
friend

Definition at line 279 of file LaneletMap.h.


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


lanelet2_core
Author(s): Fabian Poggenhans
autogenerated on Tue Jun 6 2023 02:23:32