7#include <initializer_list>
24 : m_subsystems{requirements.
begin(), requirements.
end()} {}
28 : m_subsystems{requirements.
begin(), requirements.
end()} {}
34 std::vector<Subsystem*>::const_iterator
begin()
const {
35 return m_subsystems.begin();
38 std::vector<Subsystem*>::const_iterator
end()
const {
39 return m_subsystems.end();
43 std::vector<Subsystem*> m_subsystems;
Represents requirements for a command, which is a set of (pointers to) subsystems.
Definition: Requirements.h:20
Requirements(const Requirements &)=default
Requirements(std::initializer_list< Subsystem * > requirements)
Definition: Requirements.h:23
std::vector< Subsystem * >::const_iterator end() const
Definition: Requirements.h:38
std::vector< Subsystem * >::const_iterator begin() const
Definition: Requirements.h:34
Requirements(std::span< Subsystem *const > requirements)
Definition: Requirements.h:27
Definition: TrapezoidProfileSubsystem.h:12