MCPcopy Create free account
hub / github.com/Parchive/par2cmdline / Insert

Method Insert

src/diskfile.cpp:1160–1168  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1158}
1159
1160bool DiskFileMap::Insert(DiskFile *diskfile)
1161{
1162 std::string filename = diskfile->FileName();
1163 assert(filename.length() != 0);
1164
1165 std::pair<std::map<std::string,DiskFile*>::const_iterator,bool> location = diskfilemap.insert(std::pair<std::string,DiskFile*>(filename, diskfile));
1166
1167 return location.second;
1168}
1169
1170void DiskFileMap::Remove(DiskFile *diskfile)
1171{

Callers 12

LoadMethod · 0.45
test3Function · 0.45
LoadPacketsFromFileMethod · 0.45
VerifySourceFilesMethod · 0.45
VerifyExtraFilesMethod · 0.45
RenameTargetFilesMethod · 0.45
CreateTargetFilesMethod · 0.45
LoadRecoveryFileMethod · 0.45
VerifySourceFilesMethod · 0.45
VerifyExtraFilesMethod · 0.45
RenameTargetFilesMethod · 0.45
CreateTargetFilesMethod · 0.45

Calls 1

FileNameMethod · 0.45

Tested by 1

test3Function · 0.36