CallbackImpl for functors with first two arguments bound at construction. More...
#include "callback.h"
Public Member Functions | |
template<typename FUNCTOR , typename ARG1 , typename ARG2 > | |
TwoBoundFunctorCallbackImpl (FUNCTOR functor, ARG1 arg1, ARG2 arg2) | |
Construct from functor and two arguments. More... | |
virtual | ~TwoBoundFunctorCallbackImpl () |
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) |
Public Member Functions inherited from ns3::CallbackImpl< R, T1, T2, T3, T4, T5, T6, T7, empty, empty > | |
virtual | ~CallbackImpl () |
virtual std::string | GetTypeid (void) const |
Get the name of this object type. More... | |
Public Member Functions inherited from ns3::CallbackImplBase | |
virtual | ~CallbackImplBase () |
Virtual destructor. More... | |
Public Member Functions inherited from ns3::SimpleRefCount< CallbackImplBase > | |
SimpleRefCount () | |
Default constructor. More... | |
SimpleRefCount (const SimpleRefCount &o) | |
Copy constructor. More... | |
uint32_t | GetReferenceCount (void) const |
Get the reference count of the object. More... | |
SimpleRefCount & | operator= (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 | |
TypeTraits< TX1 >::ReferencedType | m_a1 |
first bound argument More... | |
TypeTraits< TX2 >::ReferencedType | m_a2 |
second bound argument More... | |
T | m_functor |
The functor. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from ns3::CallbackImpl< R, T1, T2, T3, T4, T5, T6, T7, empty, empty > | |
static std::string | DoGetTypeid (void) |
Get the name of this object type. More... | |
Static Protected Member Functions inherited from ns3::CallbackImplBase | |
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 for functors with first two arguments bound at construction.
Definition at line 871 of file callback.h.
|
inline |
Construct from functor and two arguments.
[in] | functor | The functor |
[in] | arg1 | The first argument to bind |
[in] | arg2 | The second argument to bind |
Definition at line 880 of file callback.h.
|
inlinevirtual |
Definition at line 882 of file callback.h.
|
inlinevirtual |
Equality test.
true
if we have the same functor and bound arguments Implements ns3::CallbackImplBase.
Definition at line 968 of file callback.h.
References ns3::TwoBoundFunctorCallbackImpl< T, R, TX1, TX2, T1, T2, T3, T4, T5, T6, T7 >::m_a1, ns3::TwoBoundFunctorCallbackImpl< T, R, TX1, TX2, T1, T2, T3, T4, T5, T6, T7 >::m_a2, ns3::TwoBoundFunctorCallbackImpl< T, R, TX1, TX2, T1, T2, T3, T4, T5, T6, T7 >::m_functor, and ns3::PeekPointer().
|
inline |
Functor with varying numbers of arguments.
Definition at line 888 of file callback.h.
References ns3::TwoBoundFunctorCallbackImpl< T, R, TX1, TX2, T1, T2, T3, T4, T5, T6, T7 >::m_a1, ns3::TwoBoundFunctorCallbackImpl< T, R, TX1, TX2, T1, T2, T3, T4, T5, T6, T7 >::m_a2, and ns3::TwoBoundFunctorCallbackImpl< T, R, TX1, TX2, T1, T2, T3, T4, T5, T6, T7 >::m_functor.
|
inline |
[in] | a1 | First argument |
Definition at line 895 of file callback.h.
References ns3::TwoBoundFunctorCallbackImpl< T, R, TX1, TX2, T1, T2, T3, T4, T5, T6, T7 >::m_a1, ns3::TwoBoundFunctorCallbackImpl< T, R, TX1, TX2, T1, T2, T3, T4, T5, T6, T7 >::m_a2, and ns3::TwoBoundFunctorCallbackImpl< T, R, TX1, TX2, T1, T2, T3, T4, T5, T6, T7 >::m_functor.
|
inline |
[in] | a1 | First argument |
[in] | a2 | Second argument |
Definition at line 903 of file callback.h.
References ns3::TwoBoundFunctorCallbackImpl< T, R, TX1, TX2, T1, T2, T3, T4, T5, T6, T7 >::m_a1, ns3::TwoBoundFunctorCallbackImpl< T, R, TX1, TX2, T1, T2, T3, T4, T5, T6, T7 >::m_a2, and ns3::TwoBoundFunctorCallbackImpl< T, R, TX1, TX2, T1, T2, T3, T4, T5, T6, T7 >::m_functor.
|
inline |
[in] | a1 | First argument |
[in] | a2 | Second argument |
[in] | a3 | Third argument |
Definition at line 912 of file callback.h.
References ns3::TwoBoundFunctorCallbackImpl< T, R, TX1, TX2, T1, T2, T3, T4, T5, T6, T7 >::m_a1, ns3::TwoBoundFunctorCallbackImpl< T, R, TX1, TX2, T1, T2, T3, T4, T5, T6, T7 >::m_a2, and ns3::TwoBoundFunctorCallbackImpl< T, R, TX1, TX2, T1, T2, T3, T4, T5, T6, T7 >::m_functor.
|
inline |
[in] | a1 | First argument |
[in] | a2 | Second argument |
[in] | a3 | Third argument |
[in] | a4 | Fourth argument |
Definition at line 922 of file callback.h.
References ns3::TwoBoundFunctorCallbackImpl< T, R, TX1, TX2, T1, T2, T3, T4, T5, T6, T7 >::m_a1, ns3::TwoBoundFunctorCallbackImpl< T, R, TX1, TX2, T1, T2, T3, T4, T5, T6, T7 >::m_a2, and ns3::TwoBoundFunctorCallbackImpl< T, R, TX1, TX2, T1, T2, T3, T4, T5, T6, T7 >::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 933 of file callback.h.
References ns3::TwoBoundFunctorCallbackImpl< T, R, TX1, TX2, T1, T2, T3, T4, T5, T6, T7 >::m_a1, ns3::TwoBoundFunctorCallbackImpl< T, R, TX1, TX2, T1, T2, T3, T4, T5, T6, T7 >::m_a2, and ns3::TwoBoundFunctorCallbackImpl< T, R, TX1, TX2, T1, T2, T3, T4, T5, T6, T7 >::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 945 of file callback.h.
References ns3::TwoBoundFunctorCallbackImpl< T, R, TX1, TX2, T1, T2, T3, T4, T5, T6, T7 >::m_a1, ns3::TwoBoundFunctorCallbackImpl< T, R, TX1, TX2, T1, T2, T3, T4, T5, T6, T7 >::m_a2, and ns3::TwoBoundFunctorCallbackImpl< T, R, TX1, TX2, T1, T2, T3, T4, T5, T6, T7 >::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 |
Implements ns3::CallbackImpl< R, T1, T2, T3, T4, T5, T6, T7, empty, empty >.
Definition at line 958 of file callback.h.
References ns3::TwoBoundFunctorCallbackImpl< T, R, TX1, TX2, T1, T2, T3, T4, T5, T6, T7 >::m_a1, ns3::TwoBoundFunctorCallbackImpl< T, R, TX1, TX2, T1, T2, T3, T4, T5, T6, T7 >::m_a2, and ns3::TwoBoundFunctorCallbackImpl< T, R, TX1, TX2, T1, T2, T3, T4, T5, T6, T7 >::m_functor.
|
private |
first bound argument
Definition at line 984 of file callback.h.
Referenced by ns3::TwoBoundFunctorCallbackImpl< T, R, TX1, TX2, T1, T2, T3, T4, T5, T6, T7 >::IsEqual(), and ns3::TwoBoundFunctorCallbackImpl< T, R, TX1, TX2, T1, T2, T3, T4, T5, T6, T7 >::operator()().
|
private |
second bound argument
Definition at line 985 of file callback.h.
Referenced by ns3::TwoBoundFunctorCallbackImpl< T, R, TX1, TX2, T1, T2, T3, T4, T5, T6, T7 >::IsEqual(), and ns3::TwoBoundFunctorCallbackImpl< T, R, TX1, TX2, T1, T2, T3, T4, T5, T6, T7 >::operator()().
|
private |
The functor.
Definition at line 983 of file callback.h.
Referenced by ns3::TwoBoundFunctorCallbackImpl< T, R, TX1, TX2, T1, T2, T3, T4, T5, T6, T7 >::IsEqual(), and ns3::TwoBoundFunctorCallbackImpl< T, R, TX1, TX2, T1, T2, T3, T4, T5, T6, T7 >::operator()().