a base class that provides implementations of reference counting operations. More...
#include <ref-count-base.h>
Public Member Functions | |
RefCountBase () | |
RefCountBase (const RefCountBase &o) | |
RefCountBase & | operator= (const RefCountBase &o) |
virtual | ~RefCountBase () |
void | Ref (void) const |
void | Unref (void) const |
uint32_t | GetReferenceCount (void) const |
Private Attributes | |
uint32_t | m_count |
a base class that provides implementations of reference counting operations.
A base class that provides implementations of reference counting operations, for classes that wish to use the templatized smart pointer for memory management but that do not wish to derive from class ns3::Object.
Definition at line 40 of file ref-count-base.h.
ns3::RefCountBase::RefCountBase | ( | ) |
Definition at line 28 of file ref-count-base.cc.
ns3::RefCountBase::RefCountBase | ( | const RefCountBase & | o | ) |
Definition at line 33 of file ref-count-base.cc.
ns3::RefCountBase::~RefCountBase | ( | ) | [virtual] |
Definition at line 42 of file ref-count-base.cc.
uint32_t ns3::RefCountBase::GetReferenceCount | ( | void | ) | const |
Get the reference count of the object. Normally not needed; for language bindings.
Definition at line 47 of file ref-count-base.cc.
References m_count.
RefCountBase & ns3::RefCountBase::operator= | ( | const RefCountBase & | o | ) |
Definition at line 37 of file ref-count-base.cc.
void ns3::RefCountBase::Ref | ( | void | ) | const [inline] |
Increment the reference count. This method should not be called by user code. RefCountBase instances are expected to be used in conjunction with the Ptr template which would make calling Ref unecessary and dangerous.
Definition at line 79 of file ref-count-base.h.
References m_count.
void ns3::RefCountBase::Unref | ( | void | ) | const [inline] |
Decrement the reference count. This method should not be called by user code. RefCountBase instances are expected to be used in conjunction with the Ptr template which would make calling Ref unecessary and dangerous.
Definition at line 85 of file ref-count-base.h.
References m_count.
uint32_t ns3::RefCountBase::m_count [mutable, private] |
Definition at line 70 of file ref-count-base.h.
Referenced by GetReferenceCount(), Ref(), and Unref().