memgraph/include/storage/model/properties/double.hpp

20 lines
341 B
C++
Raw Normal View History

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