Castor3D  ..
Protected Member Functions | List of all members
Castor3D::ResourceManager< Key, Elem > Class Template Reference

Base class for an element manager. More...

+ Inheritance diagram for Castor3D::ResourceManager< Key, Elem >:
+ Collaboration diagram for Castor3D::ResourceManager< Key, Elem >:

Protected Member Functions

 ResourceManager (Engine &p_owner)
 Constructor. More...
 
 ~ResourceManager ()
 Destructor. More...
 
- Protected Member Functions inherited from Castor3D::Manager< Key, Elem, Engine, ResourceManagerEngineGetter >
 Manager (Engine &p_owner)
 Constructor. More...
 
 ~Manager ()
 Destructor. More...
 

Additional Inherited Members

- Public Types inherited from Castor3D::Manager< Key, Elem, Engine, ResourceManagerEngineGetter >
typedef Castor::Collection< Elem, Key > Collection
 
- Public Member Functions inherited from Castor3D::Manager< Key, Elem, Engine, ResourceManagerEngineGetter >
void Cleanup ()
 Sets all the elements to be cleaned up. More...
 
void Clear ()
 Flushes the collection. More...
 
bool IsEmpty ()
 
void Insert (Key const &p_name, std::shared_ptr< Elem > p_element)
 Removes an object, given a name. More...
 
void Remove (Key const &p_name)
 Removes an object, given a name. More...
 
void SetRenderSystem (RenderSystem *p_renderSystem)
 
RenderSystemSetRenderSystem () const
 
EngineGetEngine () const
 
Castor::String const & GetObjectTypeName () const
 
bool Has (Key const &p_name) const
 
std::shared_ptr< Elem > Find (Key const &p_name) const
 Looks for an element with given name. More...
 
void lock () const
 Locks the collection mutex. More...
 
void unlock () const
 Unlocks the collection mutex. More...
 
Collection::TObjPtrMapIt begin ()
 Returns an iterator to the first element of the collection. More...
 
Collection::TObjPtrMapConstIt begin () const
 Returns an constant iterator to the first element of the collection. More...
 
Collection::TObjPtrMapIt end ()
 Returns an iterator to the after last element of the collection. More...
 
Collection::TObjPtrMapConstIt end () const
 Returns an constant iterator to the after last element of the collection. More...
 
std::shared_ptr< Elem > Create (Key const &p_name, Parameters &&... p_params)
 Creates an object. More...
 
- Protected Attributes inherited from Castor3D::Manager< Key, Elem, Engine, ResourceManagerEngineGetter >
RenderSystemm_renderSystem
 The RenderSystem. More...
 
Collection m_elements
 The elements collection. More...
 

Detailed Description

template<typename Key, typename Elem>
class Castor3D::ResourceManager< Key, Elem >

Base class for an element manager.

Author
Sylvain DOREMUS
Date
13/10/2015
Version
0.8.0

Constructor & Destructor Documentation

◆ ResourceManager()

template<typename Key, typename Elem>
Castor3D::ResourceManager< Key, Elem >::ResourceManager ( Engine p_owner)
inlineprotected

Constructor.

Parameters
[in]p_ownerThe owner.

◆ ~ResourceManager()

template<typename Key, typename Elem>
Castor3D::ResourceManager< Key, Elem >::~ResourceManager ( )
inlineprotected

Destructor.


The documentation for this class was generated from the following file: