Asterisk - The Open Source Telephony Project GIT-master-f36a736
Data Fields
operator Struct Reference

An operator that we understand in an expression. More...

Data Fields

int(*const evaluate )(struct operator*op, enum aco_option_type type, void *op_left, struct expression_token *op_right)
 Evaluation function for binary operators. More...
 
int(*const evaluate_unary )(struct operator*op, enum aco_option_type type, void *operand)
 Evaluation function for unary operators. More...
 
int operands
 Number of operands the operator takes. More...
 
int precedence
 Precedence of the symbol. More...
 
int right_to_left
 Non-zero if the operator is evaluated right-to-left. More...
 
const char * symbol
 Our operator's symbol. More...
 

Detailed Description

An operator that we understand in an expression.

Definition at line 82 of file res_pjsip_history.c.

Field Documentation

◆ evaluate

int(*const evaluate) (struct operator*op, enum aco_option_type type, void *op_left, struct expression_token *op_right)

Evaluation function for binary operators.

Parameters
opThe operator being evaluated
typeThe type of value contained in op_left
op_leftA pointer to the value to evaluate (a result or extracted from an entry)
op_rightThe expression token containing the other value (a result or user-provided)
Return values
-1error
0evaluation is False
1evaluation is True

Definition at line 115 of file res_pjsip_history.c.

Referenced by evaluate_history_entry().

◆ evaluate_unary

int(*const evaluate_unary) (struct operator*op, enum aco_option_type type, void *operand)

Evaluation function for unary operators.

Parameters
opThe operator being evaluated
typeThe type of value contained in operand
operandA pointer to the value to evaluate
Return values
-1error
0evaluation is False
1evaluation is True

Definition at line 102 of file res_pjsip_history.c.

Referenced by evaluate_history_entry().

◆ operands

int operands

Number of operands the operator takes.

Definition at line 90 of file res_pjsip_history.c.

Referenced by evaluate_history_entry().

◆ precedence

int precedence

Precedence of the symbol.

Definition at line 86 of file res_pjsip_history.c.

Referenced by build_expression_queue().

◆ right_to_left

int right_to_left

Non-zero if the operator is evaluated right-to-left.

Definition at line 88 of file res_pjsip_history.c.

Referenced by build_expression_queue().

◆ symbol

const char* symbol

Our operator's symbol.

Definition at line 84 of file res_pjsip_history.c.

Referenced by evaluate_history_entry().


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