A generic reference counted resource object.
More...
#include <resource.h>
|
std::string | mIdPath |
| Path identifying this resource.
|
|
time_t | mTimeStamp |
| Time at which the resource was orphaned.
|
|
unsigned | mRefCount = 0 |
| Reference count.
|
|
A generic reference counted resource object.
Definition at line 30 of file resource.h.
◆ OrphanPolicy
Enumerator |
---|
DeleteLater | |
DeleteImmediately | |
Definition at line 35 of file resource.h.
◆ Resource()
◆ ~Resource()
virtual Resource::~Resource |
( |
| ) |
|
|
protectedvirtualdefault |
◆ decRef()
Decrements the reference count.
When no references are left, either schedules the object for deletion or deletes it immediately, depending on the orphanPolicy.
Definition at line 30 of file resource.cpp.
◆ getIdPath()
const std::string & Resource::getIdPath |
( |
| ) |
const |
|
inline |
Return the path identifying this resource.
Definition at line 57 of file resource.h.
◆ incRef()
void Resource::incRef |
( |
| ) |
|
|
inline |
Increments the internal reference count.
Definition at line 45 of file resource.h.
◆ ResourceManager
◆ mIdPath
std::string Resource::mIdPath |
|
private |
Path identifying this resource.
Definition at line 64 of file resource.h.
◆ mRefCount
unsigned Resource::mRefCount = 0 |
|
private |
◆ mTimeStamp
time_t Resource::mTimeStamp |
|
private |
Time at which the resource was orphaned.
Definition at line 65 of file resource.h.
The documentation for this class was generated from the following files: