00001
00002
00003
00004
00005
00006
00007
00008
00009
00010 #ifndef GRIDCLIENTWIDESTRINGHASHEABLEOBJECT_HPP_
00011 #define GRIDCLIENTWIDESTRINGHASHEABLEOBJECT_HPP_
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #ifndef GRID_CLIENT_STRINGHASHEABLEOBJECT_HPP_INCLUDED
00023 #define GRID_CLIENT_STRINGHASHEABLEOBJECT_HPP_INCLUDED
00024
00025 #include <cstdint>
00026
00027 #include <string>
00028 #include <vector>
00029
00030 #include "gridgain/gridhasheableobject.hpp"
00031
00035 class GridWideStringHasheableObject : public GridClientHasheableObject {
00036 public:
00042 GridWideStringHasheableObject(const std::wstring& s);
00043
00049 virtual int32_t hashCode() const;
00050
00056 virtual void convertToBytes(std::vector<int8_t>& bytes) const;
00057
00063 virtual bool operator<(const GridWideStringHasheableObject& right) const {
00064 return str < const_cast<GridWideStringHasheableObject&>(right).str;
00065 }
00066
00067 protected:
00069 std::wstring str;
00070 };
00071
00072 #endif
00073
00074
00075
00076 #endif