ResDictionary Class Reference#include <resManager.h>
List of all members.
Detailed Description
Resource Dictionary.
Maps of names and object IDs to objects.
Provides fast lookup for name->object, id->object and for fast removal of an object given a pointer to it.
- See also:
- ResManager
|
Hash Table |
enum | { DefaultTableSize = 1029
} |
S32 | hash (StringTableEntry path, StringTableEntry name) |
S32 | hash (ResourceObject *obj) |
ResourceObject ** | hashTable |
S32 | entryCount |
S32 | hashTableSize |
DataChunker | memPool |
Public Member Functions |
| ResDictionary () |
| ~ResDictionary () |
void | insert (ResourceObject *obj, StringTableEntry path, StringTableEntry file) |
| Add a ResourceObject to the dictionary.
|
void | pushBehind (ResourceObject *obj, S32 mask) |
| Move a previously added resource object to be in the list after everything that matches the specified mask.
|
void | remove (ResourceObject *obj) |
| Remove a resource object from the dictionary.
|
void | getHash (ResourceObject ***hash, U32 *hashSize) |
|
These functions search the hash table for an individual resource. If the resource has already been loaded, it will find the resource and return its object. If not, it will return NULL.
|
ResourceObject * | find (StringTableEntry path, StringTableEntry file) |
ResourceObject * | find (StringTableEntry path, StringTableEntry file, StringTableEntry filePath, StringTableEntry fileName) |
ResourceObject * | find (StringTableEntry path, StringTableEntry file, U32 flags) |
Member Enumeration Documentation
Constructor & Destructor Documentation
ResDictionary::ResDictionary |
( |
|
) |
|
ResDictionary::~ResDictionary |
( |
|
) |
|
Member Function Documentation
Move a previously added resource object to be in the list after everything that matches the specified mask.
Remove a resource object from the dictionary.
Member Data Documentation
|