cartobase
5.0.5
|
Reference-counting pointer. More...
#include <cartobase/smart/rcptr.h>
Classes | |
class | insipid |
Public Member Functions | |
rc_ptr () | |
rc_ptr (T *p) | |
rc_ptr (T *p, bool externalowner) | |
template<class U > | |
rc_ptr (std::auto_ptr< U > r) | |
void | reset (T *p=NULL) |
T * | get () const |
bool | operator< (const rc_ptr< T > &other) const |
operator insipid * () const | |
![]() | |
ref () | |
ref (T *pObject) | |
ref (T *pObject, bool externalowner) | |
template<class U > | |
ref (std::auto_ptr< U > r) | |
ref (const ref< T > &other) | |
template<class R > | |
ref (const ref< R > &other) | |
~ref () | |
T * | release () |
ref< T > & | operator= (const ref< T > &other) |
T * | operator-> () const |
T & | operator* () const |
T * | pointer () const |
![]() | |
const_ref () | |
const_ref (const T *pObject) | |
const_ref (const T *pObject, bool externalowner) | |
template<class U > | |
const_ref (std::auto_ptr< U > r) | |
const_ref (const ref< T > &other) | |
const_ref (const const_ref< T > &other) | |
template<class R > | |
const_ref (const ref< R > &o) | |
template<class R > | |
const_ref (const const_ref< R > &other) | |
~const_ref () | |
const_ref< T > & | operator= (const ref< T > &other) |
const_ref< T > & | operator= (const const_ref< T > &other) |
bool | isNull () const |
bool | operator== (const ref< T > &other) const |
bool | operator== (const T *pointer) const |
bool | operator== (const const_ref< T > &other) const |
bool | operator!= (const ref< T > &other) const |
bool | operator!= (const const_ref< T > &other) const |
bool | operator!= (const T *pointer) const |
const T * | operator-> () const |
const T & | operator* () const |
const T * | pointer () const |
int | refCount () const |
![]() | |
int | count () const |
Additional Inherited Members | |
![]() | |
typedef T | referenced_type |
![]() | |
typedef T | referenced_type |
Reference-counting pointer.
The contained object is deleted when no rc_ptr point to it anymore
|
inline |
|
inlineexplicit |
|
inlineexplicit |
|
inline |
Definition at line 666 of file rcptr.h.
Referenced by carto::weak_shared_ptr< T >::operator!=(), carto::shared_ptr< T >::operator!=(), carto::weak_ptr< T >::operator!=(), carto::weak_ptr< T >::operator=(), carto::shared_ptr< T >::operator=(), carto::weak_shared_ptr< T >::operator==(), carto::shared_ptr< T >::operator==(), carto::weak_ptr< T >::operator==(), carto::Object::operator==(), and carto::weak_shared_ptr< T >::weak_shared_ptr().
|
inline |
|
inline |
|
inline |
Definition at line 664 of file rcptr.h.
Referenced by carto::weak_shared_ptr< T >::reset(), carto::shared_ptr< T >::reset(), and carto::weak_shared_ptr< T >::~weak_shared_ptr().