memgraph/storage/model/json/integral.hpp
2015-12-07 21:51:55 +01:00

31 lines
428 B
C++

#pragma once
#include "primitive.hpp"
namespace json {
class Integral final : public Primitive<int64_t>
{
public:
Integral() {}
Integral(int64_t value)
: Primitive<int64_t>(value) {}
virtual bool is_integral() const;
virtual operator std::string() const;
};
bool Integral::is_integral() const
{
return true;
}
Integral::operator std::string() const
{
return std::to_string(value);
}
}