Stores a component of a callback, i.e., the callable object or a bound argument. More...
#include "callback.h"
Public Member Functions | |
CallbackComponent (const T &t) | |
Constructor. | |
bool | IsEqual (std::shared_ptr< const CallbackComponentBase > other) const override |
Equality test between the values of two components. | |
Public Member Functions inherited from ns3::CallbackComponentBase | |
virtual | ~CallbackComponentBase () |
Virtual destructor. | |
Private Attributes | |
T | m_comp |
the value of the callback component | |
Stores a component of a callback, i.e., the callable object or a bound argument.
The purpose of this class is to test the equality of the components of two callbacks.
T | The type of the callback component. |
isComparable | whether this callback component can be compared to others of the same type |
Definition at line 147 of file callback.h.
|
inline |
Constructor.
[in] | t | The value of the callback component |
Definition at line 155 of file callback.h.
|
inlineoverridevirtual |
Equality test between the values of two components.
[in] | other | CallbackComponentBase Ptr |
true
if we are equal Implements ns3::CallbackComponentBase.
Definition at line 166 of file callback.h.
References ns3::CallbackComponent< T, isComparable >::m_comp.
|
private |
the value of the callback component
Definition at line 175 of file callback.h.
Referenced by ns3::CallbackComponent< T, isComparable >::IsEqual().