Skip to content

Commit 4571d72

Browse files
Add doxygen comments to atom_pb_bimap getter functions
1 parent 8d801d7 commit 4571d72

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

vpr/src/base/atom_lookup.h

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,15 +47,21 @@ class AtomLookup {
4747
}
4848

4949
/// @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_;}
5151

5252

5353
// All accesses, mutable or immutable, to the atom to pb bimap
5454
// will result in failing assertions if the lock is set to true.
5555
// This is done to make sure there is only a single source of
5656
// data in places that are supposed to use a local data structure
5757
// 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.
5861
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.
5965
inline const AtomPBBimap &atom_pb_bimap() const {VTR_ASSERT(!lock_atom_pb_bimap_); return atom_to_pb_bimap_;}
6066

6167
/**

0 commit comments

Comments
 (0)