GEL  2
GEL is a library for Geometry and Linear Algebra
Public Member Functions
Util::ResourceRecord< RES > Class Template Reference

This class template represents a resource record. More...

#include <ResourceManager.h>

List of all members.

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

Detailed Description

template<class RES>
class Util::ResourceRecord< RES >

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.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations