BehaviorTree
Core Library to create and execute Behavior Trees
Loading...
Searching...
No Matches
BT::StatusChangeLogger Class Referenceabstract
Inheritance diagram for BT::StatusChangeLogger:

Public Member Functions

 StatusChangeLogger (TreeNode *root_node)
 Construct and immediately subscribe to status changes.
 
 StatusChangeLogger (const StatusChangeLogger &other)=delete
 
StatusChangeLoggeroperator= (const StatusChangeLogger &other)=delete
 
 StatusChangeLogger (StatusChangeLogger &&other)=delete
 
StatusChangeLoggeroperator= (StatusChangeLogger &&other)=delete
 
virtual void callback (BT::Duration timestamp, const TreeNode &node, NodeStatus prev_status, NodeStatus status)=0
 
virtual void flush ()=0
 
void setEnabled (bool enabled)
 
void setTimestampType (TimestampType type)
 
bool enabled () const
 
bool showsTransitionToIdle () const
 
void enableTransitionToIdle (bool enable)
 

Protected Member Functions

 StatusChangeLogger ()
 Default constructor for deferred subscription. Call subscribeToTreeChanges() when ready.
 
void subscribeToTreeChanges (TreeNode *root_node)
 Subscribe to status changes. Call at end of constructor for deferred subscription.
 
void unsubscribeFromTreeChanges ()
 

Member Function Documentation

◆ unsubscribeFromTreeChanges()

void BT::StatusChangeLogger::unsubscribeFromTreeChanges ( )
protected

Stop new callbacks and wait until callbacks already in progress have completed. Derived destructors must call this before destroying state used by callback().


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