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

#include <id.h>

Public Types

using difference_type = int64
 
using iterator_category = std::bidirectional_iterator_tag
 
using pointer = std::unique_ptr< const IdDataReference >
 
using reference = const IdDataReference &
 
using value_type = IdDataReference
 

Public Member Functions

 ConstIterator (const MapById &map_by_id, const int trajectory_id)
 
 ConstIterator (const MapById &map_by_id, const IdType &id)
 
bool operator!= (const ConstIterator &it) const
 
IdDataReference operator* () const
 
ConstIteratoroperator++ ()
 
ConstIteratoroperator-- ()
 
std::unique_ptr< const IdDataReferenceoperator-> () const
 
bool operator== (const ConstIterator &it) const
 

Private Member Functions

void AdvanceToValidDataIterator ()
 

Private Attributes

std::map< int, DataType >::const_iterator current_data_
 
std::map< int, MapByIndex >::const_iterator current_trajectory_
 
std::map< int, MapByIndex >::const_iterator end_trajectory_
 

Detailed Description

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

Definition at line 140 of file id.h.

Member Typedef Documentation

◆ difference_type

template<typename IdType, typename DataType>
using cartographer::mapping::MapById< IdType, DataType >::ConstIterator::difference_type = int64

Definition at line 144 of file id.h.

◆ iterator_category

template<typename IdType, typename DataType>
using cartographer::mapping::MapById< IdType, DataType >::ConstIterator::iterator_category = std::bidirectional_iterator_tag

Definition at line 142 of file id.h.

◆ pointer

template<typename IdType, typename DataType>
using cartographer::mapping::MapById< IdType, DataType >::ConstIterator::pointer = std::unique_ptr<const IdDataReference>

Definition at line 145 of file id.h.

◆ reference

template<typename IdType, typename DataType>
using cartographer::mapping::MapById< IdType, DataType >::ConstIterator::reference = const IdDataReference&

Definition at line 146 of file id.h.

◆ value_type

template<typename IdType, typename DataType>
using cartographer::mapping::MapById< IdType, DataType >::ConstIterator::value_type = IdDataReference

Definition at line 143 of file id.h.

Constructor & Destructor Documentation

◆ ConstIterator() [1/2]

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

Definition at line 148 of file id.h.

◆ ConstIterator() [2/2]

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

Definition at line 158 of file id.h.

Member Function Documentation

◆ AdvanceToValidDataIterator()

template<typename IdType, typename DataType>
void cartographer::mapping::MapById< IdType, DataType >::ConstIterator::AdvanceToValidDataIterator ( )
inlineprivate

Definition at line 210 of file id.h.

◆ operator!=()

template<typename IdType, typename DataType>
bool cartographer::mapping::MapById< IdType, DataType >::ConstIterator::operator!= ( const ConstIterator it) const
inline

Definition at line 207 of file id.h.

◆ operator*()

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

Definition at line 170 of file id.h.

◆ operator++()

template<typename IdType, typename DataType>
ConstIterator& cartographer::mapping::MapById< IdType, DataType >::ConstIterator::operator++ ( )
inline

Definition at line 181 of file id.h.

◆ operator--()

template<typename IdType, typename DataType>
ConstIterator& cartographer::mapping::MapById< IdType, DataType >::ConstIterator::operator-- ( )
inline

Definition at line 188 of file id.h.

◆ operator->()

template<typename IdType, typename DataType>
std::unique_ptr<const IdDataReference> cartographer::mapping::MapById< IdType, DataType >::ConstIterator::operator-> ( ) const
inline

Definition at line 177 of file id.h.

◆ operator==()

template<typename IdType, typename DataType>
bool cartographer::mapping::MapById< IdType, DataType >::ConstIterator::operator== ( const ConstIterator it) const
inline

Definition at line 198 of file id.h.

Member Data Documentation

◆ current_data_

template<typename IdType, typename DataType>
std::map<int, DataType>::const_iterator cartographer::mapping::MapById< IdType, DataType >::ConstIterator::current_data_
private

Definition at line 223 of file id.h.

◆ current_trajectory_

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

Definition at line 221 of file id.h.

◆ end_trajectory_

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

Definition at line 222 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