#include <IntrusivePtr.h>
Inheritance diagram for ZThread::IntrusivePtr< T, LockType >:
Public Member Functions | |
IntrusivePtr (size_t InitialCount=1) | |
virtual | ~IntrusivePtr () |
void | addReference () |
void | delReference () |
ZThread::IntrusivePtr< T, LockType >::IntrusivePtr | ( | size_t | InitialCount = 1 |
) | [inline] |
Create an IntrusivePtr with a count.
virtual ZThread::IntrusivePtr< T, LockType >::~IntrusivePtr | ( | ) | [inline, virtual] |
Destroy an IntrusivePtr
void ZThread::IntrusivePtr< T, LockType >::addReference | ( | ) | [inline] |
Add a reference to this object, it will take one more call to delReference() for it to be deleted.
void ZThread::IntrusivePtr< T, LockType >::delReference | ( | ) | [inline] |
Remove a reference from this object, if the reference count drops to 0 as a result, the object deletes itself.