MCPcopy Create free account
hub / github.com/BambooTracker/BambooTracker / insertOrderBelow

Method insertOrderBelow

BambooTracker/module/track.cpp:128–136  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

126}
127
128void Track::insertOrderBelow(int order)
129{
130 int n = searchFirstUneditedUnusedPattern();
131 if (n == -1) n = PATTERN_SIZE - 1;
132
133 if (order == static_cast<int>(order_.size()) - 1) order_.push_back(n);
134 else order_.insert(order_.begin() + order + 1, n);
135 patterns_[static_cast<size_t>(n)].increaseUsedCount();
136}
137
138void Track::deleteOrder(int order)
139{

Callers

nothing calls this directly

Calls 4

push_backMethod · 0.80
increaseUsedCountMethod · 0.80
sizeMethod · 0.45
beginMethod · 0.45

Tested by

no test coverage detected