|
Hymn to Beauty
C++ 3D Engine
|
Stores components. More...
#include <ComponentContainer.hpp>
Public Member Functions | |
| ComponentContainer () | |
| Create new component container. More... | |
| ~ComponentContainer () | |
| Destructor. More... | |
| C * | Create () |
| Create a new component. More... | |
| void | ClearKilled () |
| Clear all killed components. More... | |
| void | ClearKilled (const std::function< void(C *)> &preRemove) |
| const std::vector< C * > & | GetAll () const |
| Get all components. More... | |
Stores components.
| ComponentContainer< C >::ComponentContainer |
Create new component container.
| ComponentContainer< C >::~ComponentContainer |
Destructor.
| void ComponentContainer< C >::ClearKilled |
Clear all killed components.
| void ComponentContainer< C >::ClearKilled | ( | const std::function< void(C *)> & | preRemove | ) |
Clear all killed components, allowing the caller to do work with the component before it is removed.
| preRemove | A function that will be called for each killed component before it is removed, passing the component itself. |
| C * ComponentContainer< C >::Create |
Create a new component.
| const std::vector< C * > & ComponentContainer< C >::GetAll |
Get all components.