Vegastrike 0.5.1 rc1  1.0
Original sources for Vegastrike Evolved
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ConstHasher Class Reference

#include <unit_const_cache.h>

Public Member Functions

template<class T >
size_t operator() (const T &key) const
 
size_t operator() (const StringIntKey &key) const
 

Detailed Description

Definition at line 35 of file unit_const_cache.h.

Member Function Documentation

template<class T >
size_t ConstHasher::operator() ( const T &  key) const
inline

Definition at line 39 of file unit_const_cache.h.

40  {
41  return vsHash< T > () ( key );
42  }
size_t ConstHasher::operator() ( const StringIntKey key) const
inline

Definition at line 43 of file unit_const_cache.h.

44  {
45  return vsHash< std::string > () ( key.key )^vsHash< size_t > () ( (size_t) key.fac );
46  }

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