ad_map_access
Public Types | Public Member Functions | Friends | List of all members
ad::map::access::Store Class Reference

Autonomus Driving Map Store. More...

#include <ad/map/access/Store.hpp>

Public Types

typedef std::shared_ptr< StorePtr
 Smart pointer to the Store.
 

Public Member Functions

 Store ()
 Constructor. Initializes empty Store.
 
 Store (Store const &other)=delete
 Copy constructor.
 
 Store (Store &&other)=delete
 Move constructor.
 
Storeoperator= (Store const &other)=delete
 Copy operator deleted.
 
Storeoperator= (Store &&other)=delete
 Move operator deleted.
 
virtual ~Store ()
 Destructor. Releases all resources.
 
bool save (serialize::ISerializer &serializer, bool use_magic=true, bool use_embedded_geometry=true, bool use_geometry_store=false)
 Save current AD Map Data Store. More...
 
bool load (serialize::ISerializer &serializer)
 Load data into the AD Map Data Store. More...
 
bool empty () const
 
const MapMetaDatagetMetaData () const
 
PartitionIdList getPartitions () const
 
lane::Lane::ConstPtr getLanePtr (lane::LaneId const &id) const
 Method to be called to retrieve Lane from the Store. More...
 
lane::LaneIdList getLanes () const
 Method to be called to retrieve identifiers of all Lanes in the Store. More...
 
lane::LaneIdList getLanes (PartitionId const &partition_id) const
 Retrieve identifiers of all Lanes belonging to specific partition. More...
 
lane::LaneIdList getLanes (std::string const &type_filter, bool is_hov) const
 Method to be called to retrieve identifiers of filtered Lanes in the Store. More...
 
lane::LaneIdList getLanes (PartitionId partition_id, std::string const &type_filter, bool is_hov) const
 Method to be called to retrieve identifiers of filtered Lanes from partition. More...
 
landmark::LandmarkIdList getLandmarks (PartitionId partition_id) const
 Retrieve identifiers of all Landmarks belonging to specific partition. More...
 
landmark::Landmark::ConstPtr getLandmarkPtr (landmark::LandmarkId id) const
 Method to be called to retrieve Landmark from the Store. More...
 
landmark::LandmarkIdList getLandmarks () const
 Method to be called to retrieve identifiers of all Landmarks in the Store. More...
 
void removePartition (PartitionId partition_id)
 Method to be called to remove all content belonging to specific partition and the partition itself. More...
 
physics::Distance getCumulativeLaneLength () const
 Calculates cumulative length of the all lanes in the store. More...
 
bool isValid () const
 
point::BoundingSphere getBoundingSphere () const
 

Friends

class Factory
 
class match::AdMapMatching
 

Detailed Description

Autonomus Driving Map Store.

Member Function Documentation

◆ empty()

bool ad::map::access::Store::empty ( ) const
Returns
true if there are no data in the store.

◆ getBoundingSphere()

point::BoundingSphere ad::map::access::Store::getBoundingSphere ( ) const
Returns
The calculated bounding sphere of all lanes in the store.

◆ getCumulativeLaneLength()

physics::Distance ad::map::access::Store::getCumulativeLaneLength ( ) const

Calculates cumulative length of the all lanes in the store.

Returns
Cumulative length of all lanes in the store.

◆ getLandmarkPtr()

landmark::Landmark::ConstPtr ad::map::access::Store::getLandmarkPtr ( landmark::LandmarkId  id) const

Method to be called to retrieve Landmark from the Store.

Parameters
[in]idLandmark identifier.
Returns
Landmark with given identifier. Returned object may be empty if id is not valid or if Landmark does not exists in the store.

◆ getLandmarks() [1/2]

landmark::LandmarkIdList ad::map::access::Store::getLandmarks ( ) const

Method to be called to retrieve identifiers of all Landmarks in the Store.

Returns
Identifiers of all landmarks in the store.

◆ getLandmarks() [2/2]

landmark::LandmarkIdList ad::map::access::Store::getLandmarks ( PartitionId  partition_id) const

Retrieve identifiers of all Landmarks belonging to specific partition.

Parameters
[in]partition_idPartition identifier.
Returns
Identifiers of all lanes in the store.

◆ getLanePtr()

lane::Lane::ConstPtr ad::map::access::Store::getLanePtr ( lane::LaneId const &  id) const

Method to be called to retrieve Lane from the Store.

Parameters
[in]idLane identifier.
Returns
Lane with given identifier. Returned object may be empty if id is not valid or if Lane does not exists in the store.

◆ getLanes() [1/4]

lane::LaneIdList ad::map::access::Store::getLanes ( ) const

Method to be called to retrieve identifiers of all Lanes in the Store.

Returns
Identifiers of all lanes in the store.

◆ getLanes() [2/4]

lane::LaneIdList ad::map::access::Store::getLanes ( PartitionId const &  partition_id) const

Retrieve identifiers of all Lanes belonging to specific partition.

Parameters
[in]partition_idPartition identifier.
Returns
Identifiers of all lanes in the store.

◆ getLanes() [3/4]

lane::LaneIdList ad::map::access::Store::getLanes ( PartitionId  partition_id,
std::string const &  type_filter,
bool  is_hov 
) const

Method to be called to retrieve identifiers of filtered Lanes from partition.

Parameters
[in]partition_idPartition identifier.
[in]type_filterType of the lane as string.
[in]is_hovTrue if only lanes with HOV restriction shall be returned.
Returns
Identifiers of all lanes in the tile that satisfy given conditions.

◆ getLanes() [4/4]

lane::LaneIdList ad::map::access::Store::getLanes ( std::string const &  type_filter,
bool  is_hov 
) const

Method to be called to retrieve identifiers of filtered Lanes in the Store.

Parameters
[in]type_filterType of the lane as string.
[in]is_hovTrue if only lanes with HOV restriction shall be returned.
Returns
Identifiers of all lanes in the store that satisfy given conditions.

◆ getMetaData()

const MapMetaData& ad::map::access::Store::getMetaData ( ) const
Returns
MetaData of the map.

◆ getPartitions()

PartitionIdList ad::map::access::Store::getPartitions ( ) const
Returns
Partitions currently present in the map.

◆ load()

bool ad::map::access::Store::load ( serialize::ISerializer serializer)

Load data into the AD Map Data Store.

Parameters
[in]serializerSerializer to be used.
Returns
true if successful.

◆ removePartition()

void ad::map::access::Store::removePartition ( PartitionId  partition_id)

Method to be called to remove all content belonging to specific partition and the partition itself.

Parameters
[in]partition_idPartition identifier.

◆ save()

bool ad::map::access::Store::save ( serialize::ISerializer serializer,
bool  use_magic = true,
bool  use_embedded_geometry = true,
bool  use_geometry_store = false 
)

Save current AD Map Data Store.

Parameters
[in]serializerSerializer to be used.
[in]use_magicUse Magic Numbers for consistency during serialization.
[in]use_embedded_geometrySave geometry together with objects.
[in]use_geometry_storeSave geometry in separate section of file.
Returns
true if successful.

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