AssignItem: Assignment Items

Description Super class Public fields Active bindings Methods

Description

Assign values to variables in MiniZinc by creating an assignment item.

Super class

rminizinc::Item -> AssignItem

Public fields

.decl

associated declaration

.e

value to be assigned

.delete_flag

used to delete items

Active bindings

.decl

associated declaration

.e

value to be assigned

.delete_flag

used to delete items

Methods

Public methods

Inherited methods

Method new()

constructor

Usage
AssignItem$new(decl, value)
Arguments
decl

declaration associated with assignment.

value

expression to be assigned.


Method id()

get the name of assigned variable

Usage
AssignItem$id()

Method getValue()

get the value

Usage
AssignItem$getValue()

Method setValue()

set the value

Usage
AssignItem$setValue(val)
Arguments
val

value/expression to be set


Method getDecl()

get the associated declaration

Usage
AssignItem$getDecl()

Method setDecl()

set the associated declaration

Usage
AssignItem$setDecl(decl)
Arguments
decl

declaration to be set


Method c_str()

get the MiniZinc representation

Usage
AssignItem$c_str()

Method getDeleteFlag()

delete flag for internal use

Usage
AssignItem$getDeleteFlag()

Method delete()

delete the assignment item

Usage
AssignItem$delete()

Method clone()

The objects of this class are cloneable with this method.

Usage
AssignItem$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.


rminizinc documentation built on Oct. 15, 2021, 9:06 a.m.