base: Tag API methods in flags.hh
authorHoa Nguyen <hoanguyen@ucdavis.edu>
Thu, 20 Aug 2020 20:54:34 +0000 (13:54 -0700)
committerHoa Nguyen <hoanguyen@ucdavis.edu>
Tue, 8 Sep 2020 16:29:43 +0000 (16:29 +0000)
Change-Id: I12eb94b43e190ee46f82fba7d2a3ef6c29fdee80
Signed-off-by: Hoa Nguyen <hoanguyen@ucdavis.edu>
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/33035
Maintainer: Bobby R. Bruce <bbruce@ucdavis.edu>
Tested-by: kokoro <noreply+kokoro@google.com>
Reviewed-by: Bobby R. Bruce <bbruce@ucdavis.edu>
Reviewed-by: Jason Lowe-Power <power.jg@gmail.com>
src/base/flags.hh

index 0b0a80390a4f58c8d388e5e92619cb0a9dafcdb9..c9525fae277ecd9a849dfe4e683e339b5bacf8a0 100644 (file)
@@ -37,11 +37,23 @@ class Flags
 
   public:
     typedef T Type;
+
+    /**
+     * @ingroup api_flags
+     * @{
+     */
     Flags() : _flags(0) {}
     Flags(Type flags) : _flags(flags) {}
+    /** @} */ // end of api_flags
 
+    /**
+     * @ingroup api_flags
+     */
     operator const Type() const { return _flags; }
 
+    /**
+     * @ingroup api_flags
+     */
     template <typename U>
     const Flags<T> &
     operator=(const Flags<U> &flags)
@@ -50,6 +62,9 @@ class Flags
         return *this;
     }
 
+    /**
+     * @ingroup api_flags
+     */
     const Flags<T> &
     operator=(T flags)
     {
@@ -57,6 +72,10 @@ class Flags
         return *this;
     }
 
+    /**
+     * @ingroup api_flags
+     * @{
+     */
     bool isSet() const { return _flags; }
     bool isSet(Type flags) const { return (_flags & flags); }
     bool allSet() const { return !(~_flags); }
@@ -72,6 +91,7 @@ class Flags
     {
         _flags = (_flags & ~mask) | (flags & mask);
     }
+    /** @} */ // end of api_flags
 };
 
 #endif // __BASE_FLAGS_HH__