|
GEL
2
GEL is a library for Geometry and Linear Algebra
|
This class template represents a resource record. More...
#include <ResourceManager.h>
Public Member Functions | |
| ResourceRecord () | |
| Construct a null record. | |
| ResourceRecord (const std::string &_name, RES *_res, bool static_res=false) | |
| Construct a resource record with a name and a pointer. | |
| void | erase_resource () |
| void | increment_usage () |
| Increment the usage counter. | |
| void | decrement_usage () |
| Decrement the usage counter. assert that counter is >0. | |
| int | get_usage () const |
| Return the usage count (mostly for debugging) | |
| const std::string & | get_name () const |
| Get the name of a resource. | |
| RES *const | get_ptr () |
| Get a pointer to the resource (const pointer) | |
| const RES *const | get_ptr () const |
| Get a resource pointer (const pointer and pointee) | |
| void | remove_when_unused () |
| FlagByte | get_flags () const |
This class template represents a resource record.
There is a pointer to the actual resource (of type RES) and a usage counter which should never be less than 0.
1.7.5.1