Main MRPT website > C++ reference for MRPT 1.5.7
List of all members | Public Types | Public Member Functions | Protected Attributes
mrpt::utils::internal::generic_copier_ptr< T, Copier > Class Template Reference

Detailed Description

template<typename T, typename Copier>
class mrpt::utils::internal::generic_copier_ptr< T, Copier >

Definition at line 46 of file generic_copier_ptr.h.

#include <mrpt/utils/generic_copier_ptr.h>

Inheritance diagram for mrpt::utils::internal::generic_copier_ptr< T, Copier >:
Inheritance graph

Public Types

typedef T value_type
 
typedef Copier copier_t
 

Public Member Functions

 generic_copier_ptr (T *ptr)
 Ctor from a pointer; takes ownership. More...
 
 generic_copier_ptr ()
 Default ctor; init to nullptr. More...
 
 generic_copier_ptr (const generic_copier_ptr< T, Copier > &o)
 copy ctor: makes a copy of the object via clone() More...
 
 ~generic_copier_ptr ()
 
void move_from (generic_copier_ptr &o)
 
T * operator-> ()
 
const T * operator-> () const
 
T & operator* (void)
 
const T & operator* (void) const
 
T * get ()
 
const T * get () const
 
 operator bool () const
 
bool operator! (void) const
 
T * release ()
 Releases the pointer (do not destroy the object) More...
 
void reset (T *ptr=NULL)
 
void resetDefaultCtor ()
 

Protected Attributes

T * m_ptr
 

Member Typedef Documentation

◆ copier_t

template<typename T, typename Copier>
typedef Copier mrpt::utils::internal::generic_copier_ptr< T, Copier >::copier_t

Definition at line 50 of file generic_copier_ptr.h.

◆ value_type

template<typename T, typename Copier>
typedef T mrpt::utils::internal::generic_copier_ptr< T, Copier >::value_type

Definition at line 49 of file generic_copier_ptr.h.

Constructor & Destructor Documentation

◆ generic_copier_ptr() [1/3]

template<typename T, typename Copier>
mrpt::utils::internal::generic_copier_ptr< T, Copier >::generic_copier_ptr ( T *  ptr)
inlineexplicit

Ctor from a pointer; takes ownership.

Definition at line 52 of file generic_copier_ptr.h.

◆ generic_copier_ptr() [2/3]

template<typename T, typename Copier>
mrpt::utils::internal::generic_copier_ptr< T, Copier >::generic_copier_ptr ( )
inline

Default ctor; init to nullptr.

Definition at line 54 of file generic_copier_ptr.h.

◆ generic_copier_ptr() [3/3]

template<typename T, typename Copier>
mrpt::utils::internal::generic_copier_ptr< T, Copier >::generic_copier_ptr ( const generic_copier_ptr< T, Copier > &  o)
inline

copy ctor: makes a copy of the object via clone()

Definition at line 56 of file generic_copier_ptr.h.

◆ ~generic_copier_ptr()

template<typename T, typename Copier>
mrpt::utils::internal::generic_copier_ptr< T, Copier >::~generic_copier_ptr ( )
inline

Definition at line 57 of file generic_copier_ptr.h.

Member Function Documentation

◆ get() [1/2]

template<typename T, typename Copier>
T* mrpt::utils::internal::generic_copier_ptr< T, Copier >::get ( )
inline

Definition at line 96 of file generic_copier_ptr.h.

◆ get() [2/2]

template<typename T, typename Copier>
const T* mrpt::utils::internal::generic_copier_ptr< T, Copier >::get ( ) const
inline

Definition at line 97 of file generic_copier_ptr.h.

◆ move_from()

template<typename T, typename Copier>
void mrpt::utils::internal::generic_copier_ptr< T, Copier >::move_from ( generic_copier_ptr< T, Copier > &  o)
inline

Definition at line 59 of file generic_copier_ptr.h.

◆ operator bool()

template<typename T, typename Copier>
mrpt::utils::internal::generic_copier_ptr< T, Copier >::operator bool ( ) const
inline

Definition at line 99 of file generic_copier_ptr.h.

◆ operator!()

template<typename T, typename Copier>
bool mrpt::utils::internal::generic_copier_ptr< T, Copier >::operator! ( void  ) const
inline

Definition at line 100 of file generic_copier_ptr.h.

◆ operator*() [1/2]

template<typename T, typename Copier>
T& mrpt::utils::internal::generic_copier_ptr< T, Copier >::operator* ( void  )
inline

Definition at line 87 of file generic_copier_ptr.h.

◆ operator*() [2/2]

template<typename T, typename Copier>
const T& mrpt::utils::internal::generic_copier_ptr< T, Copier >::operator* ( void  ) const
inline

Definition at line 91 of file generic_copier_ptr.h.

◆ operator->() [1/2]

template<typename T, typename Copier>
T* mrpt::utils::internal::generic_copier_ptr< T, Copier >::operator-> ( void  )
inline

Definition at line 78 of file generic_copier_ptr.h.

◆ operator->() [2/2]

template<typename T, typename Copier>
const T* mrpt::utils::internal::generic_copier_ptr< T, Copier >::operator-> ( void  ) const
inline

Definition at line 82 of file generic_copier_ptr.h.

◆ release()

template<typename T, typename Copier>
T* mrpt::utils::internal::generic_copier_ptr< T, Copier >::release ( )
inline

Releases the pointer (do not destroy the object)

Definition at line 103 of file generic_copier_ptr.h.

◆ reset()

template<typename T, typename Copier>
void mrpt::utils::internal::generic_copier_ptr< T, Copier >::reset ( T *  ptr = NULL)
inline

◆ resetDefaultCtor()

template<typename T, typename Copier>
void mrpt::utils::internal::generic_copier_ptr< T, Copier >::resetDefaultCtor ( )
inline

Definition at line 114 of file generic_copier_ptr.h.

Member Data Documentation

◆ m_ptr

template<typename T, typename Copier>
T* mrpt::utils::internal::generic_copier_ptr< T, Copier >::m_ptr
protected



Page generated by Doxygen 1.8.14 for MRPT 1.5.7 Git: 5902e14cc Wed Apr 24 15:04:01 2019 +0200 at lun oct 28 01:39:17 CET 2019