BehaviorTree
Core Library to create and execute Behavior Trees
Loading...
Searching...
No Matches
BT::Ast::ExprComparison Struct Reference
Inheritance diagram for BT::Ast::ExprComparison:
Collaboration diagram for BT::Ast::ExprComparison:

Public Types

enum  op_t {
  equal , not_equal , less , greater ,
  less_equal , greater_equal
}
 
- Public Types inherited from BT::Ast::ExprBase
using Ptr = std::shared_ptr< ExprBase >
 

Public Member Functions

const char * opStr (op_t op) const
 
Any evaluate (Environment &env) const override
 
virtual Any evaluate (Environment &env) const =0
 

Public Attributes

std::vector< op_t > ops
 
std::vector< expr_ptr > operands
 

Member Function Documentation

◆ evaluate()

Any BT::Ast::ExprComparison::evaluate ( Environment env) const
inlineoverridevirtual

Implements BT::Ast::ExprBase.


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