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

21 lines
366 B
C++
Raw Normal View History

#pragma once
#include "storage/model/properties/integral.hpp"
#include "storage/model/properties/int64.hpp"
class Int32 : public Integral<Int32>
{
public:
static constexpr Flags type = Flags::Int32;
Int32(int32_t value) : Integral(Flags::Int32), value(value) {}
2016-02-21 00:53:09 +08:00
operator Int64() const
{
return Int64(value);
}
int32_t value;
};