|
| | SetComponent (SetComponentType data) |
| |
| | SetComponent ()=default |
| |
| bool | add (ComponentType element) |
| |
| Derived & | add (SetComponentType data) |
| |
| Derived & | set (SetComponentType data) |
| |
| SetComponentType & | get () |
| |
| const SetComponentType & | get () const |
| |
| bool | remove (const ComponentType &element) |
| |
| Derived & | remove (const SetComponentType &data) |
| |
| bool | empty () const |
| |
template<class AccessedComponentName >
requires std::is_same_v < AccessedComponentName, ComponentName > |
| const Component< Derived, SetComponentType, component::Set, ComponentName > & | accessComponent () const |
| |
template<class AccessedComponentName >
requires std::is_same_v < AccessedComponentName, ComponentName > Component < Derived, SetComponentType, component::Set, ComponentName > |
| & | accessComponent () |
| |
template<class Derived, class SetComponentType, class ComponentType, class ComponentName>
class core::SetComponent< Derived, SetComponentType, ComponentType, ComponentName >
Represents a set of elements.
- Parameters
-
| Derived | class representing datatype using this set. |
| ComponentType | underlying type of data in the set. |
| ComponentName | arbitrary type used to distinguish different components. |
template<class Derived , class SetComponentType , class ComponentType , class ComponentName >
template<class AccessedComponentName >
requires std::is_same_v < AccessedComponentName, ComponentName >
| const Component< Derived, SetComponentType, component::Set, ComponentName > & core::SetComponent< Derived, SetComponentType, ComponentType, ComponentName >::accessComponent |
( |
| ) |
const |
|
inline |
Allows access to this sub-component using its name.
- Parameters
-
| AccessedComponentName | type used to distinguish different components |
- Returns
- this