Go to the documentation of this file.
21 #ifndef __IceStorm_LLURecord_h__
22 #define __IceStorm_LLURecord_h__
24 #include <Ice/Comparable.h>
25 #include <Ice/Exception.h>
26 #include <Ice/LocalObject.h>
27 #include <Ice/ObjectF.h>
28 #include <Ice/Optional.h>
29 #include <Ice/ProxyF.h>
30 #include <Ice/StreamHelpers.h>
31 #include <Ice/ValueF.h>
32 #include <IceUtil/PushDisableWarnings.h>
33 #include <IceUtil/ScopedArray.h>
34 #include <IceUtil/UndefSysMacros.h>
36 #ifndef ICE_IGNORE_VERSION
37 #if ICE_INT_VERSION / 100 != 307
38 #error Ice version mismatch!
40 #if ICE_INT_VERSION % 100 > 50
41 #error Beta header file detected
43 #if ICE_INT_VERSION % 100 < 0
44 #error Ice patch level mismatch!
48 #ifdef ICE_CPP11_MAPPING // C++11 mapping
58 std::tuple<const long long int&, const long long int&>
66 using Ice::operator<=;
68 using Ice::operator>=;
69 using Ice::operator==;
70 using Ice::operator!=;
80 static const StreamHelperCategory helper = StreamHelperCategoryStruct;
81 static const int minWireSize = 16;
82 static const bool fixedLength =
true;
91 istr->readAll(
v.generation,
v.iteration);
97 #else // C++98 mapping
184 static const StreamHelperCategory helper = StreamHelperCategoryStruct;
185 static const int minWireSize = 16;
186 static const bool fixedLength =
true;
189 template <
typename S>
193 write(S* ostr, const ::IceStormElection::LogUpdate&
v)
195 ostr->write(
v.generation);
196 ostr->write(
v.iteration);
200 template <
typename S>
206 istr->read(
v.generation);
207 istr->read(
v.iteration);
215 #include <IceUtil/PopDisableWarnings.h>
A struct used for marking the last log update.
static void write(S *ostr, const ::IceStormElection::LogUpdate &v)
static void read(S *istr, ::IceStormElection::LogUpdate &v)
void read(auto &eigen, auto *table)
bool operator<(const LogUpdate &rhs_) const
bool operator<=(const LogUpdate &rhs_) const
double v(double t, double v0, double a0, double j)
bool operator!=(const LogUpdate &rhs_) const
bool operator>=(const LogUpdate &rhs_) const
bool operator>(const LogUpdate &rhs_) const
bool operator==(const LogUpdate &rhs_) const