Eneboo - Documentación para desarrolladores
|
00001 #ifndef _EMPTYHOARDMANAGER_H_ 00002 #define _EMPTYHOARDMANAGER_H_ 00003 00004 #include "basehoardmanager.h" 00005 #include "sassert.h" 00006 00007 template <class SuperblockType_> 00008 class EmptyHoardManager : public BaseHoardManager<SuperblockType_> { 00009 public: 00010 00011 EmptyHoardManager (void) 00012 : _magic (0x1d2d3d40) 00013 {} 00014 00015 int isValid (void) const { 00016 return (_magic == 0x1d2d3d40); 00017 } 00018 00019 typedef SuperblockType_ SuperblockType; 00020 00021 void free (void *) { abort(); } 00022 void lock (void) {} 00023 void unlock (void) {} 00024 00025 SuperblockType * get (size_t, EmptyHoardManager *) { abort(); return NULL; } 00026 void put (SuperblockType *, size_t) { abort(); } 00027 00028 private: 00029 00030 unsigned long _magic; 00031 00032 }; 00033 00034 00035 #endif