diff options
| author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2015-08-27 16:17:21 -0700 |
|---|---|---|
| committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2015-08-27 16:17:21 -0700 |
| commit | b11ffc9635204f11daac4f20596dc4e3da687eee (patch) | |
| tree | 18ff0abd97c5b267e868104c3f0736e0e577b1ba /node/MulticastGroup.hpp | |
| parent | 3947807b1ffc844f62eeec7dd0fe552d280fe807 (diff) | |
| download | infinitytier-b11ffc9635204f11daac4f20596dc4e3da687eee.tar.gz infinitytier-b11ffc9635204f11daac4f20596dc4e3da687eee.zip | |
Integrate Hashtable into Multicaster, where @mwarning found heaviest std::map() overhead.
Diffstat (limited to 'node/MulticastGroup.hpp')
| -rw-r--r-- | node/MulticastGroup.hpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/node/MulticastGroup.hpp b/node/MulticastGroup.hpp index 61fb55f2..fad433b5 100644 --- a/node/MulticastGroup.hpp +++ b/node/MulticastGroup.hpp @@ -141,6 +141,8 @@ public: */ inline uint32_t adi() const throw() { return _adi; } + inline unsigned long hashCode() const throw() { return (_mac.hashCode() ^ (unsigned long)_adi); } + inline bool operator==(const MulticastGroup &g) const throw() { return ((_mac == g._mac)&&(_adi == g._adi)); } inline bool operator!=(const MulticastGroup &g) const throw() { return ((_mac != g._mac)||(_adi != g._adi)); } inline bool operator<(const MulticastGroup &g) const throw() |
