cheshirekow
v0.1.0
|
pointer to a reference counted object, auto destruct when reference count is zero More...
#include <cpp_fontconfig/freetype.h>
Public Types | |
typedef Traits::cobjptr | cobjptr |
typedef Traits::Delegate | Delegate |
typedef Traits::Storage | Storage |
Public Member Functions | |
operator bool () const | |
CPtr< Traits > | operator* () |
ConstCPtr< Traits > | operator* () const |
template<typename T2 > | |
LValuePair< RefPtr< Traits >, T2 > | operator, (T2 &other) |
Delegate | operator-> () |
the member operator, exposes the underlying cobj pointer More... | |
const Delegate | operator-> () const |
RefPtr< Traits > & | operator= (const RefPtr< Traits > &other) |
assignment operator, decreases reference count of current object, increases reference count of copied pointer More... | |
RefPtr (cobjptr ptr=0, bool doRef=false) | |
create a RefPtr from the specified cobj More... | |
RefPtr (const RefPtr< Traits > &other) | |
copy construct a pointer, increasing the reference count More... | |
cobjptr | subvert () |
return the stored pointer, subverting reference safety, see specializations if Storage is not the same as cobjptr More... | |
const cobjptr | subvert () const |
void | unlink () |
dereference the stored object and turn this into a null pointer More... | |
~RefPtr () | |
when the RefPtr is destroyed the reference count of the pointed-to object is decreased More... | |
Private Member Functions | |
void | dereference () |
decrease reference count by one, see specializations More... | |
void | reference () |
increase reference count by one, see specializations More... | |
Private Attributes | |
Storage | m_ptr |
pointer to a reference counted object, auto destruct when reference count is zero
Definition at line 35 of file freetype.h.
typedef Traits::cobjptr freetype::RefPtr< T >::cobjptr |
typedef Traits::Delegate freetype::RefPtr< T >::Delegate |
typedef Traits::Storage freetype::RefPtr< T >::Storage |
|
inlineexplicit |
|
inline |
|
inline |
|
inlineprivate |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlineprivate |
|
inline |
|
inline |
|
inline |
|
private |