A Discrete-Event Network Simulator
ns3::CallbackImplBase Class Referenceabstract

Abstract base class for CallbackImpl Provides reference counting and equality test. More...

#include "callback.h"

+ Inheritance diagram for ns3::CallbackImplBase:
+ Collaboration diagram for ns3::CallbackImplBase:

Public Member Functions

virtual ~CallbackImplBase ()
 Virtual destructor. More...
virtual std::string GetTypeid (void) const =0
 Get the name of this object type. More...
virtual bool IsEqual (Ptr< const CallbackImplBase > other) const =0
 Equality test. More...
- Public Member Functions inherited from ns3::SimpleRefCount< CallbackImplBase >
 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...

Static Protected Member Functions

static std::string Demangle (const std::string &mangled)
template<typename T >
static std::string GetCppTypeid (void)
 Helper to get the C++ typeid as a string. More...

Detailed Description

Abstract base class for CallbackImpl Provides reference counting and equality test.

Definition at line 107 of file callback.h.

Constructor & Destructor Documentation

◆ ~CallbackImplBase()

virtual ns3::CallbackImplBase::~CallbackImplBase ( )

Virtual destructor.

Definition at line 111 of file callback.h.

Member Function Documentation

◆ Demangle()

std::string ns3::CallbackImplBase::Demangle ( const std::string &  mangled)
[in]mangledThe mangled string
The demangled form of mangled

Definition at line 134 of file callback.cc.


Referenced by GetCppTypeid().

+ Here is the caller graph for this function:

◆ GetCppTypeid()

template<typename T >
static std::string ns3::CallbackImplBase::GetCppTypeid ( void  )

Helper to get the C++ typeid as a string.

Template Parameters
T[explicit] The type of the argument.
The result of applying typeid to the template type T.

Definition at line 139 of file callback.h.

References Demangle().

+ Here is the call graph for this function:

◆ GetTypeid()

◆ IsEqual()

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