ViennaCL - The Vienna Computing Library  1.5.1
Public Member Functions | Friends
shared_ptr< T > Class Template Reference

A shared pointer class similar to boost::shared_ptr. Reimplemented in order to avoid a Boost-dependency. Will be replaced by std::shared_ptr as soon as C++11 is widely available. More...

#include <shared_ptr.hpp>

Public Member Functions

 shared_ptr ()
 
template<class U , class Deleter >
 shared_ptr (U *pu, Deleter d)
 
template<class U >
 shared_ptr (U *pu)
 
 shared_ptr (const shared_ptr &s)
 
template<class U >
 shared_ptr (const shared_ptr< U > &s)
 
 ~shared_ptr ()
 
void reset ()
 
void reset (T *ptr)
 
void swap (shared_ptr< T > &other)
 
shared_ptroperator= (const shared_ptr &s)
 
T * get () const
 
T * operator-> () const
 
T & operator* () const
 
void inc ()
 
void dec ()
 

Friends

template<class U >
class shared_ptr
 

Detailed Description

template<class T>
class viennacl::tools::shared_ptr< T >

A shared pointer class similar to boost::shared_ptr. Reimplemented in order to avoid a Boost-dependency. Will be replaced by std::shared_ptr as soon as C++11 is widely available.

Constructor & Destructor Documentation

shared_ptr ( )
inline
shared_ptr ( U *  pu,
Deleter  d 
)
inline
shared_ptr ( U *  pu)
inlineexplicit
shared_ptr ( const shared_ptr< T > &  s)
inline
shared_ptr ( const shared_ptr< U > &  s)
inline
~shared_ptr ( )
inline

Member Function Documentation

void dec ( )
inline
T* get ( ) const
inline
void inc ( )
inline
T& operator* ( void  ) const
inline
T* operator-> ( ) const
inline
shared_ptr& operator= ( const shared_ptr< T > &  s)
inline
void reset ( )
inline
void reset ( T *  ptr)
inline
void swap ( shared_ptr< T > &  other)
inline

Friends And Related Function Documentation

friend class shared_ptr
friend

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