ComponentArray
-
template<typename ComponentType, size_t array_length>
class ComponentArray : public vslib::Component Public Functions
-
template<typename ...ComponentSettings>
inline ComponentArray(const std::string &name, Component &parent, ComponentSettings... settings) Constructor for the ComponentArray component.
- Parameters:
name – Name of the object
parent – Reference to the parent of this Component
settings – All settings that are forwarded to construct Components held in the array
-
inline const ComponentType &operator[](const size_t index) const
Provides seamless access to the value stored at the provided index
- Parameters:
index – Index of the array element to be accessed
- Returns:
Reference to the Component at the specified address
-
template<typename ...ComponentSettings>