#include <resources.h>
Public Types | |
| typedef Resource< R, Destroy > | Resource |
| the type resource this registry holds | |
|
typedef StringHash< Resource * >::Map | ResourceMap |
| internal registry map type | |
Public Member Functions | |
| Resource * | load (const std::string &resname, const std::string &spec) |
| template for loading a Resource from disk | |
| Resource * | loadAnonymous (const std::string &spec) |
| For this one, you own a reference to the resource returned. | |
| void | insert (const std::string &resname, Resource *res) |
| insert a Resource into the pool The resource must be valid | |
| Invalid::OutType | find (const std::string &resname) const |
| Find a resource, with fallback on failure. | |
| Resource * | get (const std::string &resname) const |
| Find a resource, return null on failure. | |
| void | unregisterAll () |
| Release all resources in this registry. | |
| ResourceMap::const_iterator | begin () const |
| begin() function for internal map | |
| ResourceMap::const_iterator | end () const |
| end() function for internal map | |
| ResourceMap::size_type | size () const |
| size() function for internal map | |
| bool | empty () const |
| empty() function for internal map | |
This document is licensed under the terms of the GNU Free Documentation License and may be freely distributed under the conditions given by this license.