Resource< T > Class Template Reference#include <resource.h>
Inheritance diagram for Resource< T >: ![]()
|
Public Member Functions | |
Resource () | |
Resource (const ResourceBase &base) | |
void | operator= (const ResourceBase &base) |
T * | operator-> () |
T & | operator * () |
operator T * () | |
const T * | operator-> () const |
const T & | operator * () const |
operator const T * () const | |
Static Public Member Functions | |
static Signature | signature () |
Static Public Attributes | |
static Signal< bool(const Torque::Path &, void **)> | getLoadSignal )() |
Registering with this signal will give an opportunity to handle resource creation before calling the create() function. | |
Private Member Functions | |
T * | getResource () |
const T * | getResource () const |
Signature | getSignature () const |
ResourceHolderBase * | createHolder (void *) |
void * | create (const Torque::Path &path) |
Private Attributes | |
Signal< bool(const Torque::Path &, void **)> | getStaticLoadSignal )() |
Resource< T >::Resource | ( | const ResourceBase & | base | ) | [inline] |
void Resource< T >::operator= | ( | const ResourceBase & | base | ) | [inline] |
T* Resource< T >::operator-> | ( | ) | [inline] |
T& Resource< T >::operator * | ( | ) | [inline] |
Resource< T >::operator T * | ( | ) | [inline] |
const T* Resource< T >::operator-> | ( | ) | const [inline] |
const T& Resource< T >::operator * | ( | ) | const [inline] |
Resource< T >::operator const T * | ( | ) | const [inline] |
T* Resource< T >::getResource | ( | ) | [inline, private] |
const T* Resource< T >::getResource | ( | ) | const [inline, private] |
Reimplemented from ResourceBase.
ResourceHolderBase * Resource< T >::createHolder | ( | void * | ) | [inline, private, virtual] |
Reimplemented from ResourceBase.
void* Resource< T >::create | ( | const Torque::Path & | path | ) | [private, virtual] |
Reimplemented from ResourceBase.
Signal<bool(const Torque::Path &, void**)> Resource< T >::getLoadSignal)() [inline, static] |
Registering with this signal will give an opportunity to handle resource creation before calling the create() function.
This may be used to handle file extensions differently and allow a more plugin-like approach to adding resources. Using this mechanism, one could, for example, override the default methods for loading DTS without touching the main source.
Signal<bool(const Torque::Path &, void**)> Resource< T >::getStaticLoadSignal)() [inline, private] |
Reimplemented from ResourceBase.