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: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
void InitSendable(wpi::SendableBuilder &builder) override
bool IsFinished() override
std::unique_ptr< Command > m_command
Command being wrapped.
Definition: WrapperCommand.h:75
void End(bool interrupted) override
WrapperCommand(WrapperCommand &&other)=default
InterruptionBehavior GetInterruptionBehavior() const override
wpi::SmallSet< Subsystem *, 4 > GetRequirements() const override
WrapperCommand(WrapperCommand &)=delete
Helper class for building Sendable dashboard representations.
Definition: SendableBuilder.h:21
SmallSet - This maintains a set of unique values, optimizing for the case when the set is small (less...
Definition: SmallSet.h:135
Definition: StartEndCommand.h:13
Implement std::hash so that hash_code can be used in STL containers.
Definition: array.h:89
typename std::decay< T >::type decay_t
Definition: expected:231