8#ifndef MALENA_COMPONENTSMANAGER_H
9#define MALENA_COMPONENTSMANAGER_H
57 std::vector<T*> _components;
117 void doRemoveComponent(T* component);
123#include "../../../src/Core/CoreManager.cpp"
Static, type-safe collection manager for Core-derived objects.
const std::vector< T * > & getComponents() const
Return a read-only view of all currently registered objects.
void clear()
Remove all registered objects.
void addComponent(T &component)
Register a T object with this manager.
bool removeComponent(T *component)
Unregister a T object by pointer.
bool removeComponent(T &component)
Unregister a T object by reference.
CRTP base that gives a manager safe deferred-operation support.