TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
HashTrait< G3D::NetAddress > Struct Template Reference

#include <NetAddress.h>

Static Public Member Functions

static size_t hashCode (const G3D::NetAddress &key)
 

Member Function Documentation

static size_t HashTrait< G3D::NetAddress >::hashCode ( const G3D::NetAddress key)
inlinestatic
112  {
113  return static_cast<size_t>(key.ip() + (static_cast<G3D::uint32>(key.port()) << 16));
114  }
uint32 ip() const
Returns a value in host format (i.e., don't worry about endian issues)
Definition: NetAddress.h:86
uint16 port() const
Definition: NetAddress.h:91
uint32_t uint32
Definition: g3dmath.h:168

+ Here is the call graph for this function:


The documentation for this struct was generated from the following file: