|
SimpleGL
1.1.0
A framework for platform independent rendering
|
This class provides an abstract class for managing objects. More...
#include <manager.hpp>
Public Member Functions | |
| ~Manager (void) | |
| Deletes a manager and disposes all managed objects. More... | |
| void | put (std::string name, T *value) |
| Stores a object with specified name. More... | |
| T * | get (std::string name) |
| Gets a managed object from the storage. More... | |
| virtual void | remove (std::string name) |
| Removes and disposes an object from the storage. More... | |
| virtual void | clear () |
| Removes all objects and disposes them. More... | |
Protected Member Functions | |
| Manager (void) | |
| Initializes a new manager. More... | |
Protected Attributes | |
| std::map< std::string, T * > | objects |
| Contains the objects to manage. More... | |
This class provides an abstract class for managing objects.
Definition at line 24 of file manager.hpp.
|
protected |
Initializes a new manager.
Definition at line 15 of file manager.tcc.
| sgl::Manager< T >::~Manager | ( | void | ) |
Deletes a manager and disposes all managed objects.
Definition at line 20 of file manager.tcc.
|
virtual |
Removes all objects and disposes them.
Reimplemented in sgl::TextureImageManager, sgl::ShaderManager, sgl::TextureManager, and sgl::ShaderModuleManager.
Definition at line 47 of file manager.tcc.
| T * sgl::Manager< T >::get | ( | std::string | name | ) |
Gets a managed object from the storage.
| name | The name of the object. |
Definition at line 37 of file manager.tcc.
| void sgl::Manager< T >::put | ( | std::string | name, |
| T * | value | ||
| ) |
Stores a object with specified name.
| name | The name for the object. |
| value | The object to store. |
Definition at line 26 of file manager.tcc.
|
virtual |
Removes and disposes an object from the storage.
| name | The name of the object. |
Reimplemented in sgl::TextureImageManager, sgl::ShaderManager, sgl::TextureManager, and sgl::ShaderModuleManager.
Definition at line 42 of file manager.tcc.
|
protected |
Contains the objects to manage.
Definition at line 28 of file manager.hpp.
1.8.11