#include <decorator_node.h>
Public Member Functions | |
const TreeNode * | child () const |
TreeNode * | child () |
DecoratorNode (const std::string &name, const NodeConfiguration &config) | |
NodeStatus | executeTick () override |
The method that should be used to invoke tick() and setStatus();. | |
virtual void | halt () override |
The method used to interrupt the execution of this node. | |
void | haltChild () |
Halt() the child node. | |
void | setChild (TreeNode *child) |
virtual NodeType | type () const override |
virtual | ~DecoratorNode () override |
Protected Attributes | |
TreeNode * | child_node_ |
Definition at line 8 of file decorator_node.h.
BT::DecoratorNode::DecoratorNode | ( | const std::string & | name, |
const NodeConfiguration & | config | ||
) |
Definition at line 18 of file decorator_node.cpp.
virtual BT::DecoratorNode::~DecoratorNode | ( | ) | [override, virtual] |
const TreeNode * BT::DecoratorNode::child | ( | ) | const |
Definition at line 39 of file decorator_node.cpp.
Definition at line 44 of file decorator_node.cpp.
NodeStatus BT::DecoratorNode::executeTick | ( | ) | [override, virtual] |
The method that should be used to invoke tick() and setStatus();.
Reimplemented from BT::TreeNode.
Definition at line 69 of file decorator_node.cpp.
void BT::DecoratorNode::halt | ( | ) | [override, virtual] |
The method used to interrupt the execution of this node.
Implements BT::TreeNode.
Reimplemented in BT::RepeatNode, and BT::RetryNode.
Definition at line 33 of file decorator_node.cpp.
void BT::DecoratorNode::haltChild | ( | ) |
Halt() the child node.
Definition at line 49 of file decorator_node.cpp.
void BT::DecoratorNode::setChild | ( | TreeNode * | child | ) |
Definition at line 23 of file decorator_node.cpp.
virtual NodeType BT::DecoratorNode::type | ( | ) | const [inline, override, virtual] |
Implements BT::TreeNode.
Reimplemented in BT::DecoratorSubtreeNode.
Definition at line 31 of file decorator_node.h.
TreeNode* BT::DecoratorNode::child_node_ [protected] |
Definition at line 11 of file decorator_node.h.