A Discrete-Event Network Simulator
API
ns3::RefCountBase Class Reference

A deprecated way to get reference-counting powers. More...

#include "ref-count-base.h"

+ Inheritance diagram for ns3::RefCountBase:
+ Collaboration diagram for ns3::RefCountBase:

Public Member Functions

virtual ~RefCountBase ()
 This only thing this class does it declare a virtual destructor. More...
 
- Public Member Functions inherited from ns3::SimpleRefCount< RefCountBase >
 SimpleRefCount ()
 Default constructor. More...
 
 SimpleRefCount (const SimpleRefCount &o[[maybe_unused]])
 Copy constructor. More...
 
uint32_t GetReferenceCount (void) const
 Get the reference count of the object. More...
 
SimpleRefCountoperator= ([[maybe_unused]] const SimpleRefCount &o)
 Assignment operator. More...
 
void Ref (void) const
 Increment the reference count. More...
 
void Unref (void) const
 Decrement the reference count. More...
 

Detailed Description

A deprecated way to get reference-counting powers.

Deprecated:
Users who wish to use reference counting for a class of their own should use instead the template ns3::SimpleRefCount. This class is maintained purely for compatibility to avoid breaking the code of users.

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

Constructor & Destructor Documentation

◆ ~RefCountBase()

ns3::RefCountBase::~RefCountBase ( )
virtual

This only thing this class does it declare a virtual destructor.

Definition at line 38 of file ref-count-base.cc.

References NS_LOG_FUNCTION.


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