ManaPlus
|
#include <atlasresource.h>
Public Member Functions | |
AtlasResource () | |
~AtlasResource () | |
void | incRef () |
void | decRef () |
int | calcMemoryLocal () const |
int | calcMemoryChilds (const int level) const |
Public Member Functions inherited from Resource | |
Resource () | |
~Resource () | |
int | calcMemoryLocal () const |
std::string | getCounterName () const |
Public Member Functions inherited from MemoryCounter | |
MemoryCounter () | |
virtual | ~MemoryCounter () |
int | calcMemory (const int level) const |
Data Fields | |
std::vector< TextureAtlas * > | atlases |
Data Fields inherited from Resource | |
time_t | mTimeStamp |
std::string | mIdPath |
std::string | mSource |
unsigned int | mRefCount |
bool | mProtected |
bool | mNotCount |
Definition at line 33 of file atlasresource.h.
|
inline |
AtlasResource::~AtlasResource | ( | ) |
Definition at line 33 of file atlasresource.cpp.
References atlases, TextureAtlas::atlasImage, ResourceManager::clearDeleted(), FOR_EACH, AtlasItem::image, and TextureAtlas::items.
|
virtual |
Reimplemented from MemoryCounter.
Definition at line 81 of file atlasresource.cpp.
References atlases, MemoryCounter::calcMemory(), and FOR_EACH.
|
virtual |
Reimplemented from MemoryCounter.
Definition at line 74 of file atlasresource.cpp.
References atlases, AtlasResource(), and Resource::calcMemoryLocal().
|
virtual |
Decrements the reference count and deletes the object if no references are left.
true
if the object was deleted false
otherwise. Reimplemented from Resource.
Definition at line 67 of file atlasresource.cpp.
References Resource::decRef(), AtlasManager::moveToDeleted(), and Resource::mRefCount.
Referenced by Map::~Map().
|
virtual |
Increments the internal reference count.
Reimplemented from Resource.
Definition at line 60 of file atlasresource.cpp.
References Resource::incRef(), AtlasManager::injectToResources(), and Resource::mRefCount.
std::vector<TextureAtlas*> AtlasResource::atlases |
Definition at line 52 of file atlasresource.h.
Referenced by calcMemoryChilds(), calcMemoryLocal(), Map::getAtlasCount(), AtlasManager::injectToResources(), AtlasManager::loadEmptyAtlas(), AtlasManager::loadTextureAtlas(), AtlasManager::moveToDeleted(), and ~AtlasResource().