7 #include <hilti/ast/ctor.h> 8 #include <hilti/ast/types/integer.h> 17 template<
typename T,
typename S>
22 auto value()
const {
return _value; }
23 auto width()
const {
return _width; }
28 auto isLhs()
const {
return false; }
32 auto type()
const {
return S(_width); }
48 using Base::IntegerBase;
50 SignedInteger(uint64_t v,
int w,
const Meta& m =
Meta()) : Base::IntegerBase(static_cast<int64_t>(v), w, m) {}
52 bool operator==(
const SignedInteger& other)
const {
return value() == other.value() && width() == other.width(); }
55 auto isEqual(
const Ctor& other)
const {
return node::isEqual(
this, other); }
63 bool operator==(
const UnsignedInteger& other)
const {
return value() == other.value() && width() == other.width(); }
66 auto isEqual(
const Ctor& other)
const {
return node::isEqual(
this, other); }
auto type() const
Definition: integer.h:32
bool isConstant() const
Definition: integer.h:26
auto properties() const
Definition: integer.h:35
auto isEqual(const Ctor &other) const
Definition: integer.h:66
auto isEqual(const Ctor &other) const
Definition: integer.h:55
std::map< std::string, node::detail::PropertyValue > Properties
Definition: node.h:83
auto isLhs() const
Definition: integer.h:28
auto isTemporary() const
Definition: integer.h:30