Inferno
0.2
|
Property node for a specific integer value. More...
#include <cpptree.hpp>
Public Member Functions | |
NODE_FUNCTIONS_FINAL | SpecificInteger () |
default constructor, for making architypes | |
SpecificInteger (llvm::APSInt i) | |
Construct with an LLVM-style integer. | |
SpecificInteger (int i) | |
Construct with an ordinary int. | |
virtual bool | IsLocalMatch (const Matcher *candidate) const |
Overloaded comparison for search&replace. | |
virtual | operator string () const |
Produce a string for debug. |
Property node for a specific integer value.
We use LLVM's class for this, so that we can deal with any size of number (so this can be used for large bit vectors). The LLVM object also stores the signedness. The value must always be filled in.
Definition at line 134 of file cpptree.hpp.
default constructor, for making architypes
Definition at line 137 of file cpptree.hpp.
CPPTree::SpecificInteger::SpecificInteger | ( | llvm::APSInt | i | ) | [inline] |
Construct with an LLVM-style integer.
Definition at line 138 of file cpptree.hpp.
CPPTree::SpecificInteger::SpecificInteger | ( | int | i | ) | [inline] |
Construct with an ordinary int.
Definition at line 139 of file cpptree.hpp.
virtual bool CPPTree::SpecificInteger::IsLocalMatch | ( | const Matcher * | candidate | ) | const [inline, virtual] |
Overloaded comparison for search&replace.
Reimplemented from Matcher.
Definition at line 140 of file cpptree.hpp.
References ASSERT.
virtual CPPTree::SpecificInteger::operator string | ( | ) | const [inline, virtual] |
Produce a string for debug.
Reimplemented from Traceable.
Definition at line 146 of file cpptree.hpp.
References TypeDb::integral_bits.