2016-02-21 00:53:09 +08:00
|
|
|
#pragma once
|
|
|
|
|
2016-09-05 17:02:48 +08:00
|
|
|
#include "storage/model/properties/flags.hpp"
|
2016-08-10 16:39:02 +08:00
|
|
|
#include "storage/model/properties/floating.hpp"
|
2016-02-21 00:53:09 +08:00
|
|
|
|
|
|
|
struct Double : public Floating<Double>
|
|
|
|
{
|
2016-09-05 17:02:48 +08:00
|
|
|
public:
|
|
|
|
const static Type type;
|
2016-02-21 00:53:09 +08:00
|
|
|
|
2016-09-05 17:02:48 +08:00
|
|
|
Double(double d) : data(d) {}
|
2016-02-21 00:53:09 +08:00
|
|
|
|
2016-09-05 17:02:48 +08:00
|
|
|
double &value() { return data; }
|
2016-08-15 20:21:38 +08:00
|
|
|
|
2016-09-05 17:02:48 +08:00
|
|
|
double const &value() const { return data; }
|
|
|
|
|
|
|
|
private:
|
|
|
|
double data;
|
2016-02-21 00:53:09 +08:00
|
|
|
};
|