A Discrete-Event Network Simulator
QKDNetSim v2.0 (NS-3 v3.41) @ (+)
API
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
matrix-topology.cc File Reference
#include "ns3/applications-module.h"
#include "ns3/assert.h"
#include "ns3/core-module.h"
#include "ns3/global-route-manager.h"
#include "ns3/internet-module.h"
#include "ns3/ipv4-global-routing-helper.h"
#include "ns3/mobility-module.h"
#include "ns3/netanim-module.h"
#include "ns3/network-module.h"
#include "ns3/point-to-point-module.h"
#include <cstdlib>
#include <fstream>
#include <iostream>
#include <sstream>
#include <string>
#include <vector>
+ Include dependency graph for matrix-topology.cc:

Go to the source code of this file.

Functions

void printCoordinateArray (const char *description, std::vector< std::vector< double >> coord_array)
 
void printMatrix (const char *description, std::vector< std::vector< bool >> array)
 
std::vector< std::vector< double > > readCoordinatesFile (std::string node_coordinates_file_name)
 
std::vector< std::vector< bool > > readNxNMatrix (std::string adj_mat_file_name)
 

Function Documentation

◆ printCoordinateArray()

void printCoordinateArray ( const char *  description,
std::vector< std::vector< double >>  coord_array 
)

Definition at line 430 of file matrix-topology.cc.

References two-ray-to-three-gpp-ch-calibration::m.

◆ printMatrix()

void printMatrix ( const char *  description,
std::vector< std::vector< bool >>  array 
)

Definition at line 415 of file matrix-topology.cc.

References two-ray-to-three-gpp-ch-calibration::m.

◆ readCoordinatesFile()

std::vector< std::vector< double > > readCoordinatesFile ( std::string  node_coordinates_file_name)

◆ readNxNMatrix()

std::vector< std::vector< bool > > readNxNMatrix ( std::string  adj_mat_file_name)

Definition at line 299 of file matrix-topology.cc.

References NS_FATAL_ERROR, NS_LOG_ERROR, and NS_LOG_WARN.