UGDK
0.5.0
|
#include <ugdk/resource/resourcecontainer.h>
Public Member Functions | |
~ResourceContainer () | |
void | Insert (const std::string &tag, T *val) |
void | Replace (const std::string &tag, T *val) |
bool | Exists (const std::string &tag) const |
T * | Find (const std::string &tag) |
T * | Load (const std::string &filepath, const std::string &tag) |
Uses T::Load(const std::string&) in order to Load a new object. More... | |
Static Public Member Functions | |
static ResourceContainer * | Get () |
static void | Clear () |
template<class... Args> | |
static void | Create (Args...args) |
Static Protected Member Functions | |
static std::unique_ptr < ResourceContainer > & | Storage () |
|
inline |
|
inlinestatic |
|
inlinestatic |
bool ugdk::resource::ResourceContainer< T >::Exists | ( | const std::string & | tag | ) | const |
T * ugdk::resource::ResourceContainer< T >::Find | ( | const std::string & | tag | ) |
|
inlinestatic |
void ugdk::resource::ResourceContainer< T >::Insert | ( | const std::string & | tag, |
T * | val | ||
) |
T * ugdk::resource::ResourceContainer< T >::Load | ( | const std::string & | filepath, |
const std::string & | tag | ||
) |
Uses T::Load(const std::string&) in order to Load a new object.
void ugdk::resource::ResourceContainer< T >::Replace | ( | const std::string & | tag, |
T * | val | ||
) |
|
inlinestaticprotected |