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

19 lines
402 B
C++
Raw Normal View History

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