Classes | Public Member Functions | Static Private Member Functions | Private Attributes | List of all members
cartographer::mapping::MapById< IdType, DataType > Class Template Reference

#include <id.h>

Classes

class  ConstIterator
 
class  ConstTrajectoryIterator
 
struct  IdDataReference
 
struct  MapByIndex
 

Public Member Functions

IdType Append (const int trajectory_id, const DataType &data)
 
const DataType & at (const IdType &id) const
 
DataType & at (const IdType &id)
 
ConstIterator begin () const
 
ConstIterator BeginOfTrajectory (const int trajectory_id) const
 
bool Contains (const IdType &id) const
 
bool empty () const
 
ConstIterator end () const
 
ConstIterator EndOfTrajectory (const int trajectory_id) const
 
ConstIterator find (const IdType &id) const
 
void Insert (const IdType &id, const DataType &data)
 
ConstIterator lower_bound (const int trajectory_id, const common::Time time) const
 
size_t size () const
 
size_t SizeOfTrajectoryOrZero (const int trajectory_id) const
 
Range< ConstIteratortrajectory (const int trajectory_id) const
 
Range< ConstTrajectoryIteratortrajectory_ids () const
 
void Trim (const IdType &id)
 

Static Private Member Functions

static int GetIndex (const NodeId &id)
 
static int GetIndex (const SubmapId &id)
 

Private Attributes

std::map< int, MapByIndextrajectories_
 

Detailed Description

template<typename IdType, typename DataType>
class cartographer::mapping::MapById< IdType, DataType >

Definition at line 130 of file id.h.

Member Function Documentation

◆ Append()

template<typename IdType, typename DataType>
IdType cartographer::mapping::MapById< IdType, DataType >::Append ( const int  trajectory_id,
const DataType &  data 
)
inline

Definition at line 263 of file id.h.

◆ at() [1/2]

template<typename IdType, typename DataType>
const DataType& cartographer::mapping::MapById< IdType, DataType >::at ( const IdType &  id) const
inline

Definition at line 311 of file id.h.

◆ at() [2/2]

template<typename IdType, typename DataType>
DataType& cartographer::mapping::MapById< IdType, DataType >::at ( const IdType &  id)
inline

Definition at line 315 of file id.h.

◆ begin()

template<typename IdType, typename DataType>
ConstIterator cartographer::mapping::MapById< IdType, DataType >::begin ( ) const
inline

Definition at line 356 of file id.h.

◆ BeginOfTrajectory()

template<typename IdType, typename DataType>
ConstIterator cartographer::mapping::MapById< IdType, DataType >::BeginOfTrajectory ( const int  trajectory_id) const
inline

Definition at line 320 of file id.h.

◆ Contains()

template<typename IdType, typename DataType>
bool cartographer::mapping::MapById< IdType, DataType >::Contains ( const IdType &  id) const
inline

Definition at line 306 of file id.h.

◆ empty()

template<typename IdType, typename DataType>
bool cartographer::mapping::MapById< IdType, DataType >::empty ( ) const
inline

Definition at line 361 of file id.h.

◆ end()

template<typename IdType, typename DataType>
ConstIterator cartographer::mapping::MapById< IdType, DataType >::end ( ) const
inline

Definition at line 357 of file id.h.

◆ EndOfTrajectory()

template<typename IdType, typename DataType>
ConstIterator cartographer::mapping::MapById< IdType, DataType >::EndOfTrajectory ( const int  trajectory_id) const
inline

Definition at line 323 of file id.h.

◆ find()

template<typename IdType, typename DataType>
ConstIterator cartographer::mapping::MapById< IdType, DataType >::find ( const IdType &  id) const
inline

Definition at line 275 of file id.h.

◆ GetIndex() [1/2]

template<typename IdType, typename DataType>
static int cartographer::mapping::MapById< IdType, DataType >::GetIndex ( const NodeId id)
inlinestaticprivate

Definition at line 399 of file id.h.

◆ GetIndex() [2/2]

template<typename IdType, typename DataType>
static int cartographer::mapping::MapById< IdType, DataType >::GetIndex ( const SubmapId id)
inlinestaticprivate

Definition at line 400 of file id.h.

◆ Insert()

template<typename IdType, typename DataType>
void cartographer::mapping::MapById< IdType, DataType >::Insert ( const IdType &  id,
const DataType &  data 
)
inline

Definition at line 280 of file id.h.

◆ lower_bound()

template<typename IdType, typename DataType>
ConstIterator cartographer::mapping::MapById< IdType, DataType >::lower_bound ( const int  trajectory_id,
const common::Time  time 
) const
inline

Definition at line 367 of file id.h.

◆ size()

template<typename IdType, typename DataType>
size_t cartographer::mapping::MapById< IdType, DataType >::size ( ) const
inline

Definition at line 335 of file id.h.

◆ SizeOfTrajectoryOrZero()

template<typename IdType, typename DataType>
size_t cartographer::mapping::MapById< IdType, DataType >::SizeOfTrajectoryOrZero ( const int  trajectory_id) const
inline

Definition at line 328 of file id.h.

◆ trajectory()

template<typename IdType, typename DataType>
Range<ConstIterator> cartographer::mapping::MapById< IdType, DataType >::trajectory ( const int  trajectory_id) const
inline

Definition at line 344 of file id.h.

◆ trajectory_ids()

template<typename IdType, typename DataType>
Range<ConstTrajectoryIterator> cartographer::mapping::MapById< IdType, DataType >::trajectory_ids ( ) const
inline

Definition at line 350 of file id.h.

◆ Trim()

template<typename IdType, typename DataType>
void cartographer::mapping::MapById< IdType, DataType >::Trim ( const IdType &  id)
inline

Definition at line 289 of file id.h.

Member Data Documentation

◆ trajectories_

template<typename IdType, typename DataType>
std::map<int, MapByIndex> cartographer::mapping::MapById< IdType, DataType >::trajectories_
private

Definition at line 402 of file id.h.


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


cartographer
Author(s): The Cartographer Authors
autogenerated on Mon Feb 28 2022 22:00:59