A Discrete-Event Network Simulator
API
main-callback.cc File Reference

Example program illustrating use of callback functions and methods. More...

#include "ns3/callback.h"
#include "ns3/assert.h"
#include <iostream>
+ Include dependency graph for main-callback.cc:

Go to the source code of this file.

Classes

class  MyCb
 Example Callback class. More...
 

Functions

static double CbOne (double a, double b)
 Example Callback function. More...
 

Detailed Description

Example program illustrating use of callback functions and methods.

See Callbacks

Definition in file main-callback.cc.

Function Documentation

static double CbOne ( double  a,
double  b 
)
static

Example Callback function.

Parameters
[in]aThe first argument.
[in]bThe second argument.
Returns
The first argument.

Definition at line 42 of file main-callback.cc.