Lolly 1.4.28
|
Go to the source code of this file.
Classes | |
struct | rep< T > |
base class of resources More... | |
class | resource_ptr< R > |
Macros | |
#define | RESOURCE(PTR) |
#define | make(T, s, im) ((T::instances->contains (s)) ? T (s) : T (im)) |
Functions | |
template<class R > | |
bool | is_nil (const resource_ptr< R > &res) |
template<class R > | |
tm_ostream & | operator<< (tm_ostream &out, const resource_ptr< R > &t) |
template<class T > | |
tm_ostream & | operator<< (tm_ostream &out, const resource_ptr< T > &t) |
Utils to define a class that holding its instances globally. Instances is called "Resources", and can be looked up by a string. Weak referrence is provided to access member of resources.
Definition in file resource.hpp.
Definition at line 45 of file resource.hpp.
Definition at line 62 of file resource.hpp.
|
inline |
Definition at line 55 of file resource.hpp.
tm_ostream & operator<< | ( | tm_ostream & | out, |
const resource_ptr< R > & | t ) |
tm_ostream & operator<< | ( | tm_ostream & | out, |
const resource_ptr< T > & | t ) |
Definition at line 65 of file resource.hpp.