Smart Pointers

copy_ptr Class Template Reference

#include <copy_ptr.hpp>

List of all members.


Detailed Description

template<typename T>
class copy_ptr< T >

copy_ptr is a deep copy (Clone) smart pointer that does not require the pointee to have clone function logic.

Definition at line 50 of file copy_ptr.hpp.

Public Types

typedef T * pointer
typedef T & reference
enum  implement_default_object

Public Member Functions

template<typename T_obj>
 copy_ptr (T_obj *type)
template<typename T_obj, class AX_TYPE>
 copy_ptr (T_obj *type, AX_TYPE &)
 ~copy_ptr () throw ()
 copy_ptr (const copy_ptr &Src)
template<class CompatibleDerivedT>
 copy_ptr (const copy_ptr< CompatibleDerivedT > &Src)
template<class CompatibleSmartPtr>
 copy_ptr (const CompatibleSmartPtr &Src)
copy_ptroperator= (const copy_ptr &Src)
 copy_ptr (implement_default_object use_default_obj=eYes)
template<class CompatibleDerivedT>
copy_ptroperator= (const copy_ptr< CompatibleDerivedT > &Src)
bool operator! () const
template<typename T2>
copy_ptrequal (const T2 &Src)
T * operator-> () const
T & operator * () const
copy_ptroperator+= (const copy_ptr &Src)
template<typename T2>
copy_ptroperator+= (const T2 &Src)
copy_ptroperator+ (const copy_ptr &Src)
copy_ptroperator-= (const copy_ptr &Src)
copy_ptroperator- (const copy_ptr &Src)
const T * c_ptr () const
const T & c_ref () const
T * get_ptr ()
void swap (copy_ptr< T > &other) throw ()
clone_fct_Type get_function_ptr () const

Static Public Member Functions

template<typename T_obj>
static clone_fct_Type get_alloc_func (T_obj *)
static void SetDefaultObject (const copy_ptr< T > &NewValue)


The documentation for this class was generated from the following file:
Generated on Wed Mar 29 21:58:59 2006 for Smart Pointers by  doxygen 1.4.6.Axter [Axter-Extended-Version]