Public Member Functions | Public Attributes | List of all members
BT::Tree Class Reference

Struct used to store a tree. If this object goes out of scope, the tree is destroyed. More...

#include <bt_factory.h>

Public Member Functions

void haltTree ()
 
Treeoperator= (const Tree &)=delete
 
Treeoperator= (Tree &&other)
 
Blackboard::Ptr rootBlackboard ()
 
TreeNoderootNode () const
 
NodeStatus tickRoot ()
 
 Tree ()
 
 Tree (const Tree &)=delete
 
 Tree (Tree &&other)
 
 ~Tree ()
 

Public Attributes

std::vector< Blackboard::Ptrblackboard_stack
 
std::unordered_map< std::string, TreeNodeManifestmanifests
 
std::vector< TreeNode::Ptrnodes
 

Detailed Description

Struct used to store a tree. If this object goes out of scope, the tree is destroyed.

To tick the tree, simply call:

NodeStatus status = my_tree.tickRoot();

Definition at line 130 of file bt_factory.h.

Constructor & Destructor Documentation

BT::Tree::Tree ( )
inline

Definition at line 138 of file bt_factory.h.

BT::Tree::Tree ( const Tree )
delete
BT::Tree::Tree ( Tree &&  other)
inline

Definition at line 144 of file bt_factory.h.

BT::Tree::~Tree ( )

Definition at line 269 of file bt_factory.cpp.

Member Function Documentation

void BT::Tree::haltTree ( )
inline

Definition at line 157 of file bt_factory.h.

Tree& BT::Tree::operator= ( const Tree )
delete
Tree& BT::Tree::operator= ( Tree &&  other)
inline

Definition at line 149 of file bt_factory.h.

Blackboard::Ptr BT::Tree::rootBlackboard ( )

Definition at line 274 of file bt_factory.cpp.

TreeNode* BT::Tree::rootNode ( ) const
inline

Definition at line 176 of file bt_factory.h.

NodeStatus BT::Tree::tickRoot ( )
inline

Definition at line 181 of file bt_factory.h.

Member Data Documentation

std::vector<Blackboard::Ptr> BT::Tree::blackboard_stack

Definition at line 135 of file bt_factory.h.

std::unordered_map<std::string, TreeNodeManifest> BT::Tree::manifests

Definition at line 136 of file bt_factory.h.

std::vector<TreeNode::Ptr> BT::Tree::nodes

Definition at line 134 of file bt_factory.h.


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


behaviotree_cpp_v3
Author(s): Michele Colledanchise, Davide Faconti
autogenerated on Tue May 4 2021 02:56:26