object which acts like a c-pointer, but when dereferenced returns a delegate object which adds methods to the pointer
More...
|
| operator bool () const |
| exposes the boolean interpretation of the underlying pointer More...
|
|
CPtr< Traits > | operator* () |
| returns a delegate object which acts exactly like a c-pointer but cannot be copied and so reference counting cannot be subverted More...
|
|
ConstCPtr< Traits > | operator* () const |
| returns a delegate object which acts exactly like a c-pointer but cannot be copied and so reference counting cannot be subverted More...
|
|
template<typename T2 > |
LValuePair< RefPtr< Traits >, T2 > | operator, (T2 &other) |
| can be paired with other objects for multiple (tuple) returns More...
|
|
Delegate | operator-> () |
| returns a delegate object which exposes member functions of the underlying object More...
|
|
const Delegate | operator-> () const |
| returns a delegate object which exposes member functions of the underlying object More...
|
|
RefPtr< Traits > & | operator= (const RefPtr< Traits > &other) |
| assignment operator, decreases reference count of current object, increases reference count of copied pointer More...
|
|
RefPtr< Traits > & | operator= (cobjptr ptr) |
| 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 |
| return the stored pointer, subverting reference safety, see specializations if Storage is not the same as cobjptr More...
|
|
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...
|
|
template<class Traits>
class fontconfig::RefPtr< Traits >
object which acts like a c-pointer, but when dereferenced returns a delegate object which adds methods to the pointer
- Note
- If the pointer is a reference counted object then the reference count is managed by this class and so long as pointer safety is not subverted all reference counted objects will be freed automatically when their references are all destroyed.
Definition at line 33 of file CPtr.h.