MCPcopy Create free account
hub / github.com/amule-project/amule / CopyFileList

Method CopyFileList

src/DownloadQueue.cpp:181–197  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

179
180
181void CDownloadQueue::CopyFileList(std::vector<CPartFile*>& out_list, bool includeCompleted) const
182{
183 wxMutexLocker lock(m_mutex);
184 uint32 reserve = m_filelist.size();
185 if (includeCompleted) {
186 reserve += m_completedDownloads.size();
187 }
188 out_list.reserve(reserve);
189 for (FileQueue::const_iterator it = m_filelist.begin(); it != m_filelist.end(); ++it) {
190 out_list.push_back(*it);
191 }
192 if (includeCompleted) {
193 for (FileList::const_iterator it = m_completedDownloads.begin(); it != m_completedDownloads.end(); ++it) {
194 out_list.push_back(*it);
195 }
196 }
197}
198
199
200CServer* CDownloadQueue::GetUDPServer() const

Callers 10

SaveMethod · 0.45
TransferWnd.cppFile · 0.45
ProcessPacketMethod · 0.45
UpdateEncodersMethod · 0.45
ProcessRequest2Method · 0.45
ECPartFileMsgSourceMethod · 0.45
ECKnownFileMsgSourceMethod · 0.45
ShowFileListMethod · 0.45

Calls 3

sizeMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected