#include <sharedPointer_boost.hh>
Public Member Functions | |
RCP () | |
Default constructor. | |
RCP (T *x) | |
RCP (boost::shared_ptr< T > &x) | |
template<class F > | |
RCP (const boost::shared_ptr< F > &x) | |
template<class F , class G > | |
RCP (F x, G y) | |
Constructor which includes the deleter G. | |
RCP< T > & | operator= (const RCP< T > x) |
template<class F > | |
RCP< T > & | operator= (const boost::shared_ptr< F > x) |
RCP () | |
Default constructor. | |
RCP (T *x) | |
RCP (std::shared_ptr< T > &x) | |
template<class F > | |
RCP (const std::shared_ptr< F > &x) | |
template<class F , class G > | |
RCP (F x, G y) | |
Constructor which includes the deleter G. | |
RCP< T > & | operator= (const RCP< T > x) |
template<class F > | |
RCP< T > & | operator= (const std::shared_ptr< F > x) |
Reference-counting pointer
Definition at line 28 of file sharedPointer_std.hh.
|
inline |
Default constructor.
Definition at line 32 of file sharedPointer_boost.hh.
|
inlineexplicit |
Constructor for a simple pointer, which will be deleted by the RCP
It should be only called with pointer to dynamic variables, e.g.
RCP p(new int(4));
Do NOT use it with pointers to variables in the stack. Do not
int i = 4; RCP p(&i); // <-- DO NOT --
Use instead the function makeRCP_weak
for weak RCPs, where the pointer is not deleted.
int i = 4; RCP p = makeRCP_weak(&i);
Definition at line 46 of file sharedPointer_boost.hh.
|
inline |
Definition at line 48 of file sharedPointer_boost.hh.
|
inline |
Definition at line 51 of file sharedPointer_boost.hh.
Constructor which includes the deleter G.
Definition at line 55 of file sharedPointer_boost.hh.
|
inline |
Default constructor.
Definition at line 32 of file sharedPointer_std.hh.
|
inlineexplicit |
Constructor for a simple pointer, which will be deleted by the RCP
It should be only called with pointer to dynamic variables, e.g.
RCP p(new int(4));
Do NOT use it with pointers to variables in the stack. Do not
int i = 4; RCP p(&i); // <-- DO NOT --
Use instead the function makeRCP_weak
for weak RCPs, where the pointer is not deleted.
int i = 4; RCP p = makeRCP_weak(&i);
Definition at line 46 of file sharedPointer_std.hh.
|
inline |
Definition at line 48 of file sharedPointer_std.hh.
|
inline |
Definition at line 51 of file sharedPointer_std.hh.
Constructor which includes the deleter G.
Definition at line 55 of file sharedPointer_std.hh.
|
inline |
Definition at line 64 of file sharedPointer_boost.hh.
|
inline |
Definition at line 57 of file sharedPointer_boost.hh.
|
inline |
Definition at line 57 of file sharedPointer_std.hh.
|
inline |
Definition at line 64 of file sharedPointer_std.hh.