@@ -208,7 +208,7 @@ namespace hal
208
208
* @param[in] gate - The gate to check.
209
209
* @returns True if the gate is in the netlist, false otherwise.
210
210
*/
211
- bool is_gate_in_netlist (Gate* gate) const ;
211
+ bool is_gate_in_netlist (const Gate* gate) const ;
212
212
213
213
/* *
214
214
* Get the gate specified by the given ID.
@@ -342,7 +342,7 @@ namespace hal
342
342
* @param[in] net - The net to check.
343
343
* @returns True if the net is in the netlist, false otherwise.
344
344
*/
345
- bool is_net_in_netlist (Net* net) const ;
345
+ bool is_net_in_netlist (const Net* net) const ;
346
346
347
347
/* *
348
348
* Get the net specified by the given ID.
@@ -489,7 +489,7 @@ namespace hal
489
489
* @param[in] module - The module to check.
490
490
* @returns True if the module is in the netlist, false otherwise.
491
491
*/
492
- bool is_module_in_netlist (Module* module ) const ;
492
+ bool is_module_in_netlist (const Module* module ) const ;
493
493
494
494
/* *
495
495
* Get the module specified by the given ID.
@@ -568,7 +568,7 @@ namespace hal
568
568
* @param[in] grouping - The grouping to check.
569
569
* @returns True if the grouping is in the netlist, false otherwise.
570
570
*/
571
- bool is_grouping_in_netlist (Grouping* grouping) const ;
571
+ bool is_grouping_in_netlist (const Grouping* grouping) const ;
572
572
573
573
/* *
574
574
* Get the grouping specified by the given ID.
@@ -836,22 +836,22 @@ namespace hal
836
836
/* stores the modules */
837
837
Module* m_top_module;
838
838
std::unordered_map<u32 , std::unique_ptr<Module>> m_modules_map;
839
- std::unordered_set<Module*> m_modules_set;
839
+ std::unordered_set<const Module*> m_modules_set;
840
840
std::vector<Module*> m_modules;
841
841
842
842
/* stores the nets */
843
843
std::unordered_map<u32 , std::unique_ptr<Net>> m_nets_map;
844
- std::unordered_set<Net*> m_nets_set;
844
+ std::unordered_set<const Net*> m_nets_set;
845
845
std::vector<Net*> m_nets;
846
846
847
847
/* stores the gates */
848
848
std::unordered_map<u32 , std::unique_ptr<Gate>> m_gates_map;
849
- std::unordered_set<Gate*> m_gates_set;
849
+ std::unordered_set<const Gate*> m_gates_set;
850
850
std::vector<Gate*> m_gates;
851
851
852
852
/* stores the groupings */
853
853
std::unordered_map<u32 , std::unique_ptr<Grouping>> m_groupings_map;
854
- std::unordered_set<Grouping*> m_groupings_set;
854
+ std::unordered_set<const Grouping*> m_groupings_set;
855
855
std::vector<Grouping*> m_groupings;
856
856
857
857
/* stores the set of global gates and nets */
0 commit comments