20 #ifdef GENOM_SERIALIZATION
21 #include <boost/archive/binary_iarchive.hpp>
22 #include <boost/archive/binary_oarchive.hpp>
23 #include <boost/serialization/variant.hpp>
24 #endif //GENOM_SERIALIZATION
35 mMin(inMin), mMinUndefined(false), mNominal(inNominal), mMax(inMax), mMaxUndefined(false) {}
40 mMinUndefined(inSource.mMinUndefined), mNominal(inSource.mNominal), mMax(inSource.mMax),
41 mMaxUndefined(inSource.mMaxUndefined) {}
44 if(
this != &inSource) {
80 mMaxUndefined =
false;
85 mMinUndefined =
false;
95 mExponent(inExponent) {}
100 mExponent(inSource.mExponent) {}
103 if(
this != &inSource) {
111 return eval() < inRhs.
eval();
115 return eval() == inRhs.
eval();
119 return eval() > inRhs.
eval();
123 return eval() >= inRhs.
eval();
127 return eval() <= inRhs.
eval();
135 mMantissa = inSource;
139 mExponent = inSource;
143 return static_cast<double>(mMantissa) * pow(10, static_cast<double>(mExponent));
155 if(
this != &inSource) {
163 return mX < inRhs.
mY || (mX == inRhs.
mX && mY < inRhs.
mY);
167 return mX == inRhs.
mY && mY == inRhs.
mY;
171 return mX > inRhs.
mY || (mX == inRhs.
mX && mY > inRhs.
mY);
175 return mX >= inRhs.
mY && mY >= inRhs.
mY;
179 return mX <= inRhs.
mY && mY <= inRhs.
mY;
201 mIsSet(inSource.mIsSet) {}
204 if(
this != &inSource) {
230 #ifdef GENOM_SERIALIZATION
231 template <
class Archive>
void Value::serialize(Archive& ar,
unsigned int) {
238 template void Value::serialize<boost::archive::binary_iarchive>(
239 boost::archive::binary_iarchive& ar,
const unsigned int);
241 template void Value::serialize<boost::archive::binary_oarchive>(
242 boost::archive::binary_oarchive& ar,
const unsigned int);
244 #endif //GENOM_SERIALIZATION
bool operator==(const Point &inRhs) const
bool operator>(const MiNoMax &inRhs) const
void setMantissa(const int32_t &inSource)
bool operator!=(const Point &inRhs) const
bool operator>=(const MiNoMax &inRhs) const
void setX(const int32_t &inSource)
void setNominal(const Value::Number &inSource)
bool operator!=(const MiNoMax &inRhs) const
void setMax(const Value::Number &inSource)
bool operator>(const Point &inRhs) const
void setMin(const Value::Number &inSource)
bool operator<=(const Number &inRhs) const
Number & operator=(const Number &inSource)
bool operator<(const Point &inRhs) const
boost::variant< Value::Boolean, Value::Integer, Value::Number, Value::MiNoMax, Value::Point, Value::String > mValue
bool operator==(const location &loc1, const location &loc2)
Compare two location objects.
bool operator!=(const Number &inRhs) const
bool operator==(const Number &inRhs) const
bool operator==(const MiNoMax &inRhs) const
Point & operator=(const Point &inSource)
bool operator>=(const Number &inRhs) const
MiNoMax & operator=(const MiNoMax &inSource)
void setType(const Type &inSource)
bool operator>=(const Point &inRhs) const
bool operator<=(const Point &inRhs) const
bool operator<=(const MiNoMax &inRhs) const
bool operator<(const Number &inRhs) const
void setExponent(const int32_t &inSource)
bool operator>(const Number &inRhs) const
void setY(const int32_t &inSource)
bool operator<(const MiNoMax &inRhs) const
Value & operator=(const Value &inSource)
void setIsSet(const bool &inSource)