memgraph/include/storage/model/properties/float.hpp
Kruno Tomola Fabro 5d235b51f3 tmp commit
tmp commit

tmp commit v2

Finished reimplementation of propertys.
They now can be placed in a holder with different source of type information.

Tmp commit
2016-09-05 10:02:48 +01:00

24 lines
438 B
C++

#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>
{
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; }
private:
float data;
};