diff options
author | sc | 2000-11-28 14:02:19 +0000 |
---|---|---|
committer | sc | 2000-11-28 14:02:19 +0000 |
commit | 74da2751f804bc667b3e03294e8afd6d27b94c3f (patch) | |
tree | e2f9e018b37a8cc5d72cd3cba67b1b549654f122 /utils/Allocator.h | |
parent | 68a44941a13f9a63fa78137441fe16644a83309f (diff) | |
download | ivy-league-74da2751f804bc667b3e03294e8afd6d27b94c3f.zip ivy-league-74da2751f804bc667b3e03294e8afd6d27b94c3f.tar.gz ivy-league-74da2751f804bc667b3e03294e8afd6d27b94c3f.tar.bz2 ivy-league-74da2751f804bc667b3e03294e8afd6d27b94c3f.tar.xz |
Incorporation into IvyLeague
Ccu -> Ivl
ccu -> ivl
Smart pointers disappear (too dangerous)
Imakefile disappears (perhaps temporarily)
Diffstat (limited to 'utils/Allocator.h')
-rw-r--r-- | utils/Allocator.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/utils/Allocator.h b/utils/Allocator.h index 33939f7..a93fdfb 100644 --- a/utils/Allocator.h +++ b/utils/Allocator.h @@ -18,7 +18,7 @@ #include "cplus_bugs.h" -class CcuAllocator { +class IvlAllocator { private: static void MemoryOverflow (); @@ -29,17 +29,17 @@ static void MemoryOverflow (); void* AllocNext; /* room left in the last chunk */ public: - CcuAllocator (unsigned int); - ~CcuAllocator (); + IvlAllocator (unsigned int); + ~IvlAllocator (); void* Alloc (); void Free (void*); }; #ifndef CPLUS_BUG19 -template <class OBJECT> class CcuAllocatorOf : public CcuAllocator { +template <class OBJECT> class IvlAllocatorOf : public IvlAllocator { public: -inline CcuAllocatorOf () : CcuAllocator (sizeof (OBJECT)) {} -inline OBJECT* Alloc () { return (OBJECT*) CcuAllocator::Alloc (); } +inline IvlAllocatorOf () : IvlAllocator (sizeof (OBJECT)) {} +inline OBJECT* Alloc () { return (OBJECT*) IvlAllocator::Alloc (); } }; #endif |