|
32 | 32 | #include "physical_types.h"
|
33 | 33 | #include "parse_switchblocks.h"
|
34 | 34 |
|
35 |
| -using namespace std; |
36 |
| -using namespace pugiutil; |
| 35 | +using pugiutil::ReqOpt; |
37 | 36 |
|
38 | 37 | /**** Function Declarations ****/
|
39 | 38 | /*---- Functions for Parsing Switchblocks from Architecture ----*/
|
@@ -85,7 +84,7 @@ void read_sb_wireconns(const t_arch_switch_inf* /*switches*/, int /*num_switches
|
85 | 84 | pugi::xml_node SubElem;
|
86 | 85 |
|
87 | 86 | /* count the number of specified wire connections for this SB */
|
88 |
| - num_wireconns = count_children(Node, "wireconn", loc_data, OPTIONAL); |
| 87 | + num_wireconns = count_children(Node, "wireconn", loc_data, ReqOpt::OPTIONAL); |
89 | 88 | sb->wireconns.reserve(num_wireconns);
|
90 | 89 |
|
91 | 90 | if (num_wireconns > 0) {
|
@@ -266,11 +265,11 @@ void read_sb_switchfuncs(pugi::xml_node Node, t_switchblock_inf* sb, const pugiu
|
266 | 265 | pugi::xml_node SubElem;
|
267 | 266 |
|
268 | 267 | /* get the number of specified permutation functions */
|
269 |
| - int num_funcs = count_children(Node, "func", loc_data, OPTIONAL); |
| 268 | + int num_funcs = count_children(Node, "func", loc_data, ReqOpt::OPTIONAL); |
270 | 269 |
|
271 | 270 | const char* func_type;
|
272 | 271 | const char* func_formula;
|
273 |
| - vector<string>* func_ptr; |
| 272 | + std::vector<std::string>* func_ptr; |
274 | 273 |
|
275 | 274 | /* used to index into permutation map of switchblock */
|
276 | 275 | SB_Side_Connection conn;
|
@@ -319,7 +318,7 @@ void read_sb_switchfuncs(pugi::xml_node Node, t_switchblock_inf* sb, const pugiu
|
319 | 318 | func_ptr = &(sb->permutation_map[conn]);
|
320 | 319 |
|
321 | 320 | /* Here we load the specified switch function(s) */
|
322 |
| - func_ptr->push_back(string(func_formula)); |
| 321 | + func_ptr->push_back(std::string(func_formula)); |
323 | 322 |
|
324 | 323 | func_ptr = nullptr;
|
325 | 324 | /* get the next switchblock function */
|
|
0 commit comments