A Discrete-Event Network Simulator
API
Classes | Macros | Functions | Variables
bench-simulator.cc File Reference
#include <iomanip>
#include <iostream>
#include <fstream>
#include <vector>
#include <string.h>
#include "ns3/core-module.h"

Go to the source code of this file.

Classes

class  Bench
 Bench class. More...
 

Macros

#define DEB(x)   if (g_debug) { LOGME (x); }
 
#define LOG(x)   std::cout << x << std::endl
 
#define LOGME(x)   LOG (g_me << x)
 

Functions

Ptr< RandomVariableStreamGetRandomStream (std::string filename)
 

Variables

bool g_debug = false
 
int g_fwidth = 6
 
std::string g_me
 

Macro Definition Documentation

◆ DEB

#define DEB (   x)    if (g_debug) { LOGME (x); }

Definition at line 37 of file bench-simulator.cc.

Referenced by Bench::Cb(), and Bench::RunBench().

◆ LOG

#define LOG (   x)    std::cout << x << std::endl

◆ LOGME

#define LOGME (   x)    LOG (g_me << x)

Definition at line 36 of file bench-simulator.cc.

Referenced by GetRandomStream().

Function Documentation

◆ GetRandomStream()

Ptr<RandomVariableStream> GetRandomStream ( std::string  filename)

Definition at line 149 of file bench-simulator.cc.

References LOGME, and ns3::ObjectBase::SetAttribute().

Variable Documentation

◆ g_debug

bool g_debug = false

Definition at line 32 of file bench-simulator.cc.

◆ g_fwidth

int g_fwidth = 6

Definition at line 40 of file bench-simulator.cc.

Referenced by Bench::RunBench().

◆ g_me

std::string g_me

Definition at line 34 of file bench-simulator.cc.