2016-02-14 00:59:48 +08:00
|
|
|
#pragma once
|
|
|
|
|
2016-08-10 16:39:02 +08:00
|
|
|
#include "storage/model/properties/int64.hpp"
|
2016-08-15 20:21:38 +08:00
|
|
|
#include "storage/model/properties/integral.hpp"
|
2016-02-14 00:59:48 +08:00
|
|
|
|
|
|
|
class Int32 : public Integral<Int32>
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
static constexpr Flags type = Flags::Int32;
|
|
|
|
|
|
|
|
Int32(int32_t value) : Integral(Flags::Int32), value(value) {}
|
|
|
|
|
2016-08-15 20:21:38 +08:00
|
|
|
operator Int64() const { return Int64(value); }
|
|
|
|
|
|
|
|
int32_t const &value_ref() const { return value; }
|
2016-02-14 00:59:48 +08:00
|
|
|
|
|
|
|
int32_t value;
|
|
|
|
};
|