Antkeeper  0.0.1
Public Types | Public Member Functions | Public Attributes | List of all members
ai::bt::action< T > Struct Template Reference

Executes a function on a context and returns the status. More...

#include <node.hpp>

Inheritance diagram for ai::bt::action< T >:
ai::bt::node< T >

Public Types

typedef std::function< status(node< T >::context_type &)> function_type
 
- Public Types inherited from ai::bt::node< T >
typedef T context_type
 Data type on which nodes operate. More...
 

Public Member Functions

virtual status execute (node< T >::context_type &context) const final
 
- Public Member Functions inherited from ai::bt::node< T >
virtual status execute (context_type &context) const =0
 Executes a node's function and returns its status. More...
 

Public Attributes

function_type function
 

Detailed Description

template<class T>
struct ai::bt::action< T >

Executes a function on a context and returns the status.

Definition at line 68 of file node.hpp.

Member Typedef Documentation

◆ function_type

template<class T >
typedef std::function<status(node<T>::context_type&)> ai::bt::action< T >::function_type

Definition at line 71 of file node.hpp.

Member Function Documentation

◆ execute()

template<class T >
status ai::bt::action< T >::execute ( node< T >::context_type context) const
finalvirtual

Definition at line 121 of file node.hpp.

Member Data Documentation

◆ function

template<class T >
function_type ai::bt::action< T >::function

Definition at line 72 of file node.hpp.


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