B2BITS FIX Antenna HFT
1.0.17
|
A generic reference counter. More...
#include <B2BITS_ReferenceCounter.h>
Public Member Functions | |
virtual bool | addRef () const throw () |
Increments reference counter. More... | |
long | decrement () const throw () |
virtual long | getNRef () const throw () |
Returns the current value of the reference counter. More... | |
ReferenceCounter () throw () | |
Constructor. More... | |
virtual long | release () const throw () |
Decrements reference counter. More... | |
Protected Member Functions | |
virtual | ~ReferenceCounter () |
Destructor. More... | |
Protected Attributes | |
volatile System::u32 | m_nRef |
The counter. More... | |
A generic reference counter.
Utils::ReferenceCounter::ReferenceCounter | ( | ) | ||
throw | ( | |||
) |
Constructor.
|
protectedvirtual |
Destructor.
|
virtual |
Increments reference counter.
long Utils::ReferenceCounter::decrement | ( | ) | const | |
throw | ( | |||
) |
|
virtual |
Returns the current value of the reference counter.
|
virtual |
Decrements reference counter.
If it becomes equal to 0 then calls destructor.
|
mutableprotected |
The counter.