powered by
Create a binary operation expression possible binary operators are: "+", "-", "!=", "<->", ">=", "<=", "*", ">", "<", "->", "<-", "..", "\/", "/\", "'not'", "subset", "superset", "union", "diff", "symdiff", "intersect", "^", "div", "mod", "/", "++", "xor", "in", "="
rminizinc::Expression -> BinOp
rminizinc::Expression
BinOp
.lhs_exp
the left hand side expression
.rhs_exp
the right hand side expression
.op
the operator
.delete_flag
used to delete items
BinOp$new()
BinOp$getLhs()
BinOp$getRhs()
BinOp$getOp()
BinOp$setOp()
BinOp$setLhs()
BinOp$setRhs()
BinOp$c_str()
BinOp$getDeleteFlag()
BinOp$delete()
BinOp$clone()
new()
constructor
BinOp$new(lhs, binop, rhs)
lhs
binop
the binary operator to be used
rhs
getLhs()
get the lhs expression
getRhs()
get the rhs expression
getOp()
get the operator
setOp()
set the operator
BinOp$setOp(binop)
op
binary operator to be set
setLhs()
set the lhs expression
BinOp$setLhs(e)
e
expression to set
setRhs()
set the rhs expression
BinOp$setRhs(e)
c_str()
return the MiniZinc representation
getDeleteFlag()
delete flag for internal use
delete()
delete the assignment item
clone()
The objects of this class are cloneable with this method.
BinOp$clone(deep = FALSE)
deep
Whether to make a deep clone.
# NOT RUN { newBinOp = BinOp$new(lhs = Int$new(2), binop = "+", rhs = Int$new(5)) newBinOp$c_str() newBinOp$setLhs(Int$new(5)) newBinOp$setOp("-") newBinOp$setRhs(Int$new(2)) newBinOp$c_str() # }
Run the code above in your browser using DataLab