#include <ref-count-base.h>
Public Member Functions | |
void | Ref (void) const |
void | Unref (void) const |
uint32_t | GetReferenceCount (void) const |
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.
uint32_t ns3::RefCountBase::GetReferenceCount | ( | void | ) | const |
Get the reference count of the object. Normally not needed; for language bindings.
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.
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.