Inferno  0.2
CPPTree::SpecificInteger Struct Reference

Property node for a specific integer value. More...

#include <cpptree.hpp>

Inheritance diagram for CPPTree::SpecificInteger:
[legend]
Collaboration diagram for CPPTree::SpecificInteger:
[legend]

List of all members.

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.

Detailed Description

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.


Constructor & Destructor Documentation

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.

Construct with an ordinary int.

Definition at line 139 of file cpptree.hpp.


Member Function Documentation

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.


The documentation for this struct was generated from the following file: