| 1158 | } |
| 1159 | |
| 1160 | bool 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 | |
| 1170 | void DiskFileMap::Remove(DiskFile *diskfile) |
| 1171 | { |