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

Method push

gecode/search/seq/path.hpp:135–145  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

133
134 template<class Tracer>
135 forceinline const Choice*
136 Path<Tracer>::push(Worker& stat, Space* s, Space* c, unsigned int nid) {
137 if (!ds.empty() && ds.top().lao()) {
138 // Topmost stack entry was LAO -> reuse
139 ds.pop().dispose();
140 }
141 Edge sn(s,c,nid);
142 ds.push(sn);
143 stat.stack_depth(static_cast<unsigned long int>(ds.entries()));
144 return sn.choice();
145 }
146
147 template<class Tracer>
148 forceinline void

Callers 4

nextMethod · 0.45
nextMethod · 0.45
nextMethod · 0.45
symmetricMethod · 0.45

Calls 7

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