A Discrete-Event Network Simulator
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
ns3::TracedValue< T > Class Template Reference

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)
Get (void) const
 operator T () const
TracedValueoperator++ ()
TracedValue operator++ (int)
TracedValueoperator-- ()
TracedValue operator-- (int)
TracedValueoperator= (const TracedValue &o)
void Set (const T &v)

Private Attributes

TracedCallback< T, T > m_cb

Detailed Description

template<typename T>
class ns3::TracedValue< T >

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.

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