Main MRPT website > C++ reference
MRPT logo
List of all members | Public Types | Public Member Functions | Protected Attributes
mrpt::stlplus::smart_ptr< T, COUNTER > Class Template Reference

Detailed Description

template<typename T, typename COUNTER = mrpt::synch::CAtomicCounter>
class mrpt::stlplus::smart_ptr< T, COUNTER >

Definition at line 231 of file CColouredPointsMap.h.

#include <mrpt/slam/CColouredPointsMap.h>

Inheritance diagram for mrpt::stlplus::smart_ptr< T, COUNTER >:
Inheritance graph
[legend]

Public Types

typedef T value_type
 
typedef T & reference
 
typedef const T & const_reference
 
typedef constructor_copy< T > value_copy
 

Public Member Functions

 smart_ptr (void)
 
 smart_ptr (const T &data)
 
 smart_ptr (T *data)
 
smart_ptr< T > & operator= (const T &data)
 
smart_ptr< T > & operator= (const smart_ptr< T > &r)
 
 ~smart_ptr (void)
 
 operator bool (void) const
 
bool operator! (void) const
 
bool present (void) const
 
bool null (void) const
 
T & operator* (void) throw (null_dereference)
 
const T & operator* (void) const throw (null_dereference)
 
T * operator-> (void) throw (null_dereference)
 
const T * operator-> (void) const throw (null_dereference)
 
void set_value (const T &data) throw (illegal_copy)
 
T & value (void) throw (null_dereference)
 
const T & value (void) const throw (null_dereference)
 
void set (T *data=0)
 
T * pointer (void)
 
const T * pointer (void) const
 
void alias (const smart_ptr_base< T, constructor_copy< T >, COUNTER > &)
 
bool aliases (const smart_ptr_base< T, constructor_copy< T >, COUNTER > &) const
 
unsigned alias_count (void) const
 
void clear (void)
 
void clear_unique (void)
 
void make_unique (void) throw (illegal_copy)
 
void copy (const smart_ptr_base< T, constructor_copy< T >, COUNTER > &) throw (illegal_copy)
 
void * handle (void) const
 
void make_alias (void *handle)
 

Protected Attributes

smart_ptr_holder< T, COUNTER > * m_holder
 

Member Typedef Documentation

◆ const_reference

typedef const T& mrpt::stlplus::smart_ptr_base< T, constructor_copy< T > , COUNTER >::const_reference
inherited

Definition at line 75 of file CColouredPointsMap.h.

◆ reference

typedef T& mrpt::stlplus::smart_ptr_base< T, constructor_copy< T > , COUNTER >::reference
inherited

Definition at line 74 of file CColouredPointsMap.h.

◆ value_copy

typedef constructor_copy< T > mrpt::stlplus::smart_ptr_base< T, constructor_copy< T > , COUNTER >::value_copy
inherited

Definition at line 76 of file CColouredPointsMap.h.

◆ value_type

typedef T mrpt::stlplus::smart_ptr_base< T, constructor_copy< T > , COUNTER >::value_type
inherited

Definition at line 73 of file CColouredPointsMap.h.

Constructor & Destructor Documentation

◆ smart_ptr() [1/3]

template<typename T, typename COUNTER = mrpt::synch::CAtomicCounter>
mrpt::stlplus::smart_ptr< T, COUNTER >::smart_ptr ( void  )
inline

Definition at line 234 of file CColouredPointsMap.h.

◆ smart_ptr() [2/3]

template<typename T, typename COUNTER = mrpt::synch::CAtomicCounter>
mrpt::stlplus::smart_ptr< T, COUNTER >::smart_ptr ( const T &  data)
inlineexplicit

Definition at line 235 of file CColouredPointsMap.h.

◆ smart_ptr() [3/3]

template<typename T, typename COUNTER = mrpt::synch::CAtomicCounter>
mrpt::stlplus::smart_ptr< T, COUNTER >::smart_ptr ( T *  data)
inlineexplicit

Definition at line 236 of file CColouredPointsMap.h.

◆ ~smart_ptr()

template<typename T, typename COUNTER = mrpt::synch::CAtomicCounter>
mrpt::stlplus::smart_ptr< T, COUNTER >::~smart_ptr ( void  )
inline

Definition at line 239 of file CColouredPointsMap.h.

Member Function Documentation

◆ alias()

void mrpt::stlplus::smart_ptr_base< T, constructor_copy< T > , COUNTER >::alias ( const smart_ptr_base< T, constructor_copy< T > , COUNTER > &  r)
inlineinherited

Definition at line 312 of file CColouredPointsMap.h.

◆ alias_count()

unsigned mrpt::stlplus::smart_ptr_base< T, constructor_copy< T > , COUNTER >::alias_count ( void  ) const
inlineinherited

Definition at line 331 of file CColouredPointsMap.h.

◆ aliases()

bool mrpt::stlplus::smart_ptr_base< T, constructor_copy< T > , COUNTER >::aliases ( const smart_ptr_base< T, constructor_copy< T > , COUNTER > &  r) const
inlineinherited

Definition at line 325 of file CColouredPointsMap.h.

◆ clear()

void mrpt::stlplus::smart_ptr_base< T, constructor_copy< T > , COUNTER >::clear ( void  )
inlineinherited

Definition at line 337 of file CColouredPointsMap.h.

◆ clear_unique()

void mrpt::stlplus::smart_ptr_base< T, constructor_copy< T > , COUNTER >::clear_unique ( void  )
inlineinherited

