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