Main MRPT website > C++ reference for MRPT 1.4.0
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 32 of file CObject.h.

#include <mrpt/utils/CObject.h>

Inheritance diagram for mrpt::utils::CObjectPtr:
Inheritance graph

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

Definition at line 34 of file CObject.h.

Definition at line 72 of file smart_ptr.hpp.

Definition at line 71 of file smart_ptr.hpp.

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

Definition at line 73 of file smart_ptr.hpp.

Definition at line 70 of file smart_ptr.hpp.

Constructor & Destructor Documentation

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

Definition at line 36 of file CObject.h.

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

Definition at line 37 of file CObject.h.

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

Definition at line 38 of file CObject.h.

Member Function Documentation

void stlplus::smart_ptr_base< CObject , clone_copy< CObject > , mrpt::synch::CAtomicCounter >::alias ( const smart_ptr_base< CObject , clone_copy< CObject > , mrpt::synch::CAtomicCounter > &  )
inlineinherited
unsigned stlplus::smart_ptr_base< CObject , clone_copy< CObject > , mrpt::synch::CAtomicCounter >::alias_count ( void  ) const
inlineinherited
bool stlplus::smart_ptr_base< CObject , clone_copy< CObject > , mrpt::synch::CAtomicCounter >::aliases ( const smart_ptr_base< CObject , clone_copy< CObject > , mrpt::synch::CAtomicCounter > &  ) const
inlineinherited
void stlplus::smart_ptr_base< CObject , clone_copy< CObject > , mrpt::synch::CAtomicCounter >::clear ( void  )
inlineinherited
void stlplus::smart_ptr_base< CObject , clone_copy< CObject > , mrpt::synch::CAtomicCounter >::clear_unique ( void  )
inlineinherited
void stlplus::smart_ptr_base< CObject , clone_copy< CObject > , mrpt::synch::CAtomicCounter >::copy ( const smart_ptr_base< CObject , clone_copy< CObject > , mrpt::synch::CAtomicCounter > &  )
throw (illegal_copy
)
inherited
void* stlplus::smart_ptr_base< CObject , clone_copy< CObject > , mrpt::synch::CAtomicCounter >::handle ( void  ) const
inherited
void stlplus::smart_ptr_base< CObject , clone_copy< CObject > , mrpt::synch::CAtomicCounter >::make_alias ( void *  handle)
inherited
void stlplus::smart_ptr_base< CObject , clone_copy< CObject > , mrpt::synch::CAtomicCounter >::make_unique ( void  )
throw (illegal_copy
)
inlineinherited
bool stlplus::smart_ptr_base< CObject , clone_copy< CObject > , mrpt::synch::CAtomicCounter >::null ( void  ) const
inherited
stlplus::smart_ptr_base< CObject , clone_copy< CObject > , mrpt::synch::CAtomicCounter >::operator bool ( void  ) const
inherited
bool stlplus::smart_ptr_base< CObject , clone_copy< CObject > , mrpt::synch::CAtomicCounter >::operator! ( void  ) const
inherited
CObject & stlplus::smart_ptr_base< CObject , clone_copy< CObject > , mrpt::synch::CAtomicCounter >::operator* ( void  )
throw (null_dereference
)
inherited
const CObject & stlplus::smart_ptr_base< CObject , clone_copy< CObject > , mrpt::synch::CAtomicCounter >::operator* ( void  ) const
throw (null_dereference
)
inherited
CObject * stlplus::smart_ptr_base< CObject , clone_copy< CObject > , mrpt::synch::CAtomicCounter >::operator-> ( void  )
throw (null_dereference
)
inherited
const CObject * stlplus::smart_ptr_base< CObject , clone_copy< CObject > , mrpt::synch::CAtomicCounter >::operator-> ( void  ) const
throw (null_dereference
)
inherited
CObjectPtr& mrpt::utils::CObjectPtr::operator= ( const CObject data)
inline

Definition at line 39 of file CObject.h.

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

Definition at line 40 of file CObject.h.

CObject * stlplus::smart_ptr_base< CObject , clone_copy< CObject > , mrpt::synch::CAtomicCounter >::pointer ( void  )
inherited
const CObject * stlplus::smart_ptr_base< CObject , clone_copy< CObject > , mrpt::synch::CAtomicCounter >::pointer ( void  ) const
inherited
bool stlplus::smart_ptr_base< CObject , clone_copy< CObject > , mrpt::synch::CAtomicCounter >::present ( void  ) const
inherited
void stlplus::smart_ptr_base< CObject , clone_copy< CObject > , mrpt::synch::CAtomicCounter >::set ( CObject *  data = 0)
inherited
void stlplus::smart_ptr_base< CObject , clone_copy< CObject > , mrpt::synch::CAtomicCounter >::set_value ( const CObject &  data)
throw (illegal_copy
)
inherited
CObject & stlplus::smart_ptr_base< CObject , clone_copy< CObject > , mrpt::synch::CAtomicCounter >::value ( void  )
throw (null_dereference
)
inherited
const CObject & stlplus::smart_ptr_base< CObject , clone_copy< CObject > , mrpt::synch::CAtomicCounter >::value ( void  ) const
throw (null_dereference
)
inherited

Member Data Documentation

smart_ptr_holder<CObject ,mrpt::synch::CAtomicCounter >* stlplus::smart_ptr_base< CObject , clone_copy< CObject > , mrpt::synch::CAtomicCounter >::m_holder
protectedinherited

Definition at line 175 of file smart_ptr.hpp.




Page generated by Doxygen 1.8.11 for MRPT 1.4.0 SVN: at Mon Aug 15 11:50:21 UTC 2016