Public Types | Public Member Functions | Public Attributes | List of all members
BT::Ast::ExprBinaryArithmetic Struct Reference

#include <operators.hpp>

Inheritance diagram for BT::Ast::ExprBinaryArithmetic:
Inheritance graph
[legend]

Public Types

enum  op_t {
  plus, minus, times, div,
  concat, bit_and, bit_or, bit_xor,
  logic_and, logic_or
}
 
- Public Types inherited from BT::Ast::ExprBase
using Ptr = std::shared_ptr< ExprBase >
 

Public Member Functions

Any evaluate (Environment &env) const override
 
 ExprBinaryArithmetic (expr_ptr lhs, op_t op, expr_ptr rhs)
 
const char * opStr () const
 
- Public Member Functions inherited from BT::Ast::ExprBase
virtual ~ExprBase ()=default
 

Public Attributes

expr_ptr lhs
 
enum BT::Ast::ExprBinaryArithmetic::op_t op
 
expr_ptr rhs
 

Detailed Description

Definition at line 145 of file operators.hpp.

Member Enumeration Documentation

◆ op_t

Enumerator
plus 
minus 
times 
div 
concat 
bit_and 
bit_or 
bit_xor 
logic_and 
logic_or 

Definition at line 147 of file operators.hpp.

Constructor & Destructor Documentation

◆ ExprBinaryArithmetic()

BT::Ast::ExprBinaryArithmetic::ExprBinaryArithmetic ( expr_ptr  lhs,
op_t  op,
expr_ptr  rhs 
)
inlineexplicit

Definition at line 193 of file operators.hpp.

Member Function Documentation

◆ evaluate()

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

Implements BT::Ast::ExprBase.

Definition at line 197 of file operators.hpp.

◆ opStr()

const char* BT::Ast::ExprBinaryArithmetic::opStr ( ) const
inline

Definition at line 163 of file operators.hpp.

Member Data Documentation

◆ lhs

expr_ptr BT::Ast::ExprBinaryArithmetic::lhs

Definition at line 191 of file operators.hpp.

◆ op

enum BT::Ast::ExprBinaryArithmetic::op_t BT::Ast::ExprBinaryArithmetic::op

◆ rhs

expr_ptr BT::Ast::ExprBinaryArithmetic::rhs

Definition at line 191 of file operators.hpp.


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


behaviortree_cpp_v4
Author(s): Davide Faconti
autogenerated on Fri Dec 13 2024 03:19:18