A Discrete-Event Network Simulator
API
Public Member Functions | Private Attributes | List of all members
ns3::tests::PtrTestBase Class Reference

Pointer base test class. More...

+ Inheritance diagram for ns3::tests::PtrTestBase:

Public Member Functions

 PtrTestBase ()
 Constructor. More...
 
virtual ~PtrTestBase ()
 Destructor. More...
 
void Ref (void) const
 Increment the reference count. More...
 
void Unref (void) const
 Decrement the reference count, and delete if necessary. More...
 

Private Attributes

uint32_t m_count
 The reference count. More...
 

Detailed Description

Pointer base test class.

Definition at line 48 of file ptr-test-suite.cc.

Constructor & Destructor Documentation

◆ PtrTestBase()

ns3::tests::PtrTestBase::PtrTestBase ( )

Constructor.

Definition at line 114 of file ptr-test-suite.cc.

◆ ~PtrTestBase()

ns3::tests::PtrTestBase::~PtrTestBase ( )
virtual

Destructor.

Definition at line 118 of file ptr-test-suite.cc.

Member Function Documentation

◆ Ref()

void ns3::tests::PtrTestBase::Ref ( void  ) const

Increment the reference count.

Definition at line 122 of file ptr-test-suite.cc.

References m_count.

◆ Unref()

void ns3::tests::PtrTestBase::Unref ( void  ) const

Decrement the reference count, and delete if necessary.

Definition at line 127 of file ptr-test-suite.cc.

References m_count.

Member Data Documentation

◆ m_count

uint32_t ns3::tests::PtrTestBase::m_count
mutableprivate

The reference count.

Definition at line 60 of file ptr-test-suite.cc.

Referenced by Ref(), and Unref().


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