SkillBlueprint Class Reference

#include <RobotAPI/libraries/skills/provider/SkillFactory.h>

+ Inheritance diagram for SkillBlueprint:

Public Types

using FunctionTypeToCreateSkill = std::function< std::unique_ptr< Skill >()>
 

Public Member Functions

virtual std::unique_ptr< SkillcreateSkill (const skills::ProviderID &pid) const
 
virtual SkillDescription createSkillDescription (const skills::ProviderID &pid) const
 
 SkillBlueprint (const FunctionTypeToCreateSkill &s)
 
 SkillBlueprint (const SkillBlueprint &)=default
 
 SkillBlueprint (FunctionTypeToCreateSkill &&s)
 
virtual ~SkillBlueprint ()=default
 

Static Public Member Functions

template<class _Skill , class... Args>
requires static isSkill< _Skill > std::unique_ptr< SkillBlueprintForSkill (Args &&... args)
 

Protected Attributes

FunctionTypeToCreateSkill _createSkill
 

Detailed Description

Definition at line 11 of file SkillFactory.h.

Member Typedef Documentation

◆ FunctionTypeToCreateSkill

using FunctionTypeToCreateSkill = std::function<std::unique_ptr<Skill>()>

Definition at line 14 of file SkillFactory.h.

Constructor & Destructor Documentation

◆ SkillBlueprint() [1/3]

Definition at line 16 of file SkillFactory.h.

◆ SkillBlueprint() [2/3]

Definition at line 20 of file SkillFactory.h.

◆ SkillBlueprint() [3/3]

SkillBlueprint ( const SkillBlueprint )
default

◆ ~SkillBlueprint()

virtual ~SkillBlueprint ( )
virtualdefault

Member Function Documentation

◆ createSkill()

virtual std::unique_ptr<Skill> createSkill ( const skills::ProviderID pid) const
inlinevirtual

Reimplemented in SkillWithContextBlueprint< SkillT >.

Definition at line 45 of file SkillFactory.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ createSkillDescription()

virtual SkillDescription createSkillDescription ( const skills::ProviderID pid) const
inlinevirtual

Reimplemented in SkillWithContextBlueprint< SkillT >.

Definition at line 53 of file SkillFactory.h.

+ Here is the call graph for this function:

◆ ForSkill()

requires static isSkill<_Skill> std::unique_ptr<SkillBlueprint> ForSkill ( Args &&...  args)
inlinestatic

Definition at line 32 of file SkillFactory.h.

Member Data Documentation

◆ _createSkill

FunctionTypeToCreateSkill _createSkill
protected

Definition at line 61 of file SkillFactory.h.


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