A Discrete-Event Network Simulator
API
double-probe-example.cc File Reference
#include "ns3/core-module.h"
#include "ns3/double-probe.h"
#include <string>
+ Include dependency graph for double-probe-example.cc:

Go to the source code of this file.

Classes

class  Emitter
 This is our test object, an object that increments counters at various times and emits one of them as a trace source. More...
 

Functions

void NotifyViaProbe (std::string context, double oldVal, double newVal)
 This is a function to test hooking it to the probe output. More...
 
void NotifyViaTraceSource (std::string context, double oldVal, double newVal)
 This is a function to test hooking a raw function to the trace source,. More...
 

Function Documentation

◆ NotifyViaProbe()

void NotifyViaProbe ( std::string  context,
double  oldVal,
double  newVal 
)

This is a function to test hooking it to the probe output.

Parameters
contextThe trace context.
oldValOld value.
newValNew value.

Definition at line 129 of file double-probe-example.cc.

References NS_LOG_DEBUG.

◆ NotifyViaTraceSource()

void NotifyViaTraceSource ( std::string  context,
double  oldVal,
double  newVal 
)

This is a function to test hooking a raw function to the trace source,.

Parameters
contextThe trace context.
oldValOld value.
newValNew value.

Definition at line 116 of file double-probe-example.cc.

References NS_LOG_DEBUG.