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>

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 |
|
inline |
ctor: binds to source object
Definition at line 25 of file ContainerReadOnlyProxyAccessor.h.
| mrpt::utils::ContainerReadOnlyProxyAccessor< STLCONTAINER >::ContainerReadOnlyProxyAccessor | ( | const ContainerReadOnlyProxyAccessor< STLCONTAINER > & | ) |
(Deleted ctor) ignore copies (keep reference to original object)
|
inline |
Definition at line 40 of file ContainerReadOnlyProxyAccessor.h.
References mrpt::utils::ContainerReadOnlyProxyAccessor< STLCONTAINER >::m_source.
Referenced by FAddUntracedLines::operator()().
|
inline |
Definition at line 41 of file ContainerReadOnlyProxyAccessor.h.
References mrpt::utils::ContainerReadOnlyProxyAccessor< STLCONTAINER >::m_source.
Referenced by FAddUntracedLines::operator()().
|
inline |
Transparent conversion to const ref to original source object.
Definition at line 35 of file ContainerReadOnlyProxyAccessor.h.
|
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.
References ASSERT_EQUAL_, and mrpt::utils::ContainerReadOnlyProxyAccessor< STLCONTAINER >::m_source.
|
inline |
Definition at line 38 of file ContainerReadOnlyProxyAccessor.h.
References mrpt::utils::ContainerReadOnlyProxyAccessor< STLCONTAINER >::m_source.
|
inline |
Definition at line 42 of file ContainerReadOnlyProxyAccessor.h.
References mrpt::utils::ContainerReadOnlyProxyAccessor< STLCONTAINER >::m_source.
|
inline |
Definition at line 43 of file ContainerReadOnlyProxyAccessor.h.
References mrpt::utils::ContainerReadOnlyProxyAccessor< STLCONTAINER >::m_source.
|
inline |
Definition at line 37 of file ContainerReadOnlyProxyAccessor.h.
References mrpt::utils::ContainerReadOnlyProxyAccessor< STLCONTAINER >::m_source.
Referenced by mrpt::maps::COccupancyGridMap2D::computeObservationLikelihood_rayTracing(), mrpt::graphslam::CGraphSlamEngine< GRAPH_T >::decimateLaserScan(), mrpt::obs::CObservation2DRangeScanWithUncertainty::evaluateScanLikelihood(), mrpt::obs::CObservation2DRangeScan::filterByExclusionAngles(), mrpt::obs::CObservation2DRangeScan::filterByExclusionAreas(), mrpt::obs::CObservation2DRangeScan::getDescriptionAsText(), mrpt::obs::CObservation2DRangeScan::getScanProperties(), mrpt::maps::COccupancyGridMap2D::internal_insertObservation(), mrpt::maps::CLandmarksMap::loadOccupancyFeaturesFrom2DRangeScan(), FAddUntracedLines::operator()(), mrpt::maps::detail::loadFromRangeImpl< Derived >::templ_loadFromRangeScan(), mrpt::obs::CObservation2DRangeScan::truncateByDistanceAndAngle(), and mrpt::obs::CObservation2DRangeScan::writeToStream().
|
private |
Definition at line 46 of file ContainerReadOnlyProxyAccessor.h.
Referenced by mrpt::utils::ContainerReadOnlyProxyAccessor< STLCONTAINER >::begin(), mrpt::utils::ContainerReadOnlyProxyAccessor< STLCONTAINER >::end(), mrpt::utils::ContainerReadOnlyProxyAccessor< std::vector< char > >::operator const std::vector< char > &(), mrpt::utils::ContainerReadOnlyProxyAccessor< STLCONTAINER >::operator=(), mrpt::utils::ContainerReadOnlyProxyAccessor< STLCONTAINER >::operator[](), mrpt::utils::ContainerReadOnlyProxyAccessor< STLCONTAINER >::rbegin(), mrpt::utils::ContainerReadOnlyProxyAccessor< STLCONTAINER >::rend(), and mrpt::utils::ContainerReadOnlyProxyAccessor< STLCONTAINER >::size().
| Page generated by Doxygen 1.9.1 for MRPT 1.5.7 Git: 5902e14cc Wed Apr 24 15:04:01 2019 +0200 at mar 26 may 2026 13:12:03 CEST |