File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -47,15 +47,21 @@ class AtomLookup {
47
47
}
48
48
49
49
// / @brief Gets the current atom to pb bimap lock value.
50
- inline bool atom_pb_bimap_islocked () {return lock_atom_pb_bimap_;}
50
+ inline bool atom_pb_bimap_islocked () const {return lock_atom_pb_bimap_;}
51
51
52
52
53
53
// All accesses, mutable or immutable, to the atom to pb bimap
54
54
// will result in failing assertions if the lock is set to true.
55
55
// This is done to make sure there is only a single source of
56
56
// data in places that are supposed to use a local data structure
57
57
// instead of the global context.
58
+
59
+ // / @brief Returns a mutable reference to the atom to pb bimap, provided that access to it is unlocked. It will result in a crash otherwise.
60
+ // / @return Mutable reference to the atom pb bimap.
58
61
inline AtomPBBimap &mutable_atom_pb_bimap () {VTR_ASSERT (!lock_atom_pb_bimap_); return atom_to_pb_bimap_;}
62
+
63
+ // / @brief Returns an immutable reference to the atom to pb bimap, provided that access to it is unlocked. It will result in a crash otherwise.
64
+ // / @return Immutable reference to the atom pb bimap.
59
65
inline const AtomPBBimap &atom_pb_bimap () const {VTR_ASSERT (!lock_atom_pb_bimap_); return atom_to_pb_bimap_;}
60
66
61
67
/* *
You can’t perform that action at this time.
0 commit comments