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

Executes a child node and returns its inverted status. If the child returns status::success, then status::failure will be returned. Otherwise if the child returns status::failure, then status::success will be returned. More...

#include <node.hpp>

Inheritance diagram for ai::bt::inverter< T >:
ai::bt::decorator_node< T > ai::bt::node< T >

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...
 

Additional Inherited Members

- Public Types inherited from ai::bt::node< T >
typedef T context_type
 Data type on which nodes operate. More...
 
- Public Attributes inherited from ai::bt::decorator_node< T >
node< T > * child
 

Detailed Description

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

Executes a child node and returns its inverted status. If the child returns status::success, then status::failure will be returned. Otherwise if the child returns status::failure, then status::success will be returned.

Definition at line 86 of file node.hpp.

Member Function Documentation

◆ execute()

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

Definition at line 133 of file node.hpp.


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