Create Independent functions (that are not part of any other items) in a MiniZinc model
rminizinc::Item -> FunctionItem
.idname of the function
.eexpression in the function
.declsparameter declarations
.annannotation
.tireturn type of the function
.delete_flagused to delete items
.idname of the function
.eexpression in the function
.declsparameter declarations
.annannotation
.tireturn type of the function
.delete_flagused to delete items
new()constructor
FunctionItem$new( name = NULL, decls = NULL, rt = NULL, ann = NULL, body = NULL, mzn_str = NULL )
namename of the function
declsvariable declarations
rtthe return type ("bool par", "bool var" or other)
annannotation
bodybody of the function
mzn_strstring representation of Function Item
name()get the name of the function
FunctionItem$name()
getDecls()get the list of declarations
FunctionItem$getDecls()
getBody()get the function body
FunctionItem$getBody()
getAnn()get the function annotation
FunctionItem$getAnn()
setDecls()set the list of declarations
FunctionItem$setDecls(decls)
declslist of declarations to be set
setBody()set the function body
FunctionItem$setBody()
bodyfunction expression to set or NULL
setAnn()set the function annotation
FunctionItem$setAnn()
annannotation to be set or NULL
rtype()get if the function is a test, predicate or a function call itself.
FunctionItem$rtype()
c_str()get the MiniZinc representation
FunctionItem$c_str()
getDeleteFlag()delete flag for internal use
FunctionItem$getDeleteFlag()
delete()delete the variable item
FunctionItem$delete()
clone()The objects of this class are cloneable with this method.
FunctionItem$clone(deep = FALSE)
deepWhether to make a deep clone.