Partial specialization of class CallbackComponent with isComparable equal to false. 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 functions. | |
Public Member Functions inherited from ns3::CallbackComponentBase | |
virtual | ~CallbackComponentBase () |
Virtual destructor. | |
Partial specialization of class CallbackComponent with isComparable equal to false.
This is required to handle callable objects (such as lambdas and objects returned by std::function and std::bind) that do not provide the equality operator. Given that these objects cannot be compared and the only purpose of the class CallbackComponent is to compare values, no object is stored in this specialized class.
T | The type of the callback component. |
Definition at line 190 of file callback.h.
|
inline |
Constructor.
[in] | t | The value of the callback component |
Definition at line 198 of file callback.h.
|
inlineoverridevirtual |
Equality test between functions.
[in] | other | CallbackParam Ptr |
true
if we are equal Implements ns3::CallbackComponentBase.
Definition at line 208 of file callback.h.