![]() |
Reference count management class for a particular memory resource.The RefCount class manages the reference counting for a shared memory resource. More...
#include <SharedPtr.h>
Public Member Functions | |
RefCount () | |
Default constructor for RefCount. | |
template<typename Type > | |
RefCount (Type *ptr) | |
Initialization constructor for RefCount. | |
RefCount (const RefCount &count) | |
Copy constructor for RefCount. More... | |
~RefCount () | |
Destructor for RefCount. | |
RefCount & | operator= (const RefCount &count) |
Copy assignement operator for RefCount. More... | |
Utility variables | |
void | swap (RefCount &count) throw () |
Swapping the contents of two reference counters. More... | |
Private Attributes | |
Member variables | |
SharedCountBase * | counter_ |
Shared reference counter. | |
Reference count management class for a particular memory resource.
The RefCount class manages the reference counting for a shared memory resource.
|
inline |
Copy constructor for RefCount.
count | The reference counter to be copied. |
Copy assignement operator for RefCount.
count | The reference counter to be copied. |
|
inline |
Swapping the contents of two reference counters.
count | The reference counter to be swapped. |
no-throw | guarantee. |