Main MRPT website > C++ reference
MRPT logo
Public Types | Public Member Functions | Protected Attributes
stlplus::smart_ptr Class Reference

#include <mrpt/otherlibs/stlplus/smart_ptr.hpp>

Inheritance diagram for stlplus::smart_ptr:
Inheritance graph
[legend]

List of all members.

Public Types

typedef T value_type
typedef T & reference
typedef const T & const_reference
typedef C 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, C, COUNTER > &)
bool aliases (const smart_ptr_base< T, C, 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, C, 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

typedef const T& stlplus::smart_ptr_base::const_reference [inherited]

Definition at line 112 of file smart_ptr.hpp.

typedef T& stlplus::smart_ptr_base::reference [inherited]

Definition at line 111 of file smart_ptr.hpp.

typedef C stlplus::smart_ptr_base::value_copy [inherited]

Definition at line 113 of file smart_ptr.hpp.

typedef T stlplus::smart_ptr_base::value_type [inherited]

Definition at line 110 of file smart_ptr.hpp.


Constructor & Destructor Documentation

stlplus::smart_ptr::smart_ptr ( void  ) [inline]

Definition at line 271 of file smart_ptr.hpp.

stlplus::smart_ptr::smart_ptr ( const T &  data) [inline, explicit]

Definition at line 272 of file smart_ptr.hpp.

stlplus::smart_ptr::smart_ptr ( T *  data) [inline, explicit]

Definition at line 273 of file smart_ptr.hpp.

stlplus::smart_ptr::~smart_ptr ( void  ) [inline]

Definition at line 276 of file smart_ptr.hpp.


Member Function Documentation

void stlplus::smart_ptr_base::alias ( const smart_ptr_base< T, C, COUNTER > &  ) [inline, inherited]
unsigned stlplus::smart_ptr_base::alias_count ( void  ) const [inline, inherited]
bool stlplus::smart_ptr_base::aliases ( const smart_ptr_base< T, C, COUNTER > &  ) const [inline, inherited]
void stlplus::smart_ptr_base::clear ( void  ) [inline, inherited]
void stlplus::smart_ptr_base::clear_unique ( void  ) [inline, inherited]
void stlplus::smart_ptr_base::copy ( const smart_ptr_base< T, C, COUNTER > &  ) throw (illegal_copy) [inherited]
void* stlplus::smart_ptr_base::handle ( void  ) const [inherited]
void stlplus::smart_ptr_base::make_alias ( void *  handle) [inherited]
void stlplus::smart_ptr_base::make_unique ( void  ) throw (illegal_copy) [inline, inherited]
bool stlplus::smart_ptr_base::null ( void  ) const [inherited]
stlplus::smart_ptr_base::operator bool ( void  ) const [inherited]
bool stlplus::smart_ptr_base::operator! ( void  ) const [inherited]
T& stlplus::smart_ptr_base::operator* ( void  ) throw (null_dereference) [inherited]
const T& stlplus::smart_ptr_base::operator* ( void  ) const throw (null_dereference) [inherited]
T* stlplus::smart_ptr_base::operator-> ( void  ) throw (null_dereference) [inherited]
const T* stlplus::smart_ptr_base::operator-> ( void  ) const throw (null_dereference) [inherited]
smart_ptr<T>& stlplus::smart_ptr::operator= ( const T &  data) [inline]

Definition at line 274 of file smart_ptr.hpp.

smart_ptr<T>& stlplus::smart_ptr::operator= ( const smart_ptr< T > &  r) [inline]

Definition at line 275 of file smart_ptr.hpp.

T* stlplus::smart_ptr_base::pointer ( void  ) [inherited]
const T* stlplus::smart_ptr_base::pointer ( void  ) const [inherited]
bool stlplus::smart_ptr_base::present ( void  ) const [inherited]
void stlplus::smart_ptr_base::set ( T *  data = 0) [inherited]
void stlplus::smart_ptr_base::set_value ( const T &  data) throw (illegal_copy) [inherited]
T& stlplus::smart_ptr_base::value ( void  ) throw (null_dereference) [inherited]
const T& stlplus::smart_ptr_base::value ( void  ) const throw (null_dereference) [inherited]

Member Data Documentation

smart_ptr_holder<T,COUNTER>* stlplus::smart_ptr_base::m_holder [protected, inherited]

Definition at line 215 of file smart_ptr.hpp.




Page generated by Doxygen 1.7.5 for MRPT 0.9.5 SVN: at Thu Oct 13 21:25:36 UTC 2011