Main MRPT website > C++ reference
MRPT logo
List of all members | Public Types | Public Member Functions | Protected Attributes | Private Types
mrpt::utils::CObjectPtr Class Reference

Detailed Description

A smart pointer to a CObject object.

Note
Declared as a class instead of a typedef to avoid multiple defined symbols when linking dynamic libs.

Definition at line 28 of file CObject.h.

#include <mrpt/utils/CObject.h>

Inheritance diagram for mrpt::utils::CObjectPtr:
Inheritance graph
[legend]

Public Types

typedef CObject value_type
 
typedef CObjectreference
 
typedef const CObjectconst_reference
 
typedef clone_copy< CObjectvalue_copy
 

Public Member Functions

 CObjectPtr ()
 
 CObjectPtr (const CObject &data)
 
 CObjectPtr (CObject *data)
 
CObjectPtroperator= (const CObject &data)
 
CObjectPtroperator= (const CObjectPtr &r)
 
 operator bool (void) const
 
bool operator! (void) const
 
bool present (void) const
 
bool null (void) const
 
CObjectoperator* (void) throw (null_dereference)
 
const CObjectoperator* (void) const throw (null_dereference)
 
CObjectoperator-> (void) throw (null_dereference)
 
const CObjectoperator-> (void) const throw (null_dereference)
 
void set_value (const CObject &data) throw (illegal_copy)
 
CObjectvalue (void) throw (null_dereference)
 
const CObjectvalue (void) const throw (null_dereference)
 
void set (CObject *data=0)
 
CObjectpointer (void)
 
const CObjectpointer (void) const
 
void alias (const smart_ptr_base< CObject, clone_copy< CObject >, mrpt::synch::CAtomicCounter > &)
 
bool aliases (const smart_ptr_base< CObject, clone_copy< CObject >, mrpt::synch::CAtomicCounter > &) 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< CObject, clone_copy< CObject >, mrpt::synch::CAtomicCounter > &) throw (illegal_copy)
 
void * handle (void) const
 
void make_alias (void *handle)
 

Protected Attributes

smart_ptr_holder< CObject, mrpt::synch::CAtomicCounter > * m_holder
 

Private Types

typedef stlplus::smart_ptr_clone< CObjectBASE
 

Member Typedef Documentation

◆ BASE

Definition at line 30 of file CObject.h.

◆ const_reference

Definition at line 75 of file CColouredPointsMap.h.

◆ reference

Definition at line 74 of file CColouredPointsMap.h.

◆ value_copy

typedef clone_copy< CObject > mrpt::stlplus::smart_ptr_base< CObject , clone_copy< CObject > , mrpt::synch::CAtomicCounter >::value_copy
inherited

Definition at line 76 of file CColouredPointsMap.h.

◆ value_type

Definition at line 73 of file CColouredPointsMap.h.

Constructor & Destructor Documentation

◆ CObjectPtr() [1/3]

mrpt::utils::CObjectPtr::CObjectPtr ( )
inline

Definition at line 32 of file CObject.h.

◆ CObjectPtr() [2/3]

mrpt::utils::CObjectPtr::CObjectPtr ( const CObject data)
inlineexplicit

Definition at line 33 of file CObject.h.

◆ CObjectPtr() [3/3]

mrpt::utils::CObjectPtr::CObjectPtr ( CObject data)
inlineexplicit

Definition at line 34 of file CObject.h.

Member Function Documentation

◆ alias()

void mrpt::stlplus::smart_ptr_base< CObject , clone_copy< CObject > , mrpt::synch::CAtomicCounter >::alias ( const smart_ptr_base< CObject , clone_copy< CObject > , mrpt::synch::CAtomicCounter > &  r)
inlineinherited

Definition at line 312 of file CColouredPointsMap.h.

◆ alias_count()

unsigned mrpt::stlplus::smart_ptr_base< CObject , clone_copy< CObject > , mrpt::synch::CAtomicCounter >::alias_count ( void  ) const
inlineinherited

Definition at line 331 of file CColouredPointsMap.h.

◆ aliases()

bool mrpt::stlplus::smart_ptr_base< CObject , clone_copy< CObject > , mrpt::synch::CAtomicCounter >::aliases ( const smart_ptr_base< CObject , clone_copy< CObject > , mrpt::synch::CAtomicCounter > &  r) const
inlineinherited

Definition at line 325 of file CColouredPointsMap.h.

◆ clear()

void mrpt::stlplus::smart_ptr_base< CObject , clone_copy< CObject > , mrpt::synch::CAtomicCounter >::clear ( void  )
inlineinherited

Definition at line 337 of file CColouredPointsMap.h.

◆ clear_unique()

void mrpt::stlplus::smart_ptr_base< CObject , clone_copy< CObject > , mrpt::synch::CAtomicCounter >::clear_unique ( void  )
inlineinherited

Definition at line 343 of file CColouredPointsMap.h.

◆ copy()

void mrpt::stlplus::smart_ptr_base< CObject , clone_copy< CObject > , mrpt::synch::CAtomicCounter >::copy ( const smart_ptr_base< CObject , clone_copy< CObject > , mrpt::synch::CAtomicCounter > &  data)
throw (illegal_copy
)
inherited

Definition at line 370 of file CColouredPointsMap.h.

◆ handle()

