SST/macro
integrated_core.h
Go to the documentation of this file.
1 
2 #ifndef SSTMAC_MICRO_INTEGRATED_SST_CORE_H_
3 #define SSTMAC_MICRO_INTEGRATED_SST_CORE_H_
4 
5 #include <sst_config.h>
6 
7 #include <sst/core/element.h>
8 #include <sst/core/params.h>
9 
10 #include <sprockit/unordered.h>
12 
14 
15 #include <Python.h>
16 
17 namespace sstmac {
18 
19 inline sprockit::sim_parameters*
21  const SST::Params& map
22 )
23 {
24  sprockit::sim_parameters* rv = new sprockit::sim_parameters;
25  std::set<std::string> key_names = map.getKeys();
26  for(auto&& key : key_names) {
27  rv->parse_keyval(
28  key, map.find_string(key), false, true, false);
29  }
30  return rv;
31 }
32 
33 template <typename Mapping>
34 sprockit::sim_parameters*
36  Mapping&& map
37 )
38 {
39  sprockit::sim_parameters* rv = new sprockit::sim_parameters;
40  for(auto&& pair : map) {
41  rv->parse_keyval(pair.first, pair.second, false, true, false);
42  }
43  return rv;
44 }
45 
46 } // end namespace sstmac
47 
48 #endif /* SSTMAC_MICRO_INTEGRATED_SST_CORE_H_ */
49 
sprockit::sim_parameters * make_sim_params_from_params(const SST::Params &map)
sprockit::sim_parameters * make_sim_params_from_mapping(Mapping &&map)
SUMI = Simulator unified messagine interface It is also the name for a solid ink in Japanese - i...