Main MRPT website > C++ reference for MRPT 1.5.6
List of all members | Public Member Functions | Private Attributes
mrpt::utils::ContainerReadOnlyProxyAccessor< STLCONTAINER > Struct Template Reference

Detailed Description

template<typename STLCONTAINER>
struct mrpt::utils::ContainerReadOnlyProxyAccessor< STLCONTAINER >

A generic proxy accessor template that only allows read-only access to the original binded STL container object.

Definition at line 23 of file ContainerReadOnlyProxyAccessor.h.

#include <mrpt/utils/ContainerReadOnlyProxyAccessor.h>

Inheritance diagram for mrpt::utils::ContainerReadOnlyProxyAccessor< STLCONTAINER >:
Inheritance graph

Public Member Functions

 ContainerReadOnlyProxyAccessor (STLCONTAINER &source)
 ctor: binds to source object More...
 
 ContainerReadOnlyProxyAccessor (const ContainerReadOnlyProxyAccessor< STLCONTAINER > &) MRPT_DELETED_FUNC
 (Deleted ctor) ignore copies (keep reference to original object) More...
 
ContainerReadOnlyProxyAccessor< STLCONTAINER > & operator= (const ContainerReadOnlyProxyAccessor< STLCONTAINER > &o)
 Don't copy the reference to the source object, but copy the contained data. More...
 
 operator const STLCONTAINER & () const
 Transparent conversion to const ref to original source object. More...
 
size_t size () const
 
const STLCONTAINER::value_type & operator[] (const int i) const
 
STLCONTAINER::const_iterator begin () const
 
STLCONTAINER::const_iterator end () const
 
STLCONTAINER::const_reverse_iterator rbegin () const
 
STLCONTAINER::const_reverse_iterator rend () const
 

Private Attributes

STLCONTAINER & m_source
 

Constructor & Destructor Documentation

◆ ContainerReadOnlyProxyAccessor() [1/2]

template<typename STLCONTAINER>
mrpt::utils::ContainerReadOnlyProxyAccessor< STLCONTAINER >::ContainerReadOnlyProxyAccessor ( STLCONTAINER &  source)
inline

ctor: binds to source object

Definition at line 25 of file ContainerReadOnlyProxyAccessor.h.

◆ ContainerReadOnlyProxyAccessor() [2/2]

template<typename STLCONTAINER>
mrpt::utils::ContainerReadOnlyProxyAccessor< STLCONTAINER >::ContainerReadOnlyProxyAccessor ( const ContainerReadOnlyProxyAccessor< STLCONTAINER > &  )

(Deleted ctor) ignore copies (keep reference to original object)

Member Function Documentation

◆ begin()

template<typename STLCONTAINER>
STLCONTAINER::const_iterator mrpt::utils::ContainerReadOnlyProxyAccessor< STLCONTAINER >::begin ( ) const
inline

Definition at line 40 of file ContainerReadOnlyProxyAccessor.h.

Referenced by FAddUntracedLines::operator()().

◆ end()

template<typename STLCONTAINER>
STLCONTAINER::const_iterator mrpt::utils::ContainerReadOnlyProxyAccessor< STLCONTAINER >::end ( ) const
inline

Definition at line 41 of file ContainerReadOnlyProxyAccessor.h.

Referenced by FAddUntracedLines::operator()().

◆ operator const STLCONTAINER &()

template<typename STLCONTAINER>
mrpt::utils::ContainerReadOnlyProxyAccessor< STLCONTAINER >::operator const STLCONTAINER & ( ) const
inline

Transparent conversion to const ref to original source object.

Definition at line 35 of file ContainerReadOnlyProxyAccessor.h.

References mrpt::utils::ContainerReadOnlyProxyAccessor< STLCONTAINER >::m_source.

◆ operator=()

template<typename STLCONTAINER>
ContainerReadOnlyProxyAccessor<STLCONTAINER>& mrpt::utils::ContainerReadOnlyProxyAccessor< STLCONTAINER >::operator= ( const ContainerReadOnlyProxyAccessor< STLCONTAINER > &  o)
inline

Don't copy the reference to the source object, but copy the contained data.

This is only allowed if the size of the buffers coincide.

Definition at line 28 of file ContainerReadOnlyProxyAccessor.h.

◆ operator[]()

template<typename STLCONTAINER>
const STLCONTAINER::value_type& mrpt::utils::ContainerReadOnlyProxyAccessor< STLCONTAINER >::operator[] ( const int  i) const
inline

Definition at line 38 of file ContainerReadOnlyProxyAccessor.h.

◆ rbegin()

template<typename STLCONTAINER>
STLCONTAINER::const_reverse_iterator mrpt::utils::ContainerReadOnlyProxyAccessor< STLCONTAINER >::rbegin ( ) const
inline

Definition at line 42 of file ContainerReadOnlyProxyAccessor.h.

◆ rend()

template<typename STLCONTAINER>
STLCONTAINER::const_reverse_iterator mrpt::utils::ContainerReadOnlyProxyAccessor< STLCONTAINER >::rend ( ) const
inline

Definition at line 43 of file ContainerReadOnlyProxyAccessor.h.

◆ size()

template<typename STLCONTAINER>
size_t mrpt::utils::ContainerReadOnlyProxyAccessor< STLCONTAINER >::size ( ) const
inline

Member Data Documentation

◆ m_source

template<typename STLCONTAINER>
STLCONTAINER& mrpt::utils::ContainerReadOnlyProxyAccessor< STLCONTAINER >::m_source
private



Page generated by Doxygen 1.8.14 for MRPT 1.5.6 Git: 4c65e8431 Tue Apr 24 08:18:17 2018 +0200 at lun oct 28 01:35:26 CET 2019