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>
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>
353 return lhs == rhs.
Get();
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>
380 return lhs != rhs.
Get();
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>
407 return lhs <= rhs.
Get();
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>
434 return lhs >= rhs.
Get();
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>
461 return lhs < rhs.
Get();
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>
488 return lhs > rhs.
Get();
504template <
typename T,
typename U>
510 return TracedValue<
decltype(lhs.Get() + rhs.Get())>(lhs.Get() + rhs.Get());
514template <
typename T,
typename U>
519 return TracedValue<
decltype(lhs.Get() + rhs)>(lhs.Get() + rhs);
523template <
typename T,
typename U>
528 return TracedValue<
decltype(lhs + rhs.Get())>(lhs + rhs.Get());
532template <
typename T,
typename U>
538 return TracedValue<
decltype(lhs.Get() - rhs.Get())>(lhs.Get() - rhs.Get());
542template <
typename T,
typename U>
547 return TracedValue<
decltype(lhs.Get() - rhs)>(lhs.Get() - rhs);
551template <
typename T,
typename U>
556 return TracedValue<
decltype(lhs - rhs.Get())>(lhs - rhs.Get());
560template <
typename T,
typename U>
566 return TracedValue<
decltype(lhs.Get() * rhs.Get())>(lhs.Get() * rhs.Get());
570template <
typename T,
typename U>
575 return TracedValue<
decltype(lhs.Get() * rhs)>(lhs.Get() * rhs);
579template <
typename T,
typename U>
584 return TracedValue<
decltype(lhs + rhs.Get())>(lhs * rhs.Get());
588template <
typename T,
typename U>
594 return TracedValue<
decltype(lhs.Get() / rhs.Get())>(lhs.Get() / rhs.Get());
598template <
typename T,
typename U>
603 return TracedValue<
decltype(lhs.Get() / rhs)>(lhs.Get() / rhs);
607template <
typename T,
typename U>
612 return TracedValue<
decltype(lhs / rhs.Get())>(lhs / rhs.Get());
616template <
typename T,
typename U>
622 return TracedValue<
decltype(lhs.Get() % rhs.Get())>(lhs.Get() % rhs.Get());
626template <
typename T,
typename U>
631 return TracedValue<
decltype(lhs.Get() % rhs)>(lhs.Get() % rhs);
635template <
typename T,
typename U>
640 return TracedValue<
decltype(lhs % rhs.Get())>(lhs % rhs.Get());
644template <
typename T,
typename U>
650 return TracedValue<
decltype(lhs.Get() ^ rhs.Get())>(lhs.Get() ^ rhs.Get());
654template <
typename T,
typename U>
659 return TracedValue<
decltype(lhs.Get() ^ rhs)>(lhs.Get() ^ rhs);
663template <
typename T,
typename U>
668 return TracedValue<
decltype(lhs ^ rhs.Get())>(lhs ^ rhs.Get());
672template <
typename T,
typename U>
678 return TracedValue<
decltype(lhs.Get() | rhs.Get())>(lhs.Get() | rhs.Get());
682template <
typename T,
typename U>
687 return TracedValue<
decltype(lhs.Get() | rhs)>(lhs.Get() | rhs);
691template <
typename T,
typename U>
696 return TracedValue<
decltype(lhs | rhs.Get())>(lhs | rhs.Get());
700template <
typename T,
typename U>
706 return TracedValue<
decltype(lhs.Get() & rhs.Get())>(lhs.Get() & rhs.Get());
710template <
typename T,
typename U>
715 return TracedValue<
decltype(lhs.Get() & rhs)>(lhs.Get() & rhs);
719template <
typename T,
typename U>
724 return TracedValue<
decltype(lhs & rhs.Get())>(lhs & rhs.Get());
728template <
typename T,
typename U>
734 return TracedValue<
decltype(lhs.Get() << rhs.Get())>(lhs.Get() << rhs.Get());
738template <
typename T,
typename U>
743 return TracedValue<
decltype(lhs.Get() << rhs)>(lhs.Get() << rhs);
747template <
typename T,
typename U>
752 return TracedValue<
decltype(lhs << rhs.Get())>(lhs << rhs.Get());
756template <
typename T,
typename U>
762 return TracedValue<
decltype(lhs.Get() >> rhs.Get())>(lhs.Get() >> rhs.Get());
766template <
typename T,
typename U>
771 return TracedValue<
decltype(lhs.Get() >> rhs)>(lhs.Get() >> rhs);
775template <
typename T,
typename U>
780 return TracedValue<
decltype(lhs >> rhs.Get())>(lhs >> rhs.Get());
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.
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.