smart_ptr< T > Class Template Reference

Ratpac-two: smart_ptr< T > Class Template Reference
Ratpac-two
smart_ptr< T > Class Template Reference

Public Types

typedef T value_type
 
typedef T & reference
 
typedef const T & const_reference
 

Public Member Functions

 smart_ptr (const T &data)
 
smart_ptr< T > & operator= (const T &data)
 
 smart_ptr (const smart_ptr< T > &r)
 
smart_ptr< T > & operator= (const smart_ptr< T > &)
 
 smart_ptr (T *data)
 
smart_ptr< T > & operator= (T *data)
 
 operator bool (void) const
 
bool operator! (void) const
 
bool present (void) const
 
bool null (void) const
 
T & operator* (void) throw ()
 
const T & operator* (void) const throw ()
 
T * operator-> (void) throw ()
 
const T * operator-> (void) const throw ()
 
void set_value (const T &data)
 
T & value (void) throw ()
 
const T & value (void) const throw ()
 
void set (T *data=0)
 
T * pointer (void)
 
const T * pointer (void) const
 
bool aliases (const smart_ptr< T > &) const
 
unsigned alias_count (void) const
 
void make_unique (void)
 
void clear (void)
 
void clear_unique (void)
 
void copy (const smart_ptr< T > &)
 
smart_ptr< T > copy (void) const
 
void dump (dump_context &str) const throw ()
 
void restore (restore_context &str) throw ()
 

Protected Attributes

smart_ptr_holder< T > * m_holder
 

The documentation for this class was generated from the following file:
  • /home/docs/checkouts/readthedocs.org/user_builds/ratpac/checkouts/latest/src/external/stlplus/include/stlplus/smart_ptr.hpp