35#define TRACED_VALUE_DEBUG(x)
58namespace TracedValueCallback
157 template <
typename U>
168 template <
typename U>
319 return os << rhs.
Get();
330template <
typename T,
typename U>
335 return lhs.Get() == rhs.
Get();
339template <
typename T,
typename U>
344 return lhs.Get() == rhs;
348template <
typename T,
typename U>
357template <
typename T,
typename U>
362 return lhs.Get() != rhs.
Get();
366template <
typename T,
typename U>
371 return lhs.Get() != rhs;
375template <
typename T,
typename U>
384template <
typename T,
typename U>
389 return lhs.Get() <= rhs.
Get();
393template <
typename T,
typename U>
398 return lhs.Get() <= rhs;
402template <
typename T,
typename U>
411template <
typename T,
typename U>
416 return lhs.Get() >= rhs.
Get();
420template <
typename T,
typename U>
425 return lhs.Get() >= rhs;
429template <
typename T,
typename U>
438template <
typename T,
typename U>
443 return lhs.Get() < rhs.
Get();
447template <
typename T,
typename U>
452 return lhs.Get() < rhs;
456template <
typename T,
typename U>
465template <
typename T,
typename U>
470 return lhs.Get() > rhs.
Get();
474template <
typename T,
typename U>
479 return lhs.Get() > rhs;
483template <
typename T,
typename U>
504template <
typename T,
typename U>
514template <
typename T,
typename U>
523template <
typename T,
typename U>
532template <
typename T,
typename U>
542template <
typename T,
typename U>
551template <
typename T,
typename U>
560template <
typename T,
typename U>
570template <
typename T,
typename U>
579template <
typename T,
typename U>
588template <
typename T,
typename U>
598template <
typename T,
typename U>
607template <
typename T,
typename U>
616template <
typename T,
typename U>
626template <
typename T,
typename U>
635template <
typename T,
typename U>
644template <
typename T,
typename U>
654template <
typename T,
typename U>
663template <
typename T,
typename U>
672template <
typename T,
typename U>
682template <
typename T,
typename U>
691template <
typename T,
typename U>
700template <
typename T,
typename U>
710template <
typename T,
typename U>
719template <
typename T,
typename U>
728template <
typename T,
typename U>
738template <
typename T,
typename U>
747template <
typename T,
typename U>
756template <
typename T,
typename U>
766template <
typename T,
typename U>
775template <
typename T,
typename U>
797template <
typename T,
typename U>
809template <
typename T,
typename U>
821template <
typename T,
typename U>
833template <
typename T,
typename U>
845template <
typename T,
typename U>
857template <
typename T,
typename U>
869template <
typename T,
typename U>
881template <
typename T,
typename U>
893template <
typename T,
typename U>
905template <
typename T,
typename U>
ns3::BooleanValue attribute value declarations.
Base class for Callback class.
Forward calls to a chain of Callback.
void Disconnect(const CallbackBase &callback, std::string path)
Remove from the chain a Callback which was connected with a context.
void ConnectWithoutContext(const CallbackBase &callback)
Append a Callback to the chain (without a context).
void DisconnectWithoutContext(const CallbackBase &callback)
Remove from the chain a Callback which was connected without a context.
void Connect(const CallbackBase &callback, std::string path)
Append a Callback to the chain with a context.
Trace classes with value semantics.
TracedValue(const T &v)
Construct from an explicit variable.
TracedValue & operator++()
Pre/post- increment/decrement operator.
void DisconnectWithoutContext(const CallbackBase &cb)
Disconnect a Callback which was connected without context.
TracedCallback< T, T > m_cb
The connected Callback.
T m_v
The underlying value.
TracedValue & operator--()
Pre/post- increment/decrement operator.
void Connect(const CallbackBase &cb, std::string path)
Connect a Callback with a context string.
void Disconnect(const CallbackBase &cb, std::string path)
Disconnect a Callback which was connected with context.
TracedValue operator--(int)
Pre/post- increment/decrement operator.
TracedValue & operator=(const TracedValue &o)
Assignment.
TracedValue(const TracedValue &o)
Copy constructor.
void ConnectWithoutContext(const CallbackBase &cb)
Connect a Callback (without context.)
T Get() const
Get the underlying value.
TracedValue()
Default constructor.
TracedValue(const U &other)
Copy from a variable type compatible with this underlying type.
void Set(const T &v)
Set the value of the underlying variable.
TracedValue operator++(int)
Pre/post- increment/decrement operator.
TracedValue(const TracedValue< U > &other)
Copy from a TracedValue of a compatible type.
ns3::DoubleValue attribute value declarations and template implementations.
ns3::EnumValue attribute value declarations.
int64x64_t operator/(const int64x64_t &lhs, const int64x64_t &rhs)
Division operator.
bool operator>=(const int64x64_t &lhs, const int64x64_t &rhs)
Greater or equal operator.
bool operator<=(const int64x64_t &lhs, const int64x64_t &rhs)
Less or equal operator.
int64x64_t operator-(const int64x64_t &lhs, const int64x64_t &rhs)
Subtraction operator.
int64x64_t operator+(const int64x64_t &lhs, const int64x64_t &rhs)
Addition operator.
int64x64_t operator*(const int64x64_t &lhs, const int64x64_t &rhs)
Multiplication operator.
bool operator>(const Length &left, const Length &right)
Check if left has a value greater than right.
Ptr< T > Create(Ts &&... args)
Create class instances by constructors with varying numbers of arguments and return them by Ptr.
TracedValue< T > & operator/=(TracedValue< T > &lhs, const U &rhs)
Operator assignment for TracedValue.
TracedValue< T > & operator|=(TracedValue< T > &lhs, const U &rhs)
Operator assignment for TracedValue.
TracedValue< T > operator!(const TracedValue< T > &lhs)
Unary arithmetic operator for TracedValue.
TracedValue< T > & operator%=(TracedValue< T > &lhs, const U &rhs)
Operator assignment for TracedValue.
auto operator^(const TracedValue< T > &lhs, const TracedValue< U > &rhs) -> TracedValue< decltype(lhs.Get() ^ rhs.Get())>
Infix arithmetic operator for TracedValue.
auto operator|(const TracedValue< T > &lhs, const TracedValue< U > &rhs) -> TracedValue< decltype(lhs.Get()|rhs.Get())>
Infix arithmetic operator for TracedValue.
TracedValue< T > & operator^=(TracedValue< T > &lhs, const U &rhs)
Operator assignment for TracedValue.
TracedValue< T > & operator*=(TracedValue< T > &lhs, const U &rhs)
Operator assignment for TracedValue.
TracedValue< T > & operator<<=(TracedValue< T > &lhs, const U &rhs)
Operator assignment for TracedValue.
TracedValue< T > operator~(const TracedValue< T > &lhs)
Unary arithmetic operator for TracedValue.
TracedValue< T > & operator>>=(TracedValue< T > &lhs, const U &rhs)
Operator assignment for TracedValue.
TracedValue< T > & operator&=(TracedValue< T > &lhs, const U &rhs)
Operator assignment for TracedValue.
auto operator&(const TracedValue< T > &lhs, const TracedValue< U > &rhs) -> TracedValue< decltype(lhs.Get() &rhs.Get())>
Infix arithmetic operator for TracedValue.
ns3::IntegerValue attribute value declarations and template implementations.
void(* Uint16)(uint16_t oldValue, uint16_t newValue)
TracedValue Callback signature for POD.
void(* Bool)(bool oldValue, bool newValue)
TracedValue Callback signature for POD.
void(* Int8)(int8_t oldValue, int8_t newValue)
TracedValue Callback signature for POD.
void(* Void)()
TracedValue Callback signature for void.
void(* Int16)(int16_t oldValue, int16_t newValue)
TracedValue Callback signature for POD.
void(* Uint8)(uint8_t oldValue, uint8_t newValue)
TracedValue Callback signature for POD.
void(* Int64)(int64_t oldValue, int64_t newValue)
TracedValue Callback signature for POD.
void(* Uint32)(uint32_t oldValue, uint32_t newValue)
TracedValue Callback signature for POD.
void(* Uint64)(uint64_t oldValue, uint64_t newValue)
TracedValue Callback signature for POD.
void(* Int32)(int32_t oldValue, int32_t newValue)
TracedValue Callback signature for POD.
void(* Double)(double oldValue, double newValue)
TracedValue Callback signature for POD.
Every class exported by the ns3 library is enclosed in the ns3 namespace.
bool operator!=(Callback< R, Args... > a, Callback< R, Args... > b)
Inequality test.
Time operator%(const Time &lhs, const Time &rhs)
Remainder (modulus) from the quotient of two Times.
bool operator==(const EventId &a, const EventId &b)
std::ostream & operator<<(std::ostream &os, const Angles &a)
Time & operator+=(Time &lhs, const Time &rhs)
Compound addition assignment for Time.
std::istream & operator>>(std::istream &is, Angles &a)
bool operator<(const EventId &a, const EventId &b)
Time & operator-=(Time &lhs, const Time &rhs)
Compound subtraction assignment for Time.
ns3::TracedCallback declaration and template implementation.
#define TRACED_VALUE_DEBUG(x)
Logging macro for TracedValue.
ns3::UintegerValue attribute value declarations and template implementations.