24 #ifndef RESOURCES_RESOURCEMANAGER_RESOURCEMANAGER_H
25 #define RESOURCES_RESOURCEMANAGER_RESOURCEMANAGER_H
29 #if defined(DEBUG_DUMP_LEAKS) || defined(UNITTESTS)
95 #if defined(DEBUG_DUMP_LEAKS) || defined(UNITTESTS)
bool msg(InputEvent &event)
void deleteResourceManager()
Resource *(&) generator(const void *const data)
void release(Resource *const res)
void logResources(const std::string &msg)
void clearDeleted(const bool full)
bool isInCache(const std::string &idPath)
Resource * getFromCache(const std::string &filename, const int variant)
void decRefDelete(Resource *const res)
void scheduleDelete(SDL_Surface *const surface)
int calcMemory(const int level)
void logResource(const Resource *const res)
bool cleanOrphans(const bool always)
void moveToDeleted(Resource *const res)
std::map< std::string, Resource * > Resources
int calcMemoryChilds(const int level)
Resource * get(const std::string &idPath, generator fun, const void *const data)
bool addResource(const std::string &idPath, Resource *const resource)
void cleanUp(Resource *const res)
Resource * getTempResource(const std::string &idPath)