GridGain C++ Client Library
guid.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) GridGain Systems. All Rights Reserved.
3  * _________ _____ __________________ _____
4  * __ ____/___________(_)______ /__ ____/______ ____(_)_______
5  * _ / __ __ ___/__ / _ __ / _ / __ _ __ `/__ / __ __ \
6  * / /_/ / _ / _ / / /_/ / / /_/ / / /_/ / _ / _ / / /
7  * \____/ /_/ /_/ \_,__/ \____/ \__,_/ /_/ /_/ /_/
8  */
9 
15 #ifndef _GRIDGAIN_GUID
16 #define _GRIDGAIN_GUID
17 
18 #include <stdint.h>
19 
20 #include <ignite/common/common.h>
21 
22 namespace gridgain
23 {
27  class IGNITE_IMPORT_EXPORT Guid
28  {
29  public:
33  Guid();
34 
41  Guid(int64_t most, int64_t least);
42 
48  int64_t GetMostSignificantBits() const;
49 
55  int64_t GetLeastSignificantBits() const;
56 
69  int32_t GetVersion() const;
70 
83  int32_t GetVariant() const;
84 
90  int32_t GetHashCode() const;
91 
99  friend bool IGNITE_IMPORT_EXPORT operator== (Guid& val1, Guid& val2);
100  private:
102  int64_t most;
103 
105  int64_t least;
106  };
107 }
108 
109 #endif
Global universally unique identifier (GUID).
Definition: guid.h:27
bool operator==(Guid &val1, Guid &val2)
Definition: guid.cpp:53
GridGain API.
Definition: cache.h:35