MCPcopy Create free account
hub / github.com/Gecode/gecode / var

Method var

contribs/qecode/QCOPPlus.cc:136–146  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

134
135
136IntVar Qcop::var(int n) {
137 if (!varInitialised[n]) {
138 cout<<"Variable "<<n<<" not initialized !"<<endl;
139 abort();
140 }
141 if (type_of_v[n] != VTYPE_INT) {
142 cout<<"Variable "<<n<<" is not INT"<<endl;
143 abort();
144 }
145 return *(static_cast<IntVar*>(space()->v[n]));
146}
147
148
149BoolVar Qcop::bvar(int n) {

Callers 6

mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45

Calls

no outgoing calls

Tested by 1

mainFunction · 0.36