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. More... | |
bool | IsEqual (std::shared_ptr< const CallbackComponentBase > other) const override |
Equality test between the values of two components. More... | |
Public Member Functions inherited from ns3::CallbackComponentBase | |
virtual | ~CallbackComponentBase () |
Virtual destructor. More... | |
Private Attributes | |
T | m_comp |
the value of the callback component More... | |
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 163 of file callback.h.
|
inline |
Constructor.
[in] | t | The value of the callback component |
Definition at line 171 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 182 of file callback.h.
References ns3::CallbackComponent< T, isComparable >::m_comp.
|
private |
the value of the callback component
Definition at line 191 of file callback.h.
Referenced by ns3::CallbackComponent< T, isComparable >::IsEqual().