|
ViennaCL - The Vienna Computing Library
1.5.1
|
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_ptr & | operator= (const shared_ptr &s) |
| T * | get () const |
| T * | operator-> () const |
| T & | operator* () const |
| void | inc () |
| void | dec () |
Friends | |
| class | shared_ptr |
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.
| shared_ptr | ( | ) | [inline] |
| shared_ptr | ( | U * | pu, |
| Deleter | d | ||
| ) | [inline] |
| shared_ptr | ( | U * | pu | ) | [inline, explicit] |
| shared_ptr | ( | const shared_ptr< T > & | s | ) | [inline] |
| shared_ptr | ( | const shared_ptr< U > & | s | ) | [inline] |
| ~shared_ptr | ( | ) | [inline] |
| 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] |
friend class shared_ptr [friend] |
1.7.6.1