Learn R Programming

rminizinc (version 0.0.8)

String: String

Description

Create a string in MiniZinc

Arguments

Super class

rminizinc::Expression -> String

Public fields

.value

string value

Active bindings

.value

string value

Methods

Public methods

Method new()

constructor

Usage

String$new(val)

Arguments

val

string input

Method getV()

get value

Usage

String$getV()

Method setV()

set value

Usage

String$setV(val)

Arguments

val

string value

Method c_str()

get the MiniZinc representation

Usage

String$c_str()

Method clone()

The objects of this class are cloneable with this method.

Usage

String$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.

Examples

Run this code
# NOT RUN {
newString = String$new("example")
newString$c_str()
newString$setV("new example")
newString$c_str()
# }

Run the code above in your browser using DataLab