ns3::RefCountBase Class Reference

a base class that provides implementations of reference counting operations. More...

#include <ref-count-base.h>

Inheritance diagram for ns3::RefCountBase:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 RefCountBase ()
 RefCountBase (const RefCountBase &o)
RefCountBaseoperator= (const RefCountBase &o)
virtual ~RefCountBase ()
void Ref (void) const
void Unref (void) const
uint32_t GetReferenceCount (void) const

Private Attributes

uint32_t m_count

Detailed Description

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.


Constructor & Destructor Documentation

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.


Member Function Documentation

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.


Member Data Documentation

uint32_t ns3::RefCountBase::m_count [mutable, private]

Definition at line 70 of file ref-count-base.h.

Referenced by GetReferenceCount(), Ref(), and Unref().


The documentation for this class was generated from the following files:
Generated on Thu Dec 3 14:10:34 2009 for NS-3 by  doxygen 1.6.3