Om
1.0.0
A universal framework for multimedia simulation
|
A class that manages a templated type of components for an engine context. More...
#include <omEngineComponentSet.h>
Public Member Functions | |
ComponentSet (OpaqueComponentSet *newComponents) | |
Create a new component set for the specified opaque component set. More... | |
const ResourceType & | getResourceType () const |
Return the resource type of the components that this set has. More... | |
Size | getComponentCount () const |
Return the number of unique components there are in this component set. More... | |
T *const * | getComponents () const |
Return a pointer to the internal packed array of component pointers in this component set. More... | |
Bool | addComponent (const T *component, ResourceID *componentID=((void *) 0)) |
Remove the specified component from this component set. More... | |
Bool | removeComponent (const T *component) |
Remove the specified component from this component set. More... | |
void | clearComponents () |
Remove all components from this component set. More... | |
Bool | isValid () const |
Return whether or not this component set is valid and can be used. More... | |
operator Bool () const | |
Return whether or not this component set is valid and can be used. More... | |
A class that manages a templated type of components for an engine context.
|
inline |
Create a new component set for the specified opaque component set.
|
inline |
Return the resource type of the components that this set has.
|
inline |
Return the number of unique components there are in this component set.
|
inline |
Return a pointer to the internal packed array of component pointers in this component set.
|
inline |
Remove the specified component from this component set.
The method returns whether or not the component was removed.
|
inline |
Remove the specified component from this component set.
The method returns whether or not the component was removed.
|
inline |
Remove all components from this component set.
|
inline |
Return whether or not this component set is valid and can be used.
|
inline |
Return whether or not this component set is valid and can be used.