Main MRPT website > C++ reference for MRPT 1.9.9
List of all members | Public Types | Public Member Functions | Private Attributes
mrpt::maps::CMultiMetricMap::ProxyFilterContainerByClass< SELECTED_CLASS_PTR, CONTAINER > Struct Template Reference

Detailed Description

template<class SELECTED_CLASS_PTR, class CONTAINER>
struct mrpt::maps::CMultiMetricMap::ProxyFilterContainerByClass< SELECTED_CLASS_PTR, CONTAINER >

Takes a const ref of a STL non-associative container of smart pointers at construction and exposes an interface mildly similar to that of another STL container containing only those elements in the original container that can be dynamic_casted to SELECTED_CLASS_PTR

Definition at line 218 of file CMultiMetricMap.h.

#include <mrpt/maps/CMultiMetricMap.h>

Inheritance diagram for mrpt::maps::CMultiMetricMap::ProxyFilterContainerByClass< SELECTED_CLASS_PTR, CONTAINER >:
Inheritance graph

Public Types

using ptr_t = typename SELECTED_CLASS_PTR::element_type *
 
using const_ptr_t = const typename SELECTED_CLASS_PTR::element_type *
 

Public Member Functions

 ProxyFilterContainerByClass (CONTAINER &source)
 
 ProxyFilterContainerByClass (ProxyFilterContainerByClass< SELECTED_CLASS_PTR, CONTAINER > &)
 
ProxyFilterContainerByClass< SELECTED_CLASS_PTR, CONTAINER > & operator= (const ProxyFilterContainerByClass< SELECTED_CLASS_PTR, CONTAINER > &o)
 
 ProxyFilterContainerByClass (ProxyFilterContainerByClass< SELECTED_CLASS_PTR, CONTAINER > &&)
 
ProxyFilterContainerByClass< SELECTED_CLASS_PTR, CONTAINER > & operator= (ProxyFilterContainerByClass< SELECTED_CLASS_PTR, CONTAINER > &&o)
 
bool empty () const
 
size_t size () const
 
SELECTED_CLASS_PTR operator[] (size_t index) const
 
template<typename ELEMENT >
void push_back (const ELEMENT &element)
 

Private Attributes

CONTAINER * m_source
 

Member Typedef Documentation

◆ const_ptr_t

template<class SELECTED_CLASS_PTR, class CONTAINER>
using mrpt::maps::CMultiMetricMap::ProxyFilterContainerByClass< SELECTED_CLASS_PTR, CONTAINER >::const_ptr_t = const typename SELECTED_CLASS_PTR::element_type*

Definition at line 221 of file CMultiMetricMap.h.

◆ ptr_t

template<class SELECTED_CLASS_PTR, class CONTAINER>
using mrpt::maps::CMultiMetricMap::ProxyFilterContainerByClass< SELECTED_CLASS_PTR, CONTAINER >::ptr_t = typename SELECTED_CLASS_PTR::element_type*

Definition at line 220 of file CMultiMetricMap.h.

Constructor & Destructor Documentation

◆ ProxyFilterContainerByClass() [1/3]

template<class SELECTED_CLASS_PTR, class CONTAINER>
mrpt::maps::CMultiMetricMap::ProxyFilterContainerByClass< SELECTED_CLASS_PTR, CONTAINER >::ProxyFilterContainerByClass ( CONTAINER &  source)
inline

Definition at line 222 of file CMultiMetricMap.h.

◆ ProxyFilterContainerByClass() [2/3]

template<class SELECTED_CLASS_PTR, class CONTAINER>
mrpt::maps::CMultiMetricMap::ProxyFilterContainerByClass< SELECTED_CLASS_PTR, CONTAINER >::ProxyFilterContainerByClass ( ProxyFilterContainerByClass< SELECTED_CLASS_PTR, CONTAINER > &  )
inline

Definition at line 223 of file CMultiMetricMap.h.

◆ ProxyFilterContainerByClass() [3/3]

template<class SELECTED_CLASS_PTR, class CONTAINER>
mrpt::maps::CMultiMetricMap::ProxyFilterContainerByClass< SELECTED_CLASS_PTR, CONTAINER >::ProxyFilterContainerByClass ( ProxyFilterContainerByClass< SELECTED_CLASS_PTR, CONTAINER > &&  )
inline

Definition at line 234 of file CMultiMetricMap.h.

Member Function Documentation

◆ empty()

template<class SELECTED_CLASS_PTR, class CONTAINER>
bool mrpt::maps::CMultiMetricMap::ProxyFilterContainerByClass< SELECTED_CLASS_PTR, CONTAINER >::empty ( ) const
inline

Definition at line 244 of file CMultiMetricMap.h.

◆ operator=() [1/2]

template<class SELECTED_CLASS_PTR, class CONTAINER>
ProxyFilterContainerByClass<SELECTED_CLASS_PTR, CONTAINER>& mrpt::maps::CMultiMetricMap::ProxyFilterContainerByClass< SELECTED_CLASS_PTR, CONTAINER >::operator= ( const ProxyFilterContainerByClass< SELECTED_CLASS_PTR, CONTAINER > &  o)
inline

Definition at line 229 of file CMultiMetricMap.h.

◆ operator=() [2/2]

template<class SELECTED_CLASS_PTR, class CONTAINER>
ProxyFilterContainerByClass<SELECTED_CLASS_PTR, CONTAINER>& mrpt::maps::CMultiMetricMap::ProxyFilterContainerByClass< SELECTED_CLASS_PTR, CONTAINER >::operator= ( ProxyFilterContainerByClass< SELECTED_CLASS_PTR, CONTAINER > &&  o)
inline

Definition at line 239 of file CMultiMetricMap.h.

◆ operator[]()

template<class SELECTED_CLASS_PTR, class CONTAINER>
SELECTED_CLASS_PTR mrpt::maps::CMultiMetricMap::ProxyFilterContainerByClass< SELECTED_CLASS_PTR, CONTAINER >::operator[] ( size_t  index) const
inline

Definition at line 253 of file CMultiMetricMap.h.

◆ push_back()

template<class SELECTED_CLASS_PTR, class CONTAINER>
template<typename ELEMENT >
void mrpt::maps::CMultiMetricMap::ProxyFilterContainerByClass< SELECTED_CLASS_PTR, CONTAINER >::push_back ( const ELEMENT &  element)
inline

Definition at line 268 of file CMultiMetricMap.h.

◆ size()

template<class SELECTED_CLASS_PTR, class CONTAINER>
size_t mrpt::maps::CMultiMetricMap::ProxyFilterContainerByClass< SELECTED_CLASS_PTR, CONTAINER >::size ( ) const
inline

Member Data Documentation

◆ m_source

template<class SELECTED_CLASS_PTR, class CONTAINER>
CONTAINER* mrpt::maps::CMultiMetricMap::ProxyFilterContainerByClass< SELECTED_CLASS_PTR, CONTAINER >::m_source
private



Page generated by Doxygen 1.8.14 for MRPT 1.9.9 Git: ad3a9d8ae Tue May 1 23:10:22 2018 -0700 at lun oct 28 00:14:14 CET 2019