@@ -67,13 +67,17 @@ struct Context {
67
67
*
68
68
* This should contain only data structures related to user specified netlist
69
69
* being implemented by VPR onto the target device.
70
+ *
71
+ * This class provides two categories of getter functions that give mutable or
72
+ * immutable reference to the global state. If you need read-only access, use
73
+ * the normal getter functions and if you need write access to the context use
74
+ * the mutable functions.
70
75
*/
71
76
struct AtomContext : public Context {
72
77
/* *******************************************************************
73
78
* Atom Netlist
74
79
********************************************************************/
75
- private:
76
- // bool atom_lock_ = true;
80
+ private:
77
81
// / @brief Atom netlist
78
82
AtomNetlist nlist_;
79
83
// / @brief Mappings to/from the Atom Netlist to physically described .blif models
@@ -82,16 +86,32 @@ struct AtomContext : public Context {
82
86
// / algorithm) before packing and the cluster-level placement.
83
87
FlatPlacementInfo flat_placement_info_;
84
88
85
- public:
86
-
87
- const AtomNetlist& netlist () const {return nlist_;}
88
- AtomNetlist& mutable_netlist () {return nlist_;}
89
+ public:
89
90
90
- const AtomLookup& lookup () const {return lookup_;}
91
- AtomLookup& mutable_lookup () {return lookup_;}
92
-
93
- const FlatPlacementInfo& flat_placement_info () const {return flat_placement_info_;}
94
- FlatPlacementInfo& mutable_flat_placement_info () {return flat_placement_info_;}
91
+ /* *
92
+ * @brief Immutable reference to the AtomNetlist
93
+ */
94
+ inline const AtomNetlist& netlist () const {return nlist_;}
95
+ /* *
96
+ * @brief Mutable reference to the AtomNetlist
97
+ */
98
+ inline AtomNetlist& mutable_netlist () {return nlist_;}
99
+ /* *
100
+ * @brief Immutable reference to the AtomLookup
101
+ */
102
+ inline const AtomLookup& lookup () const {return lookup_;}
103
+ /* *
104
+ * @brief Mutable reference to the AtomLookup
105
+ */
106
+ inline AtomLookup& mutable_lookup () {return lookup_;}
107
+ /* *
108
+ * @brief Immutable reference to the FlatPlacementInfo
109
+ */
110
+ inline const FlatPlacementInfo& flat_placement_info () const {return flat_placement_info_;}
111
+ /* *
112
+ * @brief Mutable reference to the FlatPlacementInfo
113
+ */
114
+ inline FlatPlacementInfo& mutable_flat_placement_info () {return flat_placement_info_;}
95
115
96
116
};
97
117
0 commit comments