base: Tag API methods in stl_helpers.hh
authorHoa Nguyen <hoanguyen@ucdavis.edu>
Fri, 21 Aug 2020 01:14:04 +0000 (18:14 -0700)
committerHoa Nguyen <hoanguyen@ucdavis.edu>
Tue, 8 Sep 2020 16:27:45 +0000 (16:27 +0000)
Change-Id: Ibc967febfd29444214094883121a66600d80cad8
Signed-off-by: Hoa Nguyen <hoanguyen@ucdavis.edu>
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/33118
Reviewed-by: Bobby R. Bruce <bbruce@ucdavis.edu>
Reviewed-by: Jason Lowe-Power <power.jg@gmail.com>
Maintainer: Bobby R. Bruce <bbruce@ucdavis.edu>
Tested-by: kokoro <noreply+kokoro@google.com>
src/base/stl_helpers.hh

index ef4f9ac1f68de35ea634100c1c28d08aaaf9009f..ae369b5262915b746890da8fb9a6e5b38a8275cc 100644 (file)
@@ -43,10 +43,16 @@ class ContainerPrint
     bool first;
 
   public:
+    /**
+     * @ingroup api_base_utils
+     */
     ContainerPrint(std::ostream &out)
         : out(out), first(true)
     {}
 
+    /**
+     * @ingroup api_base_utils
+     */
     void
     operator()(const T &elem)
     {
@@ -60,8 +66,12 @@ class ContainerPrint
     }
 };
 
-// Write out all elements in an stl container as a space separated
-// list enclosed in square brackets
+/**
+ * Write out all elements in an stl container as a space separated
+ * list enclosed in square brackets
+ *
+ * @ingroup api_base_utils
+ */
 template <template <typename T, typename A> class C, typename T, typename A>
 std::ostream &
 operator<<(std::ostream& out, const C<T,A> &vec)