subtree_node.h
Go to the documentation of this file.
1 #ifndef DECORATOR_SUBTREE_NODE_H
2 #define DECORATOR_SUBTREE_NODE_H
3 
5 
6 namespace BT
7 {
8 
10 {
11  public:
12  DecoratorSubtreeNode(const std::string& name);
13 
14  virtual ~DecoratorSubtreeNode() override = default;
15 
16  private:
17  virtual BT::NodeStatus tick() override;
18 
19  virtual NodeType type() const override final
20  {
21  return NodeType::SUBTREE;
22  }
23 };
24 
25 
26 }
27 
28 #endif // DECORATOR_SUBTREE_NODE_H
const std::string & name() const
Name of the instance, not the type.
Definition: tree_node.cpp:73
virtual NodeType type() const overridefinal
Definition: subtree_node.h:19
NodeStatus
Definition: basic_types.h:35
virtual BT::NodeStatus tick() override
Method to be implemented by the user.
NodeType
Enumerates the possible types of nodes.
Definition: basic_types.h:22
DecoratorSubtreeNode(const std::string &name)
Definition: subtree_node.cpp:4
virtual ~DecoratorSubtreeNode() override=default


behaviortree_cpp
Author(s): Michele Colledanchise, Davide Faconti
autogenerated on Sat Jun 8 2019 18:04:05