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

24 lines
438 B
C++
Raw Normal View History

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