SST/macro
null_nic.h
Go to the documentation of this file.
1 #ifndef NULLNIC_H
2 #define NULLNIC_H
3 
5 #if !SSTMAC_INTEGRATED_SST_CORE
8 
9 namespace sstmac {
10 namespace hw {
11 
12 class null_nic :
13  public simple_nic
14 {
15 
16  public:
18  simple_nic(interconn) {}
19 
20  virtual ~null_nic() throw () {}
21 
22  std::string
23  to_string() const {
24  return sprockit::printf("Null NIC(%d)", int(my_addr_));
25  }
26 
27  void
28  init_factory_params(sprockit::sim_parameters* params);
29 
30 };
31 
32 }
33 }
34 
35 #endif
36 
37 
38 #endif // NULLNIC_H
39 
null_nic(sprockit::factory_type *interconn)
Definition: null_nic.h:17
std::string printf(const char *fmt,...)
void init_factory_params(sprockit::sim_parameters *params)
Initialize all member variables from the parameters object.
SUMI = Simulator unified messagine interface It is also the name for a solid ink in Japanese - i...
A networkinterface is a delegate between a node and a server module.
Definition: simple_nic.h:28
node_id my_addr_
Definition: nic.h:170
std::string to_string() const
Definition: null_nic.h:23
virtual ~null_nic()
Definition: null_nic.h:20