NeTrainSim 0.1.1 beta
The Open-Source Network Trains Simulator
 
Loading...
Searching...
No Matches
netnode.h File Reference

This file contains the declaration of the NetNode class. More...

#include <string>
#include <iostream>
#include "../util/vector.h"
#include "../util/map.h"

Go to the source code of this file.

Classes

class  NetNode
 The NetNode class represents a network node in a simulation. More...
 

Functions

ostream & operator<< (ostream &ostr, const NetNode &node)
 Overloaded ostream operator for printing the NetNode object.
 

Detailed Description

This file contains the declaration of the NetNode class.

The NetNode class represents a network node in a simulation. It stores information about the node, such as its ID, coordinates, description, scales, etc. The NetNode class is used in conjunction with other classes, such as NetSignal and NetLink, to simulate network behavior. It also includes static variables and methods to keep track of the number of nodes in the simulator. The NetNode class is intended to be used as part of a network simulation system. It is designed to work with other classes and data structures in the simulation. The NetNode class can be used in a C++ application. Note: The implementation of some methods is not provided in this declaration file. They should be implemented separately in a corresponding source file.

Author
Ahmed Aredah
Version
0.1
Date
6/7/2023

Function Documentation

◆ operator<<()

ostream & operator<< ( ostream &  ostr,
const NetNode node 
)

Overloaded ostream operator for printing the NetNode object.

Parameters
ostrThe output stream object.
nodeThe NetNode object to be printed.
Returns
The output stream object.