A Discrete-Event Network Simulator
API
ns3::BoundFunctorCallbackImpl< T, R, TX, T1, T2, T3, T4, T5, T6, T7, T8 > Class Template Reference

CallbackImpl for functors with first argument bound at construction. More...

#include "callback.h"

+ Inheritance diagram for ns3::BoundFunctorCallbackImpl< T, R, TX, T1, T2, T3, T4, T5, T6, T7, T8 >:
+ Collaboration diagram for ns3::BoundFunctorCallbackImpl< T, R, TX, T1, T2, T3, T4, T5, T6, T7, T8 >:

Public Member Functions

template<typename FUNCTOR , typename ARG >
 BoundFunctorCallbackImpl (FUNCTOR functor, ARG a)
 Construct from functor and a bound argument. More...
 
virtual ~BoundFunctorCallbackImpl ()
 
virtual bool IsEqual (Ptr< const CallbackImplBase > other) const
 Equality test. More...
 
operator() (void)
 Functor with varying numbers of arguments. More...
 
operator() (T1 a1)
 
operator() (T1 a1, T2 a2)
 
operator() (T1 a1, T2 a2, T3 a3)
 
operator() (T1 a1, T2 a2, T3 a3, T4 a4)
 
operator() (T1 a1, T2 a2, T3 a3, T4 a4, T5 a5)
 
operator() (T1 a1, T2 a2, T3 a3, T4 a4, T5 a5, T6 a6)
 
operator() (T1 a1, T2 a2, T3 a3, T4 a4, T5 a5, T6 a6, T7 a7)
 
operator() (T1 a1, T2 a2, T3 a3, T4 a4, T5 a5, T6 a6, T7 a7, T8 a8)
 
- Public Member Functions inherited from ns3::CallbackImpl< R, T1, T2, T3, T4, T5, T6, T7, T8, 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...
 
SimpleRefCountoperator= (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< TX >::ReferencedType m_a
 the bound argument More...
 
m_functor
 The functor. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from ns3::CallbackImpl< R, T1, T2, T3, T4, T5, T6, T7, T8, 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...
 

Detailed Description

template<typename T, typename R, typename TX, typename T1, typename T2, typename T3, typename T4, typename T5, typename T6, typename T7, typename T8>
class ns3::BoundFunctorCallbackImpl< T, R, TX, T1, T2, T3, T4, T5, T6, T7, T8 >

CallbackImpl for functors with first argument bound at construction.

Definition at line 737 of file callback.h.

Constructor & Destructor Documentation

◆ BoundFunctorCallbackImpl()

template<typename T, typename R, typename TX, typename T1, typename T2, typename T3, typename T4, typename T5, typename T6, typename T7, typename T8>
template<typename FUNCTOR , typename ARG >
ns3::BoundFunctorCallbackImpl< T, R, TX, T1, T2, T3, T4, T5, T6, T7, T8 >::BoundFunctorCallbackImpl ( FUNCTOR  functor,
ARG  a 
)
inline

Construct from functor and a bound argument.

Parameters
[in]functorThe functor
[in]aThe argument to bind

Definition at line 745 of file callback.h.

◆ ~BoundFunctorCallbackImpl()

template<typename T, typename R, typename TX, typename T1, typename T2, typename T3, typename T4, typename T5, typename T6, typename T7, typename T8>
virtual ns3::BoundFunctorCallbackImpl< T, R, TX, T1, T2, T3, T4, T5, T6, T7, T8 >::~BoundFunctorCallbackImpl ( )
inlinevirtual

Definition at line 747 of file callback.h.

Member Function Documentation

◆ IsEqual()

template<typename T, typename R, typename TX, typename T1, typename T2, typename T3, typename T4, typename T5, typename T6, typename T7, typename T8>
virtual bool ns3::BoundFunctorCallbackImpl< T, R, TX, T1, T2, T3, T4, T5, T6, T7, T8 >::IsEqual ( Ptr< const CallbackImplBase other) const
inlinevirtual

Equality test.

Parameters
[in]otherCallback Ptr
Returns
true if we have the same functor and bound arguments

Implements ns3::CallbackImplBase.

Definition at line 847 of file callback.h.

References ns3::BoundFunctorCallbackImpl< T, R, TX, T1, T2, T3, T4, T5, T6, T7, T8 >::m_a, ns3::BoundFunctorCallbackImpl< T, R, TX, T1, T2, T3, T4, T5, T6, T7, T8 >::m_functor, and ns3::PeekPointer().

+ Here is the call graph for this function:

◆ operator()() [1/9]

template<typename T, typename R, typename TX, typename T1, typename T2, typename T3, typename T4, typename T5, typename T6, typename T7, typename T8>
R ns3::BoundFunctorCallbackImpl< T, R, TX, T1, T2, T3, T4, T5, T6, T7, T8 >::operator() ( void  )
inline

◆ operator()() [2/9]

template<typename T, typename R, typename TX, typename T1, typename T2, typename T3, typename T4, typename T5, typename T6, typename T7, typename T8>
R ns3::BoundFunctorCallbackImpl< T, R, TX, T1, T2, T3, T4, T5, T6, T7, T8 >::operator() ( T1  a1)
inline

◆ operator()() [3/9]

template<typename T, typename R, typename TX, typename T1, typename T2, typename T3, typename T4, typename T5, typename T6, typename T7, typename T8>
R ns3::BoundFunctorCallbackImpl< T, R, TX, T1, T2, T3, T4, T5, T6, T7, T8 >::operator() ( T1  a1,
T2  a2 
)
inline

◆ operator()() [4/9]

template<typename T, typename R, typename TX, typename T1, typename T2, typename T3, typename T4, typename T5, typename T6, typename T7, typename T8>
R ns3::BoundFunctorCallbackImpl< T, R, TX, T1, T2, T3, T4, T5, T6, T7, T8 >::operator() ( T1  a1,
T2  a2,
T3  a3 
)
inline
Parameters
[in]a1First argument
[in]a2Second argument
[in]a3Third argument
Returns
Callback value

Definition at line 777 of file callback.h.

References ns3::BoundFunctorCallbackImpl< T, R, TX, T1, T2, T3, T4, T5, T6, T7, T8 >::m_a, and ns3::BoundFunctorCallbackImpl< T, R, TX, T1, T2, T3, T4, T5, T6, T7, T8 >::m_functor.

◆ operator()() [5/9]

template<typename T, typename R, typename TX, typename T1, typename T2, typename T3, typename T4, typename T5, typename T6, typename T7, typename T8>
R ns3::BoundFunctorCallbackImpl< T, R, TX, T1, T2, T3, T4, T5, T6, T7, T8 >::operator() ( T1  a1,
T2  a2,
T3  a3,
T4  a4 
)
inline
Parameters
[in]a1First argument
[in]a2Second argument
[in]a3Third argument
[in]a4Fourth argument
Returns
Callback value

Definition at line 787 of file callback.h.

References ns3::BoundFunctorCallbackImpl< T, R, TX, T1, T2, T3, T4, T5, T6, T7, T8 >::m_a, and ns3::BoundFunctorCallbackImpl< T, R, TX, T1, T2, T3, T4, T5, T6, T7, T8 >::m_functor.

◆ operator()() [6/9]

template<typename T, typename R, typename TX, typename T1, typename T2, typename T3, typename T4, typename T5, typename T6, typename T7, typename T8>
R ns3::BoundFunctorCallbackImpl< T, R, TX, T1, T2, T3, T4, T5, T6, T7, T8 >::operator() ( T1  a1,
T2  a2,
T3  a3,
T4  a4,
T5  a5 
)
inline
Parameters
[in]a1First argument
[in]a2Second argument
[in]a3Third argument
[in]a4Fourth argument
[in]a5Fifth argument
Returns
Callback value

Definition at line 798 of file callback.h.

References ns3::BoundFunctorCallbackImpl< T, R, TX, T1, T2, T3, T4, T5, T6, T7, T8 >::m_a, and ns3::BoundFunctorCallbackImpl< T, R, TX, T1, T2, T3, T4, T5, T6, T7, T8 >::m_functor.

◆ operator()() [7/9]

template<typename T, typename R, typename TX, typename T1, typename T2, typename T3, typename T4, typename T5, typename T6, typename T7, typename T8>
R ns3::BoundFunctorCallbackImpl< T, R, TX, T1, T2, T3, T4, T5, T6, T7, T8 >::operator() ( T1  a1,
T2  a2,
T3  a3,
T4  a4,
T5  a5,
T6  a6 
)
inline
Parameters
[in]a1First argument
[in]a2Second argument
[in]a3Third argument
[in]a4Fourth argument
[in]a5Fifth argument
[in]a6Sixth argument
Returns
Callback value

Definition at line 810 of file callback.h.

References ns3::BoundFunctorCallbackImpl< T, R, TX, T1, T2, T3, T4, T5, T6, T7, T8 >::m_a, and ns3::BoundFunctorCallbackImpl< T, R, TX, T1, T2, T3, T4, T5, T6, T7, T8 >::m_functor.

◆ operator()() [8/9]

template<typename T, typename R, typename TX, typename T1, typename T2, typename T3, typename T4, typename T5, typename T6, typename T7, typename T8>
R ns3::BoundFunctorCallbackImpl< T, R, TX, T1, T2, T3, T4, T5, T6, T7, T8 >::operator() ( T1  a1,
T2  a2,
T3  a3,
T4  a4,
T5  a5,
T6  a6,
T7  a7 
)
inline
Parameters
[in]a1First argument
[in]a2Second argument
[in]a3Third argument
[in]a4Fourth argument
[in]a5Fifth argument
[in]a6Sixth argument
[in]a7Seventh argument
Returns
Callback value

Definition at line 823 of file callback.h.

References ns3::BoundFunctorCallbackImpl< T, R, TX, T1, T2, T3, T4, T5, T6, T7, T8 >::m_a, and ns3::BoundFunctorCallbackImpl< T, R, TX, T1, T2, T3, T4, T5, T6, T7, T8 >::m_functor.

◆ operator()() [9/9]

template<typename T, typename R, typename TX, typename T1, typename T2, typename T3, typename T4, typename T5, typename T6, typename T7, typename T8>
R ns3::BoundFunctorCallbackImpl< T, R, TX, T1, T2, T3, T4, T5, T6, T7, T8 >::operator() ( T1  a1,
T2  a2,
T3  a3,
T4  a4,
T5  a5,
T6  a6,
T7  a7,
T8  a8 
)
inlinevirtual
Parameters
[in]a1First argument
[in]a2Second argument
[in]a3Third argument
[in]a4Fourth argument
[in]a5Fifth argument
[in]a6Sixth argument
[in]a7Seventh argument
[in]a8Eighth argument
Returns
Callback value

Implements ns3::CallbackImpl< R, T1, T2, T3, T4, T5, T6, T7, T8, empty >.

Definition at line 837 of file callback.h.

References ns3::BoundFunctorCallbackImpl< T, R, TX, T1, T2, T3, T4, T5, T6, T7, T8 >::m_a, and ns3::BoundFunctorCallbackImpl< T, R, TX, T1, T2, T3, T4, T5, T6, T7, T8 >::m_functor.

Member Data Documentation

◆ m_a

template<typename T, typename R, typename TX, typename T1, typename T2, typename T3, typename T4, typename T5, typename T6, typename T7, typename T8>
TypeTraits<TX>::ReferencedType ns3::BoundFunctorCallbackImpl< T, R, TX, T1, T2, T3, T4, T5, T6, T7, T8 >::m_a
private

◆ m_functor

template<typename T, typename R, typename TX, typename T1, typename T2, typename T3, typename T4, typename T5, typename T6, typename T7, typename T8>
T ns3::BoundFunctorCallbackImpl< T, R, TX, T1, T2, T3, T4, T5, T6, T7, T8 >::m_functor
private

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