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

Method add

gecode/flatzinc/flatzinc.cpp:284–290  ·  view source on GitHub ↗

Add new brancher information

Source from the content-addressed store, hash-verified

282 }
283 /// Add new brancher information
284 void add(BrancherGroup bg,
285 const std::string& rel0,
286 const std::string& rel1,
287 const std::vector<std::string>& n) {
288 v.resize(std::max(static_cast<unsigned int>(v.size()),bg.id()+1));
289 v[bg.id()] = BI(rel0,rel1,n);
290 }
291 /// Output branch information
292 void print(const Brancher& b,
293 unsigned int a, int i, int n, std::ostream& o) const {

Callers

nothing calls this directly

Calls 5

BIClass · 0.85
maxFunction · 0.50
resizeMethod · 0.45
sizeMethod · 0.45
idMethod · 0.45

Tested by

no test coverage detected