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

Go to the source code of this file.

Functions

int main (int argc, char *argv[])
 
 NS_LOG_COMPONENT_DEFINE ("GenericTopologyCreation")
 
void printCoordinateArray (const char *description, vector< vector< double > > coord_array)
 
void printMatrix (const char *description, vector< vector< bool > > array)
 
vector< vector< double > > readCordinatesFile (std::string node_coordinates_file_name)
 
vector< vector< bool > > readNxNMatrix (std::string adj_mat_file_name)
 

Function Documentation

NS_LOG_COMPONENT_DEFINE ( "GenericTopologyCreation"  )
void printCoordinateArray ( const char *  description,
vector< vector< double > >  coord_array 
)

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

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

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

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

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

References NS_FATAL_ERROR, NS_LOG_ERROR, and NS_LOG_WARN.

Referenced by main().

+ Here is the caller graph for this function:

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

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

References NS_FATAL_ERROR, NS_LOG_ERROR, and NS_LOG_WARN.

Referenced by main().

+ Here is the caller graph for this function: