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

Method dispose

examples/radiotherapy.cpp:326–337  ·  view source on GitHub ↗

Dispose member function

Source from the content-addressed store, hash-verified

324 }
325 /// Dispose member function
326 size_t dispose(Space& home) {
327 home.ignore(*this,AP_DISPOSE);
328 // Periodic scaling of weights
329 if (!--index[index.size()-1].idx) {
330 index[index.size()-1].idx = 10;
331 for (int i = index.size()-1; i--; )
332 index[i].weight *= 0.9;
333 }
334 (void) Brancher::dispose(home);
335 (void) index.~SharedArray<Idx>();
336 return sizeof(*this);
337 }
338 };
339
340};

Callers

nothing calls this directly

Calls 2

ignoreMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected