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

Method push

gecode/search/par/path.hpp:144–156  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

142
143 template<class Tracer>
144 forceinline const Choice*
145 Path<Tracer>::push(Worker& stat, Space* s, Space* c, unsigned int nid) {
146 if (!ds.empty() && ds.top().lao()) {
147 // Topmost stack entry was LAO -> reuse
148 ds.pop().dispose();
149 }
150 Edge sn(s,c,nid);
151 if (sn.work())
152 n_work++;
153 ds.push(sn);
154 stat.stack_depth(static_cast<unsigned long int>(ds.entries()));
155 return sn.choice();
156 }
157
158 template<class Tracer>
159 forceinline void

Callers 5

addMethod · 0.45
solutionMethod · 0.45
runMethod · 0.45
solutionMethod · 0.45
runMethod · 0.45

Calls 8

workMethod · 0.80
stack_depthMethod · 0.80
emptyMethod · 0.45
laoMethod · 0.45
disposeMethod · 0.45
popMethod · 0.45
entriesMethod · 0.45
choiceMethod · 0.45

Tested by

no test coverage detected