Fabcoin Core  0.16.2
P2P Digital Currency
Public Member Functions | List of all members
clonable_ptr< T > Class Template Reference

A pointer which can be copied and cloned. More...

#include <smartptr.h>

Inheritance diagram for clonable_ptr< T >:
[legend]
Collaboration diagram for clonable_ptr< T >:
[legend]

Public Member Functions

 clonable_ptr (const T &obj)
 
 clonable_ptr (T *p=NULL)
 
 clonable_ptr (const clonable_ptr< T > &rhs)
 
clonable_ptr< T > & operator= (const clonable_ptr< T > &rhs)
 
- Public Member Functions inherited from member_ptr< T >
 member_ptr (T *p=NULL)
 
 ~member_ptr ()
 
const Toperator* () const
 
Toperator* ()
 
const Toperator-> () const
 
Toperator-> ()
 
const Tget () const
 
Tget ()
 
Trelease ()
 
void reset (T *p=0)
 

Additional Inherited Members

- Protected Member Functions inherited from member_ptr< T >
 member_ptr (const member_ptr< T > &rhs)
 
void operator= (const member_ptr< T > &rhs)
 
- Protected Attributes inherited from member_ptr< T >
Tm_p
 

Detailed Description

template<class T>
class clonable_ptr< T >

A pointer which can be copied and cloned.

Template Parameters
Tclass or type

T should adhere to the Clonable interface

Definition at line 108 of file smartptr.h.

Constructor & Destructor Documentation

template<class T>
clonable_ptr< T >::clonable_ptr ( const T obj)
inline

Definition at line 111 of file smartptr.h.

template<class T>
clonable_ptr< T >::clonable_ptr ( T p = NULL)
inline

Definition at line 112 of file smartptr.h.

template<class T>
clonable_ptr< T >::clonable_ptr ( const clonable_ptr< T > &  rhs)
inline

Definition at line 113 of file smartptr.h.

Member Function Documentation

template<class T>
clonable_ptr< T > & clonable_ptr< T >::operator= ( const clonable_ptr< T > &  rhs)

Definition at line 119 of file smartptr.h.


The documentation for this class was generated from the following file: