Empirical
|
#include <Action.h>
Public Member Functions | |
virtual | ~ActionBase () |
const std::string & | GetName () const |
Get the name of this action. More... | |
virtual size_t | GetArgCount () const =0 |
Get number of arguments this action takes. More... | |
virtual ActionBase * | Clone () const =0 |
Clone() will produce a pointer to a full copy of an Action, going through derived version. More... | |
Protected Member Functions | |
ActionBase (const std::string &in_name) | |
ActionBase (const ActionBase &)=default | |
ActionBase (ActionBase &&)=default | |
ActionBase & | operator= (const ActionBase &)=default |
ActionBase & | operator= (ActionBase &&)=default |
Protected Attributes | |
std::string | name |
A unique name for this action so it can be called at runtime. More... | |
BaseActions abstract functions and allow for signals to be setup at runtime; they can be called with types specified in the call.
Actions can be a bit heavyweight, but can easily be converted to more lightweight std:function objects.
|
inlineprotected |
|
protecteddefault |
|
protecteddefault |
|
inlinevirtual |
|
pure virtual |
Clone() will produce a pointer to a full copy of an Action, going through derived version.
Implemented in emp::Action< RETURN(ARGS...)>, and emp::Action< void(ARGS...)>.
|
pure virtual |
Get number of arguments this action takes.
Implemented in emp::ActionSize< ARG_COUNT >, and emp::ActionSize< sizeof...(ARGS)>.
|
inline |
Get the name of this action.
|
protecteddefault |
|
protecteddefault |
|
protected |
A unique name for this action so it can be called at runtime.