ResourceOld< T > Class Template Reference#include <resManager.h>
Inheritance diagram for ResourceOld< T >: ![]() Detailed Description
Wrapper class around a ResourceInstance subclass.
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Public Member Functions | |
| ResourceOld () | |
| If assigned a ResourceObject, it's assumed to already have been locked, lock count is incremented only for copies or assignment from another ResourceOld. | |
| ResourceOld (ResourceObject *p) | |
| ResourceOld (const ResourceOld &res) | |
| ~ResourceOld () | |
| Decrements the lock count on this object, and if the lock count is 0 afterwards,. | |
| const char * | getFilePath () const |
| < adds the object to the timeoutList for deletion on execution of purge(). Returns the path of the file (without the actual name) | |
| const char * | getFileName () const |
| Returns the actual file name (without the path). | |
| ResourceOld & | operator= (ResourceObject *p) |
| ResourceOld & | operator= (const ResourceOld &r) |
| U32 | getCRC () |
| bool | isNull () const |
| operator bool () const | |
| bool | operator! () const |
| T * | operator-> () |
| T & | operator * () |
| operator T * () const | |
| const T * | operator-> () const |
| const T & | operator * () const |
| operator const T * () const | |
| void | unlock () |
| void | purge () |
Private Member Functions | |
| void | _lock () |
| Increments the lock count on this object. | |
| void | _unlock () |
| Decrements the lock count on this object. | |
Private Attributes | |
| ResourceObject * | obj |
| Actual resource object. | |
| ResourceOld< T >::ResourceOld | ( | ) | [inline] |
If assigned a ResourceObject, it's assumed to already have been locked, lock count is incremented only for copies or assignment from another ResourceOld.
| ResourceOld< T >::ResourceOld | ( | ResourceObject * | p | ) | [inline] |
| ResourceOld< T >::ResourceOld | ( | const ResourceOld< T > & | res | ) | [inline] |
| ResourceOld< T >::~ResourceOld | ( | ) | [inline] |
Decrements the lock count on this object, and if the lock count is 0 afterwards,.
| void ResourceOld< T >::_lock | ( | ) | [inline, private] |
Increments the lock count on this object.
| void ResourceOld< T >::_unlock | ( | ) | [inline, private] |
Decrements the lock count on this object.
| const char* ResourceOld< T >::getFilePath | ( | ) | const [inline] |
< adds the object to the timeoutList for deletion on execution of purge(). Returns the path of the file (without the actual name)
| const char* ResourceOld< T >::getFileName | ( | ) | const [inline] |
Returns the actual file name (without the path).
| ResourceOld& ResourceOld< T >::operator= | ( | ResourceObject * | p | ) | [inline] |
| ResourceOld& ResourceOld< T >::operator= | ( | const ResourceOld< T > & | r | ) | [inline] |
| U32 ResourceOld< T >::getCRC | ( | ) | [inline] |
| bool ResourceOld< T >::isNull | ( | ) | const [inline] |
| ResourceOld< T >::operator bool | ( | ) | const [inline] |
| bool ResourceOld< T >::operator! | ( | ) | const [inline] |
| T* ResourceOld< T >::operator-> | ( | ) | [inline] |
| T& ResourceOld< T >::operator * | ( | ) | [inline] |
| ResourceOld< T >::operator T * | ( | ) | const [inline] |
| const T* ResourceOld< T >::operator-> | ( | ) | const [inline] |
| const T& ResourceOld< T >::operator * | ( | ) | const [inline] |
| ResourceOld< T >::operator const T * | ( | ) | const [inline] |
| void ResourceOld< T >::unlock | ( | ) | [inline] |
| void ResourceOld< T >::purge | ( | ) | [inline] |
ResourceObject* ResourceOld< T >::obj [private] |
Actual resource object.