void * mrpt::stlplus::smart_ptr_base< CObject , clone_copy< CObject > , mrpt::synch::CAtomicCounter >::handle ( void  ) const
inherited

Definition at line 380 of file CColouredPointsMap.h.

◆ make_alias()

void mrpt::stlplus::smart_ptr_base< CObject , clone_copy< CObject > , mrpt::synch::CAtomicCounter >::make_alias ( void *  handle)
inherited

Definition at line 386 of file CColouredPointsMap.h.

◆ make_unique()

void mrpt::stlplus::smart_ptr_base< CObject , clone_copy< CObject > , mrpt::synch::CAtomicCounter >::make_unique ( void  )
throw (illegal_copy
)
inlineinherited

Definition at line 356 of file CColouredPointsMap.h.

◆ null()

bool mrpt::stlplus::smart_ptr_base< CObject , clone_copy< CObject > , mrpt::synch::CAtomicCounter >::null ( void  ) const
inlineinherited

Definition at line 212 of file CColouredPointsMap.h.

◆ operator bool()

mrpt::stlplus::smart_ptr_base< CObject , clone_copy< CObject > , mrpt::synch::CAtomicCounter >::operator bool ( void  ) const
inherited

Definition at line 230 of file CColouredPointsMap.h.

◆ operator!()

bool mrpt::stlplus::smart_ptr_base< CObject , clone_copy< CObject > , mrpt::synch::CAtomicCounter >::operator! ( void  ) const
inherited

Definition at line 224 of file CColouredPointsMap.h.

◆ operator*() [1/2]

CObject & mrpt::stlplus::smart_ptr_base< CObject , clone_copy< CObject > , mrpt::synch::CAtomicCounter >::operator* ( void  )
throw (null_dereference
)
inlineinherited

Definition at line 239 of file CColouredPointsMap.h.

◆ operator*() [2/2]

const CObject & mrpt::stlplus::smart_ptr_base< CObject , clone_copy< CObject > , mrpt::synch::CAtomicCounter >::operator* ( void  ) const
throw (null_dereference
)
inlineinherited

Definition at line 246 of file CColouredPointsMap.h.

◆ operator->() [1/2]

CObject * mrpt::stlplus::smart_ptr_base< CObject , clone_copy< CObject > , mrpt::synch::CAtomicCounter >::operator-> ( void  )
throw (null_dereference
)
inlineinherited

Definition at line 253 of file CColouredPointsMap.h.

◆ operator->() [2/2]

const CObject * mrpt::stlplus::smart_ptr_base< CObject , clone_copy< CObject > , mrpt::synch::CAtomicCounter >::operator-> ( void  ) const
throw (null_dereference
)
inlineinherited

Definition at line 260 of file CColouredPointsMap.h.

◆ operator=() [1/2]

CObjectPtr& mrpt::utils::CObjectPtr::operator= ( const CObject data)
inline

Definition at line 35 of file CObject.h.

◆ operator=() [2/2]

CObjectPtr& mrpt::utils::CObjectPtr::operator= ( const CObjectPtr r)
inline

Definition at line 36 of file CObject.h.

◆ pointer() [1/2]

CObject * mrpt::stlplus::smart_ptr_base< CObject , clone_copy< CObject > , mrpt::synch::CAtomicCounter >::pointer ( void  )
inlineinherited

Definition at line 296 of file CColouredPointsMap.h.

◆ pointer() [2/2]

const CObject * mrpt::stlplus::smart_ptr_base< CObject , clone_copy< CObject > , mrpt::synch::CAtomicCounter >::pointer ( void  ) const
inlineinherited

Definition at line 302 of file CColouredPointsMap.h.

◆ present()

bool mrpt::stlplus::smart_ptr_base< CObject , clone_copy< CObject > , mrpt::synch::CAtomicCounter >::present ( void  ) const
inlineinherited

Definition at line 218 of file CColouredPointsMap.h.

◆ set()

void mrpt::stlplus::smart_ptr_base< CObject , clone_copy< CObject > , mrpt::synch::CAtomicCounter >::set ( CObject *  data = 0)
inherited

Definition at line 290 of file CColouredPointsMap.h.

◆ set_value()

void mrpt::stlplus::smart_ptr_base< CObject , clone_copy< CObject > , mrpt::synch::CAtomicCounter >::set_value ( const CObject &  data)
throw (illegal_copy
)
inlineinherited

Definition at line 270 of file CColouredPointsMap.h.

◆ value() [1/2]

CObject & mrpt::stlplus::smart_ptr_base< CObject , clone_copy< CObject > , mrpt::synch::CAtomicCounter >::value ( void  )
throw (null_dereference
)
inlineinherited

Definition at line 276 of file CColouredPointsMap.h.

◆ value() [2/2]

const CObject & mrpt::stlplus::smart_ptr_base< CObject , clone_copy< CObject > , mrpt::synch::CAtomicCounter >::value ( void  ) const
throw (null_dereference
)
inlineinherited

Definition at line 283 of file CColouredPointsMap.h.

Member Data Documentation

◆ m_holder

smart_ptr_holder<CObject ,mrpt::synch::CAtomicCounter >* mrpt::stlplus::smart_ptr_base< CObject , clone_copy< CObject > , mrpt::synch::CAtomicCounter >::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