![]() |
GA::kit v0.3
G&A's in-house C++ application framework
|
resource cache class, represents a container for a resource type organized by name (string) More...
#include <resource.h>
Public Member Functions | |
| std::shared_ptr< ResourceT > | get (const std::string &name) |
| template<class... Args> | |
| std::shared_ptr< ResourceT > | load (const std::string &name, Args... args) |
| std::vector< std::string > | getNames () |
Public Attributes | |
| std::unordered_map< std::string, std::shared_ptr< ResourceT > > | cache |
resource cache class, represents a container for a resource type organized by name (string)
| ResourceT | - any class where the following function is defined within the class's namespace: |
template <class ...Args> bool load( ResourceT& resource, Args... args );
|
inline |
|
inline |
|
inline |
| std::unordered_map<std::string, std::shared_ptr<ResourceT> > ga::ResourceCache< ResourceT >::cache |