7 #include <hilti/ast/ctor.h> 8 #include <hilti/ast/types/integer.h> 16 template<
typename T,
typename S>
21 auto value()
const {
return _value; }
22 auto width()
const {
return _width; }
27 auto isLhs()
const {
return false; }
31 const auto&
type()
const {
return child<Type>(0); }
48 bool operator==(
const SignedInteger& other)
const {
return value() == other.value() && width() == other.width(); }
51 auto isEqual(
const Ctor& other)
const {
return node::isEqual(
this, other); }
59 bool operator==(
const UnsignedInteger& other)
const {
return value() == other.value() && width() == other.width(); }
62 auto isEqual(
const Ctor& other)
const {
return node::isEqual(
this, other); }
const auto & type() const
Definition: integer.h:31
bool isConstant() const
Definition: integer.h:25
auto properties() const
Definition: integer.h:34
auto isEqual(const Ctor &other) const
Definition: integer.h:62
auto isEqual(const Ctor &other) const
Definition: integer.h:51
std::map< std::string, node::detail::PropertyValue > Properties
Definition: node.h:97
auto isLhs() const
Definition: integer.h:27
auto isTemporary() const
Definition: integer.h:29