From 0ebe525e5bb4c0953bc60350c0dfeaf40112920f Mon Sep 17 00:00:00 2001 From: rubidium Date: Wed, 21 Oct 2009 15:40:50 +0000 Subject: (svn r17838) -Document: the Pool struct's template parameters --- src/core/pool_type.hpp | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'src/core/pool_type.hpp') diff --git a/src/core/pool_type.hpp b/src/core/pool_type.hpp index c9b1e3772..728678515 100644 --- a/src/core/pool_type.hpp +++ b/src/core/pool_type.hpp @@ -12,6 +12,13 @@ #ifndef POOL_TYPE_HPP #define POOL_TYPE_HPP +/** + * Base class for all pools. + * @tparam Titem Type of the class/struct that is going to be pooled + * @tparam Tindex Type of the index for this pool + * @tparam Tgrowth_step Size of growths; if the pool is full increase the size by this amount + * @tparam Tmax_size Maximum size of the pool + */ template struct Pool { static const size_t MAX_SIZE = Tmax_size; ///< Make template parameter accessible from outside @@ -64,7 +71,10 @@ struct Pool { return this->items <= Tmax_size - n; } - /** Base class for all PoolItems */ + /** + * Base class for all PoolItems + * @tparam Tpool The pool this item is going to be part of + */ template *Tpool> struct PoolItem { Tindex index; ///< Index of this pool item -- cgit v1.2.3-54-g00ecf