9#pragma warning(disable : 4521)
43 template <std::derived_from<Command> T>
63 void End(
bool interrupted)
override;
CRTP implementation to allow polymorphic decorator functions in Command.
Definition: CommandHelper.h:27
A class used internally to wrap commands while overriding a specific method; all other methods will c...
Definition: WrapperCommand.h:27
WrapperCommand(T &&command)
Wrap a command.
Definition: WrapperCommand.h:45
WrapperCommand(const WrapperCommand &other)=delete
WrapperCommand(std::unique_ptr< Command > &&command)
Wrap a command.
bool RunsWhenDisabled() const override
void Initialize() override
bool IsFinished() override
std::unique_ptr< Command > m_command
Command being wrapped.
Definition: WrapperCommand.h:73
void End(bool interrupted) override
WrapperCommand(WrapperCommand &&other)=default
InterruptionBehavior GetInterruptionBehavior() const override
wpi::SmallSet< Subsystem *, 4 > GetRequirements() const override
WrapperCommand(WrapperCommand &)=delete
SmallSet - This maintains a set of unique values, optimizing for the case when the set is small (less...
Definition: SmallSet.h:135
Definition: TrapezoidProfileSubsystem.h:12
typename std::decay< T >::type decay_t
Definition: expected:231