WPILibC++ 2024.3.2
frc2::Requirements Class Reference

Represents requirements for a command, which is a set of (pointers to) subsystems. More...

#include <frc2/command/Requirements.h>

Public Member Functions

 Requirements (std::initializer_list< Subsystem * > requirements)
 
 Requirements (std::span< Subsystem *const > requirements)
 
 Requirements ()=default
 
 Requirements (const Requirements &)=default
 
std::vector< Subsystem * >::const_iterator begin () const
 
std::vector< Subsystem * >::const_iterator end () const
 

Detailed Description

Represents requirements for a command, which is a set of (pointers to) subsystems.

This class is implicitly convertible from std::initializer_list and std::span.

Constructor & Destructor Documentation

◆ Requirements() [1/4]

frc2::Requirements::Requirements ( std::initializer_list< Subsystem * >  requirements)
inline

◆ Requirements() [2/4]

frc2::Requirements::Requirements ( std::span< Subsystem *const >  requirements)
inline

◆ Requirements() [3/4]

frc2::Requirements::Requirements ( )
default

◆ Requirements() [4/4]

frc2::Requirements::Requirements ( const Requirements )
default

Member Function Documentation

◆ begin()

std::vector< Subsystem * >::const_iterator frc2::Requirements::begin ( ) const
inline

◆ end()

std::vector< Subsystem * >::const_iterator frc2::Requirements::end ( ) const
inline

The documentation for this class was generated from the following file: