Description Super class Public fields Active bindings Methods Examples
Create ArrayAccess elements in MiniZinc
rminizinc::Expression
-> ArrayAccess
.v
the id/value of array
.args
arguments of the array
.delete_flag
used to delete items
.v
the id/value of array
.args
arguments of the array
.delete_flag
used to delete items
new()
constructor
ArrayAccess$new(v, args)
v
the value/identifier of variable decl
args
the array indices
getV()
get the array access value
ArrayAccess$getV()
setV()
set the array access value
ArrayAccess$setV(val)
val
new array access value
nargs()
get the number of arguments
ArrayAccess$nargs()
getArgs()
get the arguments
ArrayAccess$getArgs()
setArgs()
set the arguments
ArrayAccess$setArgs(val)
val
new arguments
c_str()
return the MiniZinc representation
ArrayAccess$c_str()
getDeleteFlag()
delete flag for internal use
ArrayAccess$getDeleteFlag()
delete()
delete the assignment item
ArrayAccess$delete()
clone()
The objects of this class are cloneable with this method.
ArrayAccess$clone(deep = FALSE)
deep
Whether to make a deep clone.
1 2 3 4 5 | vDecl1 = IntSetDecl(name = "SET", kind = "par")
vDecl2 = IntArrDecl(name = "profit", kind = "par", ndim = 1,
ind = list(vDecl1$getId()))
newArrayAccess = ArrayAccess$new(v = vDecl2$getId(),
args = list(IntDecl(name = "i", kind = "par")))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.