|
| enum class | Kind {
INT
, FLOAT
, STR
, NAME
,
BINARY
, UNARY
, CALL
, INDEX
,
FIELD
, COMPREHENSION
} |
| | Kind of expression. More...
|
| enum class | Op {
OR
, AND
, EQ
, NE
,
LT
, GT
, LE
, GE
,
ADD
, SUB
, MUL
, DIV
,
MOD
, POW
, NEG
, NOT
} |
| | Operator of unary and binary expressions. More...
|
|
| enum Gecode::Instance::Expr::Kind | kind |
| enum Gecode::Instance::Expr::Op | op |
| long long int | i |
| | Integer literal.
|
| double | f |
| | Float literal.
|
| std::string | s |
| | String literal, name, operator, or function.
|
| std::string | var |
| | Name bound by a comprehension.
|
| int | record |
| | Index of a record name among the records of its check (-1 if none).
|
| const Stmt * | records |
| | The repeat whose records or lists of records this is, or null.
|
| int | open |
| | 1 for a list of records of records, 0 for a record
|
| const Stmt * | elements |
| | For a comprehension, the repeat whose records are the elements of its array, or null.
|
| Seq< std::unique_ptr< Expr > > | args |
| | Operands or arguments.
|
Expression.
An index expression a[i] has the operands a and i, a field r.f the operand r and the name f in s. A comprehension such as all(x in a: e) has the function in s, the bound name in var, and the operands a and e.
The parser finds the expressions that are records or lists of records of a repeat (see Stmt::list and Stmt::each): records is the repeat.
Definition at line 453 of file impl.hpp.