trace classes with value semantics More...
#include <traced-value.h>
Public Member Functions | |
| TracedValue (const TracedValue &o) | |
| TracedValue (const T &v) | |
| template<typename U > | |
| TracedValue (const TracedValue< U > &other) | |
| template<typename U > | |
| TracedValue (const U &other) | |
| void | Connect (const CallbackBase &cb, std::string path) |
| void | ConnectWithoutContext (const CallbackBase &cb) |
| void | Disconnect (const CallbackBase &cb, std::string path) |
| void | DisconnectWithoutContext (const CallbackBase &cb) |
| T | Get (void) const |
| operator T () const | |
| TracedValue & | operator++ () |
| TracedValue | operator++ (int) |
| TracedValue & | operator-- () |
| TracedValue | operator-- (int) |
| TracedValue & | operator= (const TracedValue &o) |
| void | Set (const T &v) |
Private Attributes | |
| TracedCallback< T, T > | m_cb |
| T | m_v |
trace classes with value semantics
If you want to trace the change of value of a class or primitive type which have value semantics (they must support operator !=), you can wrap them in an instance of this template: this instance will behave just like the original class (if it did not export any special method), and will define Connect/DisconnectWithoutContext methods to work with ns3::MakeTraceSourceAccessor.
Definition at line 53 of file traced-value.h.