MCPcopy Create free account
hub / github.com/OpenDDS/OpenDDS / calculate_hash

Function calculate_hash

dds/DCPS/NetworkAddress.cpp:356–363  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

354
355#if defined ACE_HAS_CPP11
356size_t calculate_hash(const NetworkAddressSet& addrs, size_t start_hash)
357{
358 size_t result = start_hash;
359 for (NetworkAddressSet::const_iterator it = addrs.begin(), limit = addrs.end(); it != limit; ++it) {
360 result = it->hash(result);
361 }
362 return result;
363}
364#endif
365
366const NetworkAddress NetworkAddress::default_IPV4("0.0.0.0:0");

Callers 2

AddressCache.hFile · 0.85
recalculate_hashMethod · 0.85

Calls 3

beginMethod · 0.45
endMethod · 0.45
hashMethod · 0.45

Tested by

no test coverage detected