35#define TRACED_VALUE_DEBUG(x)
58namespace TracedValueCallback
71typedef void (*
Bool)(
bool oldValue,
bool newValue);
73typedef void (*
Uint8)(uint8_t oldValue, uint8_t newValue);
74typedef void (*
Int16)(int16_t oldValue, int16_t newValue);
75typedef void (*
Uint16)(uint16_t oldValue, uint16_t newValue);
78typedef void (*
Int64)(int64_t oldValue, int64_t newValue);
79typedef void (*
Uint64)(uint64_t oldValue, uint64_t newValue);
80typedef void (*
Double)(
double oldValue,
double newValue);
157 template <
typename U>
168 template <
typename U>
181 m_cb.ConnectWithoutContext(cb);
195 m_cb.Connect(cb, path);
205 m_cb.DisconnectWithoutContext(cb);
216 m_cb.Disconnect(cb, path);
319 return os << rhs.
Get();
331template <
typename T,
typename U>
336 return lhs.
Get() == rhs.
Get();
339template <
typename T,
typename U>
344 return lhs.
Get() == rhs;
347template <
typename T,
typename U>
352 return lhs == rhs.
Get();
355template <
typename T,
typename U>
360 return lhs.
Get() != rhs.
Get();
363template <
typename T,
typename U>
368 return lhs.
Get() != rhs;
371template <
typename T,
typename U>
376 return lhs != rhs.
Get();
379template <
typename T,
typename U>
384 return lhs.
Get() <= rhs.
Get();
387template <
typename T,
typename U>
392 return lhs.
Get() <= rhs;
395template <
typename T,
typename U>
400 return lhs <= rhs.
Get();
403template <
typename T,
typename U>
408 return lhs.
Get() >= rhs.
Get();
411template <
typename T,
typename U>
416 return lhs.
Get() >= rhs;
419template <
typename T,
typename U>
424 return lhs >= rhs.
Get();
427template <
typename T,
typename U>
432 return lhs.
Get() < rhs.
Get();
435template <
typename T,
typename U>
440 return lhs.
Get() < rhs;
443template <
typename T,
typename U>
448 return lhs < rhs.
Get();
451template <
typename T,
typename U>
456 return lhs.
Get() > rhs.
Get();
459template <
typename T,
typename U>
464 return lhs.
Get() > rhs;
467template <
typename T,
typename U>
472 return lhs > rhs.
Get();
490template <
typename T,
typename U>
496 return TracedValue<
decltype(lhs.Get() + rhs.Get())>(lhs.Get() + rhs.Get());
499template <
typename T,
typename U>
504 return TracedValue<
decltype(lhs.Get() + rhs)>(lhs.Get() + rhs);
507template <
typename T,
typename U>
512 return TracedValue<
decltype(lhs + rhs.Get())>(lhs + rhs.Get());
515template <
typename T,
typename U>
521 return TracedValue<
decltype(lhs.Get() - rhs.Get())>(lhs.Get() - rhs.Get());
524template <
typename T,
typename U>
529 return TracedValue<
decltype(lhs.Get() - rhs)>(lhs.Get() - rhs);
532template <
typename T,
typename U>
537 return TracedValue<
decltype(lhs - rhs.Get())>(lhs - rhs.Get());
540template <
typename T,
typename U>
546 return TracedValue<
decltype(lhs.Get() * rhs.Get())>(lhs.Get() * rhs.Get());
549template <
typename T,
typename U>
554 return TracedValue<
decltype(lhs.Get() * rhs)>(lhs.Get() * rhs);
557template <
typename T,
typename U>
562 return TracedValue<
decltype(lhs + rhs.Get())>(lhs * rhs.Get());
565template <
typename T,
typename U>
571 return TracedValue<
decltype(lhs.Get() / rhs.Get())>(lhs.Get() / rhs.Get());
574template <
typename T,
typename U>
579 return TracedValue<
decltype(lhs.Get() / rhs)>(lhs.Get() / rhs);
582template <
typename T,
typename U>
587 return TracedValue<
decltype(lhs / rhs.Get())>(lhs / rhs.Get());
590template <
typename T,
typename U>
596 return TracedValue<
decltype(lhs.Get() % rhs.Get())>(lhs.Get() % rhs.Get());
599template <
typename T,
typename U>
604 return TracedValue<
decltype(lhs.Get() % rhs)>(lhs.Get() % rhs);
607template <
typename T,
typename U>
612 return TracedValue<
decltype(lhs % rhs.Get())>(lhs % rhs.Get());
615template <
typename T,
typename U>
621 return TracedValue<
decltype(lhs.Get() ^ rhs.Get())>(lhs.Get() ^ rhs.Get());
624template <
typename T,
typename U>
629 return TracedValue<
decltype(lhs.Get() ^ rhs)>(lhs.Get() ^ rhs);
632template <
typename T,
typename U>
637 return TracedValue<
decltype(lhs ^ rhs.Get())>(lhs ^ rhs.Get());
640template <
typename T,
typename U>
646 return TracedValue<
decltype(lhs.Get() | rhs.Get())>(lhs.Get() | rhs.Get());
649template <
typename T,
typename U>
654 return TracedValue<
decltype(lhs.Get() | rhs)>(lhs.Get() | rhs);
657template <
typename T,
typename U>
662 return TracedValue<
decltype(lhs | rhs.Get())>(lhs | rhs.Get());
665template <
typename T,
typename U>
671 return TracedValue<
decltype(lhs.Get() & rhs.Get())>(lhs.Get() & rhs.Get());
674template <
typename T,
typename U>
679 return TracedValue<
decltype(lhs.Get() & rhs)>(lhs.Get() & rhs);
682template <
typename T,
typename U>
687 return TracedValue<
decltype(lhs & rhs.Get())>(lhs & rhs.Get());
690template <
typename T,
typename U>
696 return TracedValue<
decltype(lhs.Get() << rhs.Get())>(lhs.Get() << rhs.Get());
699template <
typename T,
typename U>
704 return TracedValue<
decltype(lhs.Get() << rhs)>(lhs.Get() << rhs);
707template <
typename T,
typename U>
712 return TracedValue<
decltype(lhs << rhs.Get())>(lhs << rhs.Get());
715template <
typename T,
typename U>
721 return TracedValue<
decltype(lhs.Get() >> rhs.Get())>(lhs.Get() >> rhs.Get());
724template <
typename T,
typename U>
729 return TracedValue<
decltype(lhs.Get() >> rhs)>(lhs.Get() >> rhs);
732template <
typename T,
typename U>
737 return TracedValue<
decltype(lhs >> rhs.Get())>(lhs >> rhs.Get());
756template <
typename T,
typename U>
767template <
typename T,
typename U>
778template <
typename T,
typename U>
789template <
typename T,
typename U>
800template <
typename T,
typename U>
811template <
typename T,
typename U>
822template <
typename T,
typename U>
833template <
typename T,
typename U>
844template <
typename T,
typename U>
855template <
typename T,
typename U>
ns3::BooleanValue attribute value declarations.
Base class for Callback class.
Forward calls to a chain of Callback.
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.
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.