Eneboo - Documentación para desarrolladores
|
00001 #ifndef _FIXEDREQUESTHEAP_H_ 00002 #define _FIXEDREQUESTHEAP_H_ 00003 00009 namespace Hoard { 00010 00011 template <size_t RequestSize, 00012 class SuperHeap> 00013 class FixedRequestHeap : public SuperHeap { 00014 public: 00015 inline void * malloc (size_t) { 00016 return SuperHeap::malloc (RequestSize); 00017 } 00018 inline static size_t getSize (void *) { 00019 return RequestSize; 00020 } 00021 }; 00022 00023 } 00024 00025 #endif