diff options
author | chatty | 1993-07-27 14:04:22 +0000 |
---|---|---|
committer | chatty | 1993-07-27 14:04:22 +0000 |
commit | 05f3580638afc0fcef5e0325666cbbd269712aa6 (patch) | |
tree | 0e86051e7f2dbac7ecd3a39ebd9b134987a25b4e /utils | |
parent | d23731d82010150a3130d3de0fa5099e0b774b93 (diff) | |
download | ivy-league-05f3580638afc0fcef5e0325666cbbd269712aa6.zip ivy-league-05f3580638afc0fcef5e0325666cbbd269712aa6.tar.gz ivy-league-05f3580638afc0fcef5e0325666cbbd269712aa6.tar.bz2 ivy-league-05f3580638afc0fcef5e0325666cbbd269712aa6.tar.xz |
Added documentation for CcuAllocatorOf
Diffstat (limited to 'utils')
-rw-r--r-- | utils/Allocator.cc | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/utils/Allocator.cc b/utils/Allocator.cc index d89ebf6..d1bdf8d 100644 --- a/utils/Allocator.cc +++ b/utils/Allocator.cc @@ -145,3 +145,30 @@ CcuAllocator :: Free (void* p) FreeList = p; #endif } + + +#ifdef DOC + +/*?class CcuAllocatorOf +The template class \typ{CcuAllocatorOf <OBJECT>} is a generic version of the class +\typ{CcuAllocator} that is designed to allocate memory for objects of the class \typ{OBJECT}. +The following functions are redefined: +?*/ + +/*? +Build an allocator that will allow blocks with the same size as objects of class \typ{OBJECT}. +?*/ +CcuAllocatorOf :: CcuAllocatorOf () +{ +} + +/*? +This function is the same as \typ{CcuAllocator}::\fun{Alloc} except that it returns \typ{OBJECT*} +instead of \typ{void*}. +?*/ +OBJECT* +CcuAllocatorOf :: Alloc () +{ +} + +#endif /* DOC */ |