SimGrid  3.14.159
Versatile Simulation of Distributed Systems
simgrid::kernel::routing::NetCard 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 route information between two netcards

#include <NetCard.hpp>

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

Public Types

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

Public Member Functions

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

Static Public Attributes

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

Additional Inherited Members

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

Member Enumeration Documentation

◆ Type

Enumerator
Host 
Router 
NetZone 

Constructor & Destructor Documentation

◆ NetCard()

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

◆ ~NetCard()

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

Member Function Documentation

◆ id()

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

◆ name()

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

◆ cname()

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

◆ netzone()

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

the NetZone in which this netcard is included

◆ isNetZone()

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

◆ isHost()

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

◆ isRouter()

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

◆ operator<()

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

Member Data Documentation

◆ onCreation

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

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