MCPcopy Create free account
hub / github.com/MusicPlayerDaemon/MPD / CollectQueue

Function CollectQueue

src/queue/Print.cxx:91–102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

89}
90
91[[gnu::pure]]
92static std::vector<unsigned>
93CollectQueue(const Queue &queue, const QueueSelection &selection) noexcept
94{
95 std::vector<unsigned> v;
96
97 for (unsigned i = 0; i < queue.GetLength(); i++)
98 if (selection.MatchPosition(queue, i))
99 v.emplace_back(i);
100
101 return v;
102}
103
104static void
105PrintSortedQueue(Response &r, const Queue &queue,

Callers 1

PrintSortedQueueFunction · 0.85

Calls 2

GetLengthMethod · 0.80
MatchPositionMethod · 0.80

Tested by

no test coverage detected