MRPT
2.0.4
|
A generic proxy accessor template that only allows read-only access to the original binded STL container object.
Definition at line 22 of file ContainerReadOnlyProxyAccessor.h.
#include <mrpt/containers/ContainerReadOnlyProxyAccessor.h>
Public Member Functions | |
ContainerReadOnlyProxyAccessor (STLCONTAINER &source) | |
ctor: binds to source object More... | |
ContainerReadOnlyProxyAccessor (const ContainerReadOnlyProxyAccessor< STLCONTAINER > &)=delete | |
(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 |
|
inline |
ctor: binds to source object
Definition at line 25 of file ContainerReadOnlyProxyAccessor.h.
|
delete |
(Deleted ctor) ignore copies (keep reference to original object)
|
inline |
Definition at line 46 of file ContainerReadOnlyProxyAccessor.h.
References mrpt::containers::ContainerReadOnlyProxyAccessor< STLCONTAINER >::m_source.
|
inline |
Definition at line 50 of file ContainerReadOnlyProxyAccessor.h.
References mrpt::containers::ContainerReadOnlyProxyAccessor< STLCONTAINER >::m_source.
|
inline |
Transparent conversion to const ref to original source object.
Definition at line 39 of file ContainerReadOnlyProxyAccessor.h.
References mrpt::containers::ContainerReadOnlyProxyAccessor< STLCONTAINER >::m_source.
|
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 31 of file ContainerReadOnlyProxyAccessor.h.
References ASSERT_EQUAL_, and mrpt::containers::ContainerReadOnlyProxyAccessor< STLCONTAINER >::m_source.
|
inline |
Definition at line 41 of file ContainerReadOnlyProxyAccessor.h.
References mrpt::containers::ContainerReadOnlyProxyAccessor< STLCONTAINER >::m_source.
|
inline |
Definition at line 51 of file ContainerReadOnlyProxyAccessor.h.
References mrpt::containers::ContainerReadOnlyProxyAccessor< STLCONTAINER >::m_source.
|
inline |
Definition at line 55 of file ContainerReadOnlyProxyAccessor.h.
References mrpt::containers::ContainerReadOnlyProxyAccessor< STLCONTAINER >::m_source.
|
inline |
Definition at line 40 of file ContainerReadOnlyProxyAccessor.h.
References mrpt::containers::ContainerReadOnlyProxyAccessor< STLCONTAINER >::m_source.
|
private |
Definition at line 61 of file ContainerReadOnlyProxyAccessor.h.
Referenced by mrpt::containers::ContainerReadOnlyProxyAccessor< STLCONTAINER >::begin(), mrpt::containers::ContainerReadOnlyProxyAccessor< STLCONTAINER >::end(), mrpt::containers::ContainerReadOnlyProxyAccessor< STLCONTAINER >::operator const STLCONTAINER &(), mrpt::containers::ContainerReadOnlyProxyAccessor< STLCONTAINER >::operator=(), mrpt::containers::ContainerReadOnlyProxyAccessor< STLCONTAINER >::operator[](), mrpt::containers::ContainerReadOnlyProxyAccessor< STLCONTAINER >::rbegin(), mrpt::containers::ContainerReadOnlyProxyAccessor< STLCONTAINER >::rend(), and mrpt::containers::ContainerReadOnlyProxyAccessor< STLCONTAINER >::size().
Page generated by Doxygen 1.8.14 for MRPT 2.0.4 Git: 33de1d0ad Sat Jun 20 11:02:42 2020 +0200 at sáb jun 20 17:35:17 CEST 2020 |