00001 // EPOS-- Allocator Utility Declarations 00002 00003 // This work is licensed under the Creative Commons 00004 // Attribution-NonCommercial-NoDerivs License. To view a copy of this license, 00005 // visit http://creativecommons.org/licenses/by-nc-nd/2.0/ or send a letter to 00006 // Creative Commons, 559 Nathan Abbott Way, Stanford, California 94305, USA. 00007 00008 #ifndef __allocator_h 00009 #define __allocator_h 00010 00011 #include <system/config.h> 00012 #include <utility/list.h> 00013 00014 __BEGIN_SYS 00015 00016 enum { 00017 INCREMENTAL, 00018 AOFF_NC, 00019 AOFF_C, 00020 BINARY_BUDDY 00021 }; 00022 00023 template<int algorithm = INCREMENTAL> 00024 class Allocator {}; 00025 00026 __END_SYS 00027 00028 #endif