"L. Spiro Engine"
Public Member Functions | Protected Member Functions | Protected Attributes

lstl::CResourceManCrtp Class Reference

List of all members.

Public Member Functions

_tMappedType LSE_CALL GetRes (const _tKeyType &_tKey)
LSVOID LSE_CALL Release ()

Protected Member Functions

_tMappedType LSE_CALL AddRes (const _tKeyType &)

Protected Attributes

CMap< _tKeyType, _tMappedType > m_mList

Member Function Documentation

_tMappedType LSE_CALL lstl::CResourceManCrtp::AddRes ( const _tKeyType &  ) [inline, protected]

Adds a shared resource to the list, returned a shared pointer to it.

Parameters:
_tKeyKey of the resource to load.
Returns:
Returns a shared pointer to the loaded resource. If there was a failure to load, the shared pointer will be invalid.
_tMappedType LSE_CALL lstl::CResourceManCrtp::GetRes ( const _tKeyType &  _tKey) [inline]

Gets a shared pointer to a resource by a key. If there was a failure to load, the shared pointer will be invalid.

Parameters:
_tKeyKey of the resource to load.
Returns:
Returns a shared pointer to a resource by a key. If there was a failure to load, the shared pointer will be invalid.
LSVOID LSE_CALL lstl::CResourceManCrtp::Release ( ) [inline]

Releases all shared pointers held by this manager.


Member Data Documentation

CMap<_tKeyType, _tMappedType> lstl::CResourceManCrtp::m_mList [protected]

Map of shared pointers.


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