SimGrid  3.21
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>

Inherits simgrid::xbt::Extendable< NetPoint >.

Public Types

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

Public Member Functions

 NetPoint (std::string name, NetPoint::Type component_type, NetZoneImpl *netzone_p)
 
 ~NetPoint ()=default
 
unsigned int id ()
 
const std::string & get_name () const
 
const char * get_cname () const
 
NetZoneImplget_englobing_zone ()
 the NetZone in which this NetPoint is included More...
 
bool is_netzone ()
 
bool is_host ()
 
bool is_router ()
 
bool operator< (const NetPoint &rhs) const
 
- Public Member Functions inherited from simgrid::xbt::Extendable< NetPoint >
 Extendable ()
 
 ~Extendable ()
 
void * extension (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 *)> on_creation
 

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 ()
 

Member Enumeration Documentation

◆ Type

Enumerator
Host 
Router 
NetZone 

Constructor & Destructor Documentation

◆ NetPoint()

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

◆ ~NetPoint()

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

Member Function Documentation

◆ id()

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

◆ get_name()

const std::string& simgrid::kernel::routing::NetPoint::get_name ( ) const
inline

◆ get_cname()

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

◆ get_englobing_zone()

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

the NetZone in which this NetPoint is included

◆ is_netzone()

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

◆ is_host()

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

◆ is_router()

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

◆ operator<()

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

Member Data Documentation

◆ on_creation

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

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