A wrapper class for pointers that can NOT be copied with "=" operator, raising an exception at runtime if a copy is attempted.
Definition at line 171 of file safe_pointers.h.
#include <mrpt/utils/safe_pointers.h>
Public Member Functions | |
non_copiable_ptr () | |
non_copiable_ptr (const non_copiable_ptr< T > &o) | |
non_copiable_ptr (const T *p) | |
non_copiable_ptr< T > & | operator= (const T *p) |
non_copiable_ptr< T > & | operator= (const non_copiable_ptr< T > &) |
virtual | ~non_copiable_ptr () |
T & | operator* () |
const T & | operator* () const |
T & | operator[] (const size_t &i) |
const T & | operator[] (const size_t &i) const |
void | set (const T *p) |
This method can change the pointer, since the change is made explicitly, not through copy operators transparent to the user. More... | |
bool | operator== (const T *o) const |
bool | operator== (const non_copiable_ptr_basic< T > &o) const |
bool | operator!= (const T *o) const |
bool | operator!= (const non_copiable_ptr_basic< T > &o) const |
T *& | get () |
const T * | get () const |
T ** | getPtrToPtr () |
T *& | operator-> () |
const T * | operator-> () const |
Protected Attributes | |
T * | ptr |
|
inline |
Definition at line 174 of file safe_pointers.h.
|
inline |
Definition at line 175 of file safe_pointers.h.
|
inline |
Definition at line 179 of file safe_pointers.h.
|
inlinevirtual |
Definition at line 191 of file safe_pointers.h.
|
inlineinherited |
Definition at line 150 of file safe_pointers.h.
Referenced by mrpt::gui::CDisplayWindow3D::addTextMessage(), mrpt::utils::CEnhancedMetaFile::CEnhancedMetaFile(), mrpt::gui::CDisplayWindow3D::clearTextMessages(), mrpt::utils::CMemoryStream::CMemoryStream(), mrpt::gui::CBaseGUIWindow::destroyWxWindow(), mrpt::utils::CEnhancedMetaFile::drawImage(), mrpt::gui::CDisplayWindow3D::forceRepaint(), mrpt::gui::CDisplayWindow3D::getCameraAzimuthDeg(), mrpt::gui::CDisplayWindow3D::getCameraElevationDeg(), mrpt::gui::CDisplayWindow3D::getCameraPointingToPoint(), mrpt::gui::CDisplayWindow3D::getCameraZoom(), mrpt::gui::CDisplayWindow3D::getFOV(), mrpt::gui::CDisplayWindow::getLastMousePosition(), mrpt::gui::CDisplayWindowPlots::getLastMousePosition(), mrpt::gui::CDisplayWindow3D::getLastMousePosition(), mrpt::utils::CMemoryStream::getRawBufferData(), mrpt::gui::CBaseGUIWindow::getWxObject(), mrpt::gui::CDisplayWindow3D::isCameraProjective(), mrpt::utils::CEnhancedMetaFile::line(), mrpt::utils::CMemoryStream::loadBufferFromFile(), mrpt::vision::CVideoFileWriter::open(), mrpt::vision::CVideoFileWriter::operator<<(), mrpt::utils::CConfigFileMemory::operator=(), mrpt::utils::CMemoryStream::Read(), mrpt::utils::CMemoryChunk::readFromStream(), mrpt::utils::CMemoryStream::resize(), mrpt::utils::CMemoryStream::saveBufferToFile(), mrpt::utils::CEnhancedMetaFile::selectVectorTextFont(), mrpt::gui::CDisplayWindow3D::setCameraAzimuthDeg(), mrpt::gui::CDisplayWindow3D::setCameraElevationDeg(), mrpt::gui::CDisplayWindow3D::setCameraPointingToPoint(), mrpt::gui::CDisplayWindow3D::setCameraProjective(), mrpt::gui::CDisplayWindow3D::setCameraZoom(), mrpt::gui::CDisplayWindow::setCursorCross(), mrpt::gui::CDisplayWindowPlots::setCursorCross(), mrpt::gui::CDisplayWindow3D::setCursorCross(), mrpt::gui::CDisplayWindow3D::setFOV(), mrpt::utils::CEnhancedMetaFile::setPixel(), mrpt::gui::CDisplayWindow::showImage(), mrpt::utils::CEnhancedMetaFile::textOut(), mrpt::gui::CDisplayWindow3D::useCameraFromScene(), mrpt::utils::CMemoryStream::Write(), mrpt::vision::CVideoFileWriter::writeImage(), and mrpt::utils::CEnhancedMetaFile::~CEnhancedMetaFile().
|
inlineinherited |
Definition at line 151 of file safe_pointers.h.
|
inlineinherited |
Definition at line 152 of file safe_pointers.h.
Referenced by mrpt::gui::CBaseGUIWindow::createWxWindow().
|
inlineinherited |
Definition at line 144 of file safe_pointers.h.
|
inlineinherited |
Definition at line 145 of file safe_pointers.h.
|
inline |
Definition at line 192 of file safe_pointers.h.
References ASSERT_.
|
inline |
Definition at line 197 of file safe_pointers.h.
References ASSERT_.
|
inlineinherited |
Definition at line 153 of file safe_pointers.h.
|
inlineinherited |
Definition at line 158 of file safe_pointers.h.
|
inline |
Definition at line 180 of file safe_pointers.h.
|
inline |
Definition at line 186 of file safe_pointers.h.
References THROW_EXCEPTION.
|
inlineinherited |
Definition at line 138 of file safe_pointers.h.
|
inlineinherited |
Definition at line 139 of file safe_pointers.h.
|
inline |
Definition at line 203 of file safe_pointers.h.
References ASSERT_.
|
inline |
Definition at line 208 of file safe_pointers.h.
References ASSERT_.
|
inlineinherited |
This method can change the pointer, since the change is made explicitly, not through copy operators transparent to the user.
Definition at line 136 of file safe_pointers.h.
Referenced by mrpt::utils::CMemoryStream::assignMemoryNotOwn(), mrpt::hwdrivers::CFFMPEG_InputStream::CFFMPEG_InputStream(), mrpt::utils::CMemoryStream::resize(), and mrpt::hwdrivers::CFFMPEG_InputStream::~CFFMPEG_InputStream().
|
protectedinherited |
Definition at line 114 of file safe_pointers.h.
Referenced by mrpt::utils::non_copiable_ptr_basic< void >::get(), mrpt::utils::non_copiable_ptr_basic< void >::getPtrToPtr(), mrpt::utils::non_copiable_ptr_basic< void >::operator!=(), mrpt::utils::non_copiable_ptr_basic< void >::operator->(), mrpt::utils::non_copiable_ptr_basic< void >::operator=(), mrpt::utils::non_copiable_ptr_basic< void >::operator==(), and mrpt::utils::non_copiable_ptr_basic< void >::set().
Page generated by Doxygen 1.8.14 for MRPT 1.9.9 Git: ae4571287 Thu Nov 23 00:06:53 2017 +0100 at dom oct 27 23:51:55 CET 2019 |