A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
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.
 
virtual std::string GetTypeid () const =0
 Get the name of this object type.
 
virtual bool IsEqual (Ptr< const CallbackImplBase > other) const =0
 Equality test.
 
- Public Member Functions inherited from ns3::SimpleRefCount< CallbackImplBase >
 SimpleRefCount ()
 Default constructor.
 
 SimpleRefCount (const SimpleRefCount &o)
 Copy constructor.
 
uint32_t GetReferenceCount () const
 Get the reference count of the object.
 
SimpleRefCountoperator= (const SimpleRefCount &o)
 Assignment operator.
 
void Ref () const
 Increment the reference count.
 
void Unref () const
 Decrement the reference count.
 

Static Protected Member Functions

template<typename T >
static std::string GetCppTypeid ()
 Helper to get the C++ typeid as a string.
 

Detailed Description

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

Definition at line 70 of file callback.h.

Constructor & Destructor Documentation

◆ ~CallbackImplBase()

virtual ns3::CallbackImplBase::~CallbackImplBase ( )
inlinevirtual

Virtual destructor.

Definition at line 74 of file callback.h.

Member Function Documentation

◆ GetCppTypeid()

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

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

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

Definition at line 99 of file callback.h.

References ns3::Demangle().

Referenced by ns3::CallbackImpl< R, UArgs >::DoGetTypeid().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetTypeid()

virtual std::string ns3::CallbackImplBase::GetTypeid ( ) const
pure virtual

Get the name of this object type.

Returns
The object type as a string.

Implemented in ns3::CallbackImpl< R, UArgs >.

◆ IsEqual()

virtual bool ns3::CallbackImplBase::IsEqual ( Ptr< const CallbackImplBase > other) const
pure virtual

Equality test.

Parameters
[in]otherCallback Ptr
Returns
true if we are equal

Implemented in ns3::CallbackImpl< R, UArgs >.


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