2016-02-14 00:59:48 +08:00
|
|
|
#pragma once
|
|
|
|
|
2016-08-10 16:39:02 +08:00
|
|
|
#include "storage/model/properties/integral.hpp"
|
|
|
|
#include "storage/model/properties/int64.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-02-21 00:53:09 +08:00
|
|
|
operator Int64() const
|
|
|
|
{
|
|
|
|
return Int64(value);
|
|
|
|
}
|
2016-02-14 00:59:48 +08:00
|
|
|
|
|
|
|
int32_t value;
|
|
|
|
};
|
|
|
|
|