SimGrid  3.16
Versatile Simulation of Distributed Systems
simgrid::kernel::routing::NetPoint Class Reference

Detailed Description

Network cards are the vertices in the graph representing the network, used to compute paths between nodes.

This represents a position in the network. One can send information between two netpoints

#include <NetPoint.hpp>

Inheritance diagram for simgrid::kernel::routing::NetPoint:
simgrid::xbt::Extendable< NetPoint >

Public Types

enum  Type { Type::Host, Type::Router, Type::NetZone }
 

Public Member Functions

 NetPoint (std::string name, NetPoint::Type componentType, NetZoneImpl *netzone_p)
 
 ~NetPoint ()=default
 
unsigned int id ()
 
std::string name ()
 
const char * cname ()
 
NetZoneImplnetzone ()
 the NetZone in which this NetPoint is included More...
 
bool isNetZone ()
 
bool isHost ()
 
bool isRouter ()
 
bool operator< (const NetPoint &rhs) const
 
- Public Member Functions inherited from simgrid::xbt::Extendable< NetPoint >
 Extendable ()
 
 ~Extendable ()
 
voidextension (std::size_t rank)
 
U * extension (Extension< NetPoint, U > rank)
 
U * extension ()
 
void extension_set (std::size_t rank, void *value, bool use_dtor=true)
 
void extension_set (Extension< NetPoint, U > rank, U *value, bool use_dtor=true)
 
void extension_set (U *p)
 

Static Public Attributes

static simgrid::xbt::signal< void(NetPoint *)> onCreation
 

Additional Inherited Members

- Static Public Member Functions inherited from simgrid::xbt::Extendable< NetPoint >
static size_t extension_create (void(*deleter)(void *))
 
static Extension< NetPoint, U > extension_create (void(*deleter)(void *))
 
static Extension< NetPoint, U > extension_create ()
 
- Protected Attributes inherited from simgrid::xbt::Extendable< NetPoint >
std::vector< void *> extensions_
 

Member Enumeration Documentation

◆ Type

Enumerator
Host 
Router 
NetZone 

Constructor & Destructor Documentation

◆ NetPoint()

simgrid::kernel::routing::NetPoint::NetPoint ( std::string  name,
NetPoint::Type  componentType,
NetZoneImpl netzone_p 
)

◆ ~NetPoint()

simgrid::kernel::routing::NetPoint::~NetPoint ( )
default

Member Function Documentation

◆ id()

unsigned int simgrid::kernel::routing::NetPoint::id ( )
inline

◆ name()

std::string simgrid::kernel::routing::NetPoint::name ( )
inline

◆ cname()

const char* simgrid::kernel::routing::NetPoint::cname ( )
inline

◆ netzone()

NetZoneImpl* simgrid::kernel::routing::NetPoint::netzone ( )
inline

the NetZone in which this NetPoint is included

◆ isNetZone()

bool simgrid::kernel::routing::NetPoint::isNetZone ( )
inline

◆ isHost()

bool simgrid::kernel::routing::NetPoint::isHost ( )
inline

◆ isRouter()

bool simgrid::kernel::routing::NetPoint::isRouter ( )
inline

◆ operator<()

bool simgrid::kernel::routing::NetPoint::operator< ( const NetPoint rhs) const
inline

Member Data Documentation

◆ onCreation

simgrid::xbt::signal< void(NetPoint *)> simgrid::kernel::routing::NetPoint::onCreation
static

The documentation for this class was generated from the following files: