Changeset 1542 for XIOS/trunk/src/client_client_dht_template_impl.hpp
- Timestamp:
- 06/13/18 16:48:53 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/trunk/src/client_client_dht_template_impl.hpp
r1158 r1542 116 116 size_t index; 117 117 HashXIOS<size_t> hashGlobalIndex; 118 boost::unordered_map<size_t,int> nbIndices;118 std::unordered_map<size_t,int> nbIndices; 119 119 nbIndices.rehash(std::ceil(ssize/nbIndices.max_load_factor())); 120 120 for (int i = 0; i < ssize; ++i) … … 131 131 } 132 132 133 boost::unordered_map<int, size_t* > client2ClientIndex;133 std::unordered_map<int, size_t* > client2ClientIndex; 134 134 for (int idx = 0; idx < nbClient; ++idx) 135 135 { … … 183 183 } 184 184 185 boost::unordered_map<int, size_t* >::iterator itbIndex = client2ClientIndex.begin(), itIndex,185 std::unordered_map<int, size_t* >::iterator itbIndex = client2ClientIndex.begin(), itIndex, 186 186 iteIndex = client2ClientIndex.end(); 187 187 for (itIndex = itbIndex; itIndex != iteIndex; ++itIndex) … … 257 257 } 258 258 259 boost::unordered_map<int,unsigned char*> client2ClientInfoOnReturn;260 boost::unordered_map<int,size_t*> client2ClientIndexOnReturn;259 std::unordered_map<int,unsigned char*> client2ClientInfoOnReturn; 260 std::unordered_map<int,size_t*> client2ClientIndexOnReturn; 261 261 currentIndex = 0; 262 262 for (int idx = 0; idx < nbRecvClient; ++idx) … … 308 308 indexToInfoMappingLevel_.swap(indexToInfoMapping); 309 309 if (0 != recvNbIndexCount) delete [] recvIndexBuff; 310 for ( boost::unordered_map<int,size_t*>::const_iterator it = client2ClientIndex.begin();310 for (std::unordered_map<int,size_t*>::const_iterator it = client2ClientIndex.begin(); 311 311 it != client2ClientIndex.end(); ++it) 312 312 delete [] it->second; … … 319 319 } 320 320 321 for ( boost::unordered_map<int,unsigned char*>::const_iterator it = client2ClientInfoOnReturn.begin();321 for (std::unordered_map<int,unsigned char*>::const_iterator it = client2ClientInfoOnReturn.begin(); 322 322 it != client2ClientInfoOnReturn.end(); ++it) 323 323 delete [] it->second; 324 324 325 for ( boost::unordered_map<int,size_t*>::const_iterator it = client2ClientIndexOnReturn.begin();325 for (std::unordered_map<int,size_t*>::const_iterator it = client2ClientIndexOnReturn.begin(); 326 326 it != client2ClientIndexOnReturn.end(); ++it) 327 327 delete [] it->second; … … 389 389 } 390 390 391 boost::unordered_map<int, size_t*> client2ClientIndex;392 boost::unordered_map<int, unsigned char*> client2ClientInfo;391 std::unordered_map<int, size_t*> client2ClientIndex; 392 std::unordered_map<int, unsigned char*> client2ClientInfo; 393 393 for (int idx = 0; idx < nbClient; ++idx) 394 394 { … … 455 455 } 456 456 457 boost::unordered_map<int, size_t* >::iterator itbIndex = client2ClientIndex.begin(), itIndex,457 std::unordered_map<int, size_t* >::iterator itbIndex = client2ClientIndex.begin(), itIndex, 458 458 iteIndex = client2ClientIndex.end(); 459 459 for (itIndex = itbIndex; itIndex != iteIndex; ++itIndex) 460 460 sendIndexToClients(itIndex->first, itIndex->second, sendNbIndexBuff[itIndex->first-groupRankBegin], commLevel, request); 461 boost::unordered_map<int, unsigned char*>::iterator itbInfo = client2ClientInfo.begin(), itInfo,461 std::unordered_map<int, unsigned char*>::iterator itbInfo = client2ClientInfo.begin(), itInfo, 462 462 iteInfo = client2ClientInfo.end(); 463 463 for (itInfo = itbInfo; itInfo != iteInfo; ++itInfo) … … 490 490 delete [] recvInfoBuff; 491 491 } 492 for ( boost::unordered_map<int,unsigned char*>::const_iterator it = client2ClientInfo.begin();492 for (std::unordered_map<int,unsigned char*>::const_iterator it = client2ClientInfo.begin(); 493 493 it != client2ClientInfo.end(); ++it) 494 494 delete [] it->second; 495 495 496 for ( boost::unordered_map<int,size_t*>::const_iterator it = client2ClientIndex.begin();496 for (std::unordered_map<int,size_t*>::const_iterator it = client2ClientIndex.begin(); 497 497 it != client2ClientIndex.end(); ++it) 498 498 delete [] it->second;
Note: See TracChangeset
for help on using the changeset viewer.