--- parser3/src/include/pa_pool.h 2001/03/19 15:29:38 1.34 +++ parser3/src/include/pa_pool.h 2001/03/19 18:00:26 1.37 @@ -1,9 +1,11 @@ /** @file - Parser + Parser: pool class decl. + Copyright (c) 2001 ArtLebedev Group (http://www.artlebedev.com) + Author: Alexander Petrosyan (http://design.ru/paf) - $Id: pa_pool.h,v 1.34 2001/03/19 15:29:38 paf Exp $ + $Id: pa_pool.h,v 1.37 2001/03/19 18:00:26 paf Exp $ */ #ifndef PA_POOL_H @@ -14,7 +16,7 @@ class Exception; class Temp_exception; -/** @brief +/** Pool mechanizm allows users not to free up allocated memory, leaving that problem to 'pools'. @@ -85,7 +87,7 @@ private: //disabled Pool& operator = (const Pool&) { return *this; } }; -/** @brief +/** Base for all classes that are allocated in 'pools'. Holds Pool object. Contains useful wrappers to it's methods. @@ -94,7 +96,8 @@ class Pooled { // the pool i'm allocated on Pool& fpool; public: - + + /// the Pooled-sole: Pooled instances can be allocated in Pool rather then on heap static void *operator new(size_t size, Pool& apool) { return apool.malloc(size); } @@ -115,7 +118,7 @@ public: /// useful macro for creating objects on current Pooled object Pooled::pool() #define NEW new(pool()) -/** @brief +/** Auto-object used for temporary changing Pool's exception(). Use by with these macros: