1#include "ComponentCollection.h"
3#include "ComponentModel/Component.h"
12 components.push_back(component);
17 auto found = std::find_if(components.begin(), components.end(), [&](
const ComponentHandle& c) { return c == component; });
19 components.erase(found);
COGSFOUNDATION_API void add(ComponentHandle component)
Adds the given component handle to the collection.
COGSFOUNDATION_API ComponentCollectionBase()
Creates an empty component collection.
COGSFOUNDATION_API void remove(ComponentHandle component)
Removes the given component from the collection.
COGSFOUNDATION_API void clear()
Clears the contents of the collection.
Handle to a Component instance.