CallbackImpl with functors. More...
#include "callback.h"
Public Member Functions | |
FunctorCallbackImpl (T const &functor) | |
Construct from a functor. More... | |
virtual | ~FunctorCallbackImpl () |
virtual bool | IsEqual (Ptr< const CallbackImplBase > other) const |
Equality test. More... | |
R | operator() (void) |
Functor with varying numbers of arguments. More... | |
R | operator() (T1 a1) |
R | operator() (T1 a1, T2 a2) |
R | operator() (T1 a1, T2 a2, T3 a3) |
R | operator() (T1 a1, T2 a2, T3 a3, T4 a4) |
R | operator() (T1 a1, T2 a2, T3 a3, T4 a4, T5 a5) |
R | operator() (T1 a1, T2 a2, T3 a3, T4 a4, T5 a5, T6 a6) |
R | operator() (T1 a1, T2 a2, T3 a3, T4 a4, T5 a5, T6 a6, T7 a7) |
R | operator() (T1 a1, T2 a2, T3 a3, T4 a4, T5 a5, T6 a6, T7 a7, T8 a8) |
R | operator() (T1 a1, T2 a2, T3 a3, T4 a4, T5 a5, T6 a6, T7 a7, T8 a8, T9 a9) |
![]() | |
virtual | ~CallbackImpl () |
virtual std::string | GetTypeid (void) const |
Get the name of this object type. More... | |
![]() | |
virtual | ~CallbackImplBase () |
Virtual destructor. More... | |
![]() | |
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... | |
SimpleRefCount & | operator= ([[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... | |
Private Attributes | |
T | m_functor |
the functor More... | |
Additional Inherited Members | |
![]() | |
static std::string | DoGetTypeid (void) |
Get the name of this object type. More... | |
![]() | |
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... | |
CallbackImpl with functors.
T | [deduced] Function pointer type. |
Definition at line 435 of file callback.h.
|
inline |
Construct from a functor.
[in] | functor | The functor |
Definition at line 443 of file callback.h.
|
inlinevirtual |
Definition at line 446 of file callback.h.
|
inlinevirtual |
Equality test.
[in] | other | CallbackImpl Ptr |
true
if this and other have the same functor Implements ns3::CallbackImplBase.
Definition at line 572 of file callback.h.
References ns3::FunctorCallbackImpl< T, R, T1, T2, T3, T4, T5, T6, T7, T8, T9 >::m_functor, and ns3::PeekPointer().
|
inline |
[in] | a1 | First argument |
Definition at line 461 of file callback.h.
References ns3::FunctorCallbackImpl< T, R, T1, T2, T3, T4, T5, T6, T7, T8, T9 >::m_functor.
|
inline |
[in] | a1 | First argument |
[in] | a2 | Second argument |
Definition at line 470 of file callback.h.
References ns3::FunctorCallbackImpl< T, R, T1, T2, T3, T4, T5, T6, T7, T8, T9 >::m_functor.
|
inline |
[in] | a1 | First argument |
[in] | a2 | Second argument |
[in] | a3 | Third argument |
Definition at line 480 of file callback.h.
References ns3::FunctorCallbackImpl< T, R, T1, T2, T3, T4, T5, T6, T7, T8, T9 >::m_functor.
|
inline |
[in] | a1 | First argument |
[in] | a2 | Second argument |
[in] | a3 | Third argument |
[in] | a4 | Fourth argument |
Definition at line 491 of file callback.h.
References ns3::FunctorCallbackImpl< T, R, T1, T2, T3, T4, T5, T6, T7, T8, T9 >::m_functor.
|
inline |
[in] | a1 | First argument |
[in] | a2 | Second argument |
[in] | a3 | Third argument |
[in] | a4 | Fourth argument |
[in] | a5 | Fifth argument |
Definition at line 503 of file callback.h.
References ns3::FunctorCallbackImpl< T, R, T1, T2, T3, T4, T5, T6, T7, T8, T9 >::m_functor.
|
inline |
[in] | a1 | First argument |
[in] | a2 | Second argument |
[in] | a3 | Third argument |
[in] | a4 | Fourth argument |
[in] | a5 | Fifth argument |
[in] | a6 | Sixth argument |
Definition at line 516 of file callback.h.
References ns3::FunctorCallbackImpl< T, R, T1, T2, T3, T4, T5, T6, T7, T8, T9 >::m_functor.
|
inline |
[in] | a1 | First argument |
[in] | a2 | Second argument |
[in] | a3 | Third argument |
[in] | a4 | Fourth argument |
[in] | a5 | Fifth argument |
[in] | a6 | Sixth argument |
[in] | a7 | Seventh argument |
Definition at line 530 of file callback.h.
References ns3::FunctorCallbackImpl< T, R, T1, T2, T3, T4, T5, T6, T7, T8, T9 >::m_functor.
|
inline |
[in] | a1 | First argument |
[in] | a2 | Second argument |
[in] | a3 | Third argument |
[in] | a4 | Fourth argument |
[in] | a5 | Fifth argument |
[in] | a6 | Sixth argument |
[in] | a7 | Seventh argument |
[in] | a8 | eighth argument |
Definition at line 545 of file callback.h.
References ns3::FunctorCallbackImpl< T, R, T1, T2, T3, T4, T5, T6, T7, T8, T9 >::m_functor.
|
inlinevirtual |
[in] | a1 | First argument |
[in] | a2 | Second argument |
[in] | a3 | Third argument |
[in] | a4 | Fourth argument |
[in] | a5 | Fifth argument |
[in] | a6 | Sixth argument |
[in] | a7 | Seventh argument |
[in] | a8 | eighth argument |
[in] | a9 | ninth argument |
Implements ns3::CallbackImpl< R, T1, T2, T3, T4, T5, T6, T7, T8, T9 >.
Definition at line 561 of file callback.h.
References ns3::FunctorCallbackImpl< T, R, T1, T2, T3, T4, T5, T6, T7, T8, T9 >::m_functor.
|
inline |
Functor with varying numbers of arguments.
Definition at line 453 of file callback.h.
References ns3::FunctorCallbackImpl< T, R, T1, T2, T3, T4, T5, T6, T7, T8, T9 >::m_functor.
|
private |
the functor
Definition at line 588 of file callback.h.
Referenced by ns3::FunctorCallbackImpl< T, R, T1, T2, T3, T4, T5, T6, T7, T8, T9 >::IsEqual(), and ns3::FunctorCallbackImpl< T, R, T1, T2, T3, T4, T5, T6, T7, T8, T9 >::operator()().