WPILibC++  2020.3.2-60-g3011ebe
frc2::CommandHelper< Base, CRTP, typename > Class Template Reference

CRTP implementation to allow polymorphic decorator functions in Command. More...

#include <CommandHelper.h>

Inheritance diagram for frc2::CommandHelper< Base, CRTP, typename >:

Protected Member Functions

std::unique_ptr< CommandTransferOwnership () &&override
 

Detailed Description

template<typename Base, typename CRTP, typename = std::enable_if_t<std::is_base_of_v<Command, Base>>>
class frc2::CommandHelper< Base, CRTP, typename >

CRTP implementation to allow polymorphic decorator functions in Command.

Note: ALWAYS create a subclass by extending CommandHelper<Base, Subclass>, or decorators will not function!


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