memgraph/include/storage/model/properties/int32.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

23 lines
442 B
C++

#pragma once
#include "storage/model/properties/flags.hpp"
#include "storage/model/properties/int64.hpp"
#include "storage/model/properties/integral.hpp"
class Int32 : public Integral<Int32>
{
public:
const static Type type;
Int32(int32_t d) : data(d) {}
operator Int64() const { return Int64(value()); }
int32_t &value() { return data; }
int32_t const &value() const { return data; }
private:
int32_t data;
};