#include <cache.hpp>


Definition at line 51 of file cache.hpp.
Public Member Functions | |
| cache (const gsgl::string &name) | |
| bool | contains_index (const gsgl::string &key) const |
| T *& | operator[] (const gsgl::string &key) |
| virtual | ~cache () |
Static Public Member Functions | |
| static T * | global_instance () |
Private Attributes | |
| dictionary< T *, gsgl::string > | items |
| gsgl::string | name |
| cache | ( | const gsgl::string & | name | ) | [inline] |
| ~cache | ( | ) | [inline, virtual] |
Definition at line 74 of file cache.hpp.
References dictionary::clear(), cache::items, iterable::iter(), gsgl::log(), and cache::name.
| bool contains_index | ( | const gsgl::string & | key | ) | const [inline] |
Definition at line 61 of file cache.hpp.
References dictionary::contains_index(), and cache::items.
Referenced by font::font(), material::material(), model_part::model_part(), and texture::texture().
| static T* global_instance | ( | ) | [inline, static, inherited] |
Reimplemented in broker, global_register, logger, global_register< gsgl::data::broker_creator, gsgl::data::dictionary< gsgl::data::broker_creator *, gsgl::string > >, global_register< gsgl::data::log_target, gsgl::data::list< gsgl::data::log_target * > >, and global_register< gsgl::data::log_target >.
Definition at line 70 of file singleton.hpp.
Referenced by widget::button_down_here(), font::font(), tabbox::handle_event(), material::material(), model_part::model_part(), and texture::texture().
| T* & operator[] | ( | const gsgl::string & | key | ) | [inline] |
dictionary<T *, gsgl::string> items [private] |
Definition at line 55 of file cache.hpp.
Referenced by cache::contains_index(), cache::operator[](), and cache::~cache().
gsgl::string name [private] |
1.5.5