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

Method better

gecode/search/par/bab.hpp:105–114  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

103 */
104 template<class Tracer>
105 forceinline void
106 BAB<Tracer>::Worker::better(Space* b) {
107 m.acquire();
108 delete best;
109 best = b->clone();
110 mark = path.entries();
111 if (cur != nullptr)
112 cur->constrain(*best);
113 m.release();
114 }
115 template<class Tracer>
116 forceinline void
117 BAB<Tracer>::solution(Space* s) {

Callers 2

solutionMethod · 0.80
constrainMethod · 0.80

Calls 5

acquireMethod · 0.45
cloneMethod · 0.45
entriesMethod · 0.45
constrainMethod · 0.45
releaseMethod · 0.45

Tested by

no test coverage detected