9#pragma warning(disable : 4521)
43 template <std::derived_from<Command> T>
47 std::make_unique<
std::decay_t<T>>(
std::forward<T>(command))) {}
63 void End(
bool interrupted)
override;
CRTP implementation to allow polymorphic decorator functions in Command.
Definition: CommandHelper.h:25
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
Definition: WrapperCommand.h:72
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: ProfiledPIDCommand.h:18
Definition: BFloat16.h:88