Definition at line 343 of file CColouredPointsMap.h.

◆ copy()

void mrpt::stlplus::smart_ptr_base< T, constructor_copy< T > , COUNTER >::copy ( const smart_ptr_base< T, constructor_copy< T > , COUNTER > &  data)
throw (illegal_copy
)
inherited

Definition at line 370 of file CColouredPointsMap.h.

◆ handle()

void * mrpt::stlplus::smart_ptr_base< T, constructor_copy< T > , COUNTER >::handle ( void  ) const
inherited

Definition at line 380 of file CColouredPointsMap.h.

◆ make_alias()

void mrpt::stlplus::smart_ptr_base< T, constructor_copy< T > , COUNTER >::make_alias ( void *  handle)
inherited

Definition at line 386 of file CColouredPointsMap.h.

◆ make_unique()

void mrpt::stlplus::smart_ptr_base< T, constructor_copy< T > , COUNTER >::make_unique ( void  )
throw (illegal_copy
)
inlineinherited

Definition at line 356 of file CColouredPointsMap.h.

◆ null()

bool mrpt::stlplus::smart_ptr_base< T, constructor_copy< T > , COUNTER >::null ( void  ) const
inlineinherited

Definition at line 212 of file CColouredPointsMap.h.

◆ operator bool()

mrpt::stlplus::smart_ptr_base< T, constructor_copy< T > , COUNTER >::operator bool ( void  ) const
inherited

Definition at line 230 of file CColouredPointsMap.h.

◆ operator!()

bool mrpt::stlplus::smart_ptr_base< T, constructor_copy< T > , COUNTER >::operator! ( void  ) const
inherited

Definition at line 224 of file CColouredPointsMap.h.

◆ operator*() [1/2]

T & mrpt::stlplus::smart_ptr_base< T, constructor_copy< T > , COUNTER >::operator* ( void  )
throw (null_dereference
)
inlineinherited

Definition at line 239 of file CColouredPointsMap.h.

◆ operator*() [2/2]

const T & mrpt::stlplus::smart_ptr_base< T, constructor_copy< T > , COUNTER >::operator* ( void  ) const
throw (null_dereference
)
inlineinherited

Definition at line 246 of file CColouredPointsMap.h.

◆ operator->() [1/2]

T * mrpt::stlplus::smart_ptr_base< T, constructor_copy< T > , COUNTER >::operator-> ( void  )
throw (null_dereference
)
inlineinherited

Definition at line 253 of file CColouredPointsMap.h.

Referenced by mrpt::utils::CReferencedMemBlock::getAs().

◆ operator->() [2/2]

const T * mrpt::stlplus::smart_ptr_base< T, constructor_copy< T > , COUNTER >::operator-> ( void  ) const
throw (null_dereference
)
inlineinherited

Definition at line 260 of file CColouredPointsMap.h.

◆ operator=() [1/2]

template<typename T, typename COUNTER = mrpt::synch::CAtomicCounter>
smart_ptr<T>& mrpt::stlplus::smart_ptr< T, COUNTER >::operator= ( const T &  data)
inline

Definition at line 237 of file CColouredPointsMap.h.

◆ operator=() [2/2]

template<typename T, typename COUNTER = mrpt::synch::CAtomicCounter>
smart_ptr<T>& mrpt::stlplus::smart_ptr< T, COUNTER >::operator= ( const smart_ptr< T > &  r)
inline

Definition at line 238 of file CColouredPointsMap.h.

◆ pointer() [1/2]

T * mrpt::stlplus::smart_ptr_base< T, constructor_copy< T > , COUNTER >::pointer ( void  )
inlineinherited

Definition at line 296 of file CColouredPointsMap.h.

◆ pointer() [2/2]

const T * mrpt::stlplus::smart_ptr_base< T, constructor_copy< T > , COUNTER >::pointer ( void  ) const
inlineinherited

Definition at line 302 of file CColouredPointsMap.h.

◆ present()

bool mrpt::stlplus::smart_ptr_base< T, constructor_copy< T > , COUNTER >::present ( void  ) const
inlineinherited

Definition at line 218 of file CColouredPointsMap.h.

◆ set()

void mrpt::stlplus::smart_ptr_base< T, constructor_copy< T > , COUNTER >::set ( T *  data = 0)
inherited

Definition at line 290 of file CColouredPointsMap.h.

◆ set_value()

void mrpt::stlplus::smart_ptr_base< T, constructor_copy< T > , COUNTER >::set_value ( const T &  data)
throw (illegal_copy
)
inlineinherited

Definition at line 270 of file CColouredPointsMap.h.

◆ value() [1/2]

T & mrpt::stlplus::smart_ptr_base< T, constructor_copy< T > , COUNTER >::value ( void  )
throw (null_dereference
)
inlineinherited

Definition at line 276 of file CColouredPointsMap.h.

◆ value() [2/2]

const T & mrpt::stlplus::smart_ptr_base< T, constructor_copy< T > , COUNTER >::value ( void  ) const
throw (null_dereference
)
inlineinherited

Definition at line 283 of file CColouredPointsMap.h.

Member Data Documentation

◆ m_holder

smart_ptr_holder<T,COUNTER>* mrpt::stlplus::smart_ptr_base< T, constructor_copy< T > , COUNTER >::m_holder
protectedinherited

Definition at line 178 of file CColouredPointsMap.h.




Page generated by Doxygen 1.8.14 for MRPT 1.1.0 SVN: at lun oct 28 00:54:49 CET 2019 Hosted on:
SourceForge.net Logo