nub::ref_counts Struct Reference
List of all members.
Public Member Functions
void * ||operator new (size_t bytes)|
void ||operator delete (void *space, size_t bytes)|
bool ||is_owner_alive () const throw ()|
void ||acquire_weak () throw ()|
int ||release_weak () throw ()|
void ||debug_dump () const throw ()|
manages strong+weak reference counts for nub::ref_counted
objects. Its main purpose is to allow weak ref-counting; a client who wants to do weak ref-counting can get a hold of the nub::ref_counted
, and then check whether is_owner_alive() to know whether the nub::ref_counted object
is still valid. This technique is implemented by nub::soft_ref
. The nub::ref_counts object
will delete itself when both its strong and weak counts go to 0.
Definition at line 72 of file refcounted.h.
The documentation for this struct was generated from the following files: