Ocular Engine
HashGenerator.hpp
1 
17 #pragma once
18 #ifndef __H__OCULAR_UTILITIES_HASH_GENERATOR__H__
19 #define __H__OCULAR_UTILITIES_HASH_GENERATOR__H__
20 
21 #include <cstdint>
22 #include <string>
23 
24 //------------------------------------------------------------------------------------------
25 
30 namespace Ocular
31 {
36  namespace Utils
37  {
59  {
60  public:
61 
62  HashGenerator();
63  ~HashGenerator();
64 
74  uint32_t getHash32(std::string const& str);
75 
85  uint64_t getHash64(std::string const& str);
86 
94  uint32_t getHash32(std::string const& str, uint32_t last);
95 
103  uint64_t getHash64(std::string const& str, uint64_t last);
104 
105  protected:
106 
107  private:
108 
109  uint32_t m_LastHash32;
110  uint64_t m_LastHash64;
111  };
112  }
116 }
121 //------------------------------------------------------------------------------------------
122 
123 #endif
Note: Once this library is made dynamic, this will no longer be needed.
Definition: Common.hpp:70
uint64_t getHash64(std::string const &str)
Definition: HashGenerator.cpp:94
Definition: HashGenerator.hpp:58
uint32_t getHash32(std::string const &str)
Definition: HashGenerator.cpp:67