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

void Ref (void) const
void Unref (void) const
uint32_t GetReferenceCount (void) const


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.


Member Function Documentation

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.


The documentation for this class was generated from the following file:

Generated on Fri Apr 9 15:01:09 2010 for NS-3 by  doxygen 1.5.8