28 #ifndef _ResourceManager_H__
29 #define _ResourceManager_H__
63 std::pair<bool, T> ret;
71 ret.second =
mItems.front();
167 const String& group,
bool isManual =
false,
178 virtual void setMemoryBudget(
size_t bytes);
182 virtual size_t getMemoryBudget(
void)
const;
193 virtual void unload(
const String& name);
215 virtual void unloadAll(
bool reloadableOnly =
true);
228 virtual void reloadAll(
bool reloadableOnly =
true);
244 virtual void unloadUnreferencedResources(
bool reloadableOnly =
true);
259 virtual void reloadUnreferencedResources(
bool reloadableOnly =
true);
297 virtual void remove(
const String& name);
331 virtual void removeAll(
void);
347 virtual void removeUnreferencedResources(
bool reloadableOnly =
true);
359 return !getResourceByName(name).isNull();
364 return !getByHandle(handle).isNull();
370 virtual void _notifyResourceTouched(
Resource* res);
375 virtual void _notifyResourceLoaded(
Resource* res);
380 virtual void _notifyResourceUnloaded(
Resource* res);
398 const String& group,
bool isManual =
false,
400 bool backgroundThread =
false);
418 const String& group,
bool isManual =
false,
420 bool backgroundThread =
false);
453 { (void)stream; (void)groupName; }
486 const String& getName()
const;
495 void destroyResourcePool(
const String& name);
497 void destroyAllResourcePools();
537 virtual void checkUsage(
void);