Resource< T > Class Template Reference#include <resManager.h>
Detailed Description
template<class T>
class Resource< T >
Wrapper class around a ResourceInstance subclass.
When the Resource<> is destroyed, it frees the lock on the resource.
- See also:
- ResManager
Constructor & Destructor Documentation
|
|
If assigned a ResourceObject, it's assumed to already have been locked, lock count is incremented only for copies or assignment from another Resource.
|
|
|
Decrements the lock count on this object, and if the lock count is 0 afterwards, adds the object to the timeoutList for deletion on execution of purge().
|
Member Function Documentation
|
template<class T> |
| void Resource< T >::_lock |
( |
|
) |
[inline, private] |
|
|
|
Increments the lock count on this object.
|
|
template<class T> |
| void Resource< T >::_unlock |
( |
|
) |
[inline, private] |
|
|
|
Decrements the lock count on this object.
|
|
template<class T> |
| const char* Resource< T >::getFilePath |
( |
|
) |
const [inline] |
|
|
|
Returns the path of the file (without the actual name).
|
|
template<class T> |
| const char* Resource< T >::getFileName |
( |
|
) |
const [inline] |
|
|
|
Returns the actual file name (without the path).
|
|
template<class T> |
| U32 Resource< T >::getCRC |
( |
|
) |
[inline] |
|
|
template<class T> |
| bool Resource< T >::isNull |
( |
|
) |
const [inline] |
|
|
template<class T> |
| Resource< T >::operator bool |
( |
|
) |
const [inline] |
|
|
template<class T> |
| T* Resource< T >::operator-> |
( |
|
) |
[inline] |
|
|
template<class T> |
| T& Resource< T >::operator * |
( |
|
) |
[inline] |
|
|
template<class T> |
| Resource< T >::operator T * |
( |
|
) |
const [inline] |
|
|
template<class T> |
| const T* Resource< T >::operator-> |
( |
|
) |
const [inline] |
|
|
template<class T> |
| const T& Resource< T >::operator * |
( |
|
) |
const [inline] |
|
|
template<class T> |
| Resource< T >::operator const T * |
( |
|
) |
const [inline] |
|
Field Documentation
|