MCPcopy Create free account
hub / github.com/SakuraEngine/SakuraEngine / decrease

Method decrease

xrepo/packages/l/lemon/port/lemon/lemon/dheap.h:285–288  ·  view source on GitHub ↗

\brief Decrease the priority of an item to the given value. This function decreases the priority of an item to the given value. \param i The item. \param p The priority. \pre \e i must be stored in the heap with priority at least \e p.

Source from the content-addressed store, hash-verified

283 /// \param p The priority.
284 /// \pre \e i must be stored in the heap with priority at least \e p.
285 void decrease(const Item &i, const Prio &p) {
286 int idx = _iim[i];
287 bubbleUp(idx, Pair(i,p));
288 }
289
290 /// \brief Increase the priority of an item to the given value.
291 ///

Callers 15

processNextNodeMethod · 0.45
matchedToEvenMethod · 0.45
matchedToEvenMethod · 0.45
finalizeMethod · 0.45
matchedToEvenMethod · 0.45
evenToMatchedMethod · 0.45
oddToEvenMethod · 0.45
fractionalInitMethod · 0.45
matchedToEvenMethod · 0.45
evenToMatchedMethod · 0.45
oddToEvenMethod · 0.45
fractionalInitMethod · 0.45

Calls 1

PairClass · 0.85

Tested by

no test coverage detected