00001 00002 #ifndef __image_cache_hpp__ 00003 #define __image_cache_hpp__ 00004 00005 #include <vector> 00006 00007 #include <crbn/basic/basic.h> 00008 00009 #include <crbn/image/image.hpp> 00010 00011 typedef struct _ic_entry ic_entry; 00012 00013 class iCache 00014 { 00015 public: 00016 iCache(); 00017 ~iCache(); 00018 00019 uint32 memory() { return _memory_used; } 00020 void clear(); 00021 00022 int32 add( Image* image, char* module_name ); 00023 Image* get( int32 i ); 00024 00025 private: 00026 uint32 _memory_used; 00027 std::vector<ic_entry> _list; 00028 }; 00029 00030 #endif // __image_cache_hpp__