Dyninst::AST Class Reference

#include <DynAST.h>

Public Types

enum  ID {
  V_AST, V_BottomAST, V_ConstantAST, V_VariableAST,
  V_RoseAST, V_StackAST, V_InputVariableAST, V_ReferenceAST,
  V_StpAST, V_YicesAST, V_SemanticsAST
}
typedef boost::shared_ptr< ASTPtr
typedef std::vector< AST::PtrChildren

Public Member Functions

 AST ()
virtual ~AST ()
bool operator== (const AST &rhs) const
virtual unsigned numChildren () const
virtual AST::Ptr child (unsigned) const
bool equals (AST::Ptr rhs)
virtual const std::string format () const =0
virtual ID getID () const
virtual Ptr accept (ASTVisitor *)
Ptr ptr ()
virtual void setChild (int, AST::Ptr)

Static Public Member Functions

static AST::Ptr substitute (AST::Ptr in, AST::Ptr a, AST::Ptr b)

Protected Member Functions

virtual bool isStrictEqual (const AST &rhs) const =0

Detailed Description

Definition at line 164 of file DynAST.h.


Member Typedef Documentation

typedef std::vector<AST::Ptr> Dyninst::AST::Children

Definition at line 188 of file DynAST.h.

typedef boost::shared_ptr<AST> Dyninst::AST::Ptr

Definition at line 187 of file DynAST.h.


Member Enumeration Documentation

Enumerator:
V_AST 
V_BottomAST 
V_ConstantAST 
V_VariableAST 
V_RoseAST 
V_StackAST 
V_InputVariableAST 
V_ReferenceAST 
V_StpAST 
V_YicesAST 
V_SemanticsAST 

Definition at line 171 of file DynAST.h.


Constructor & Destructor Documentation

Dyninst::AST::AST (  )  [inline]

Definition at line 190 of file DynAST.h.

virtual Dyninst::AST::~AST (  )  [inline, virtual]

Definition at line 191 of file DynAST.h.


Member Function Documentation

AST::Ptr AST::accept ( ASTVisitor v  )  [virtual]

Definition at line 50 of file AST.C.

References Dyninst::ASTVisitor::visit().

virtual AST::Ptr Dyninst::AST::child ( unsigned   )  const [inline, virtual]

Definition at line 200 of file DynAST.h.

bool Dyninst::AST::equals ( AST::Ptr  rhs  )  [inline]

Definition at line 205 of file DynAST.h.

virtual const std::string Dyninst::AST::format (  )  const [pure virtual]
virtual ID Dyninst::AST::getID (  )  const [inline, virtual]

Definition at line 217 of file DynAST.h.

virtual bool Dyninst::AST::isStrictEqual ( const AST rhs  )  const [protected, pure virtual]
virtual unsigned Dyninst::AST::numChildren (  )  const [inline, virtual]

Definition at line 198 of file DynAST.h.

bool Dyninst::AST::operator== ( const AST rhs  )  const [inline]

Definition at line 193 of file DynAST.h.

Ptr Dyninst::AST::ptr (  )  [inline]

Definition at line 222 of file DynAST.h.

virtual void Dyninst::AST::setChild ( int  ,
AST::Ptr   
) [inline, virtual]

Definition at line 224 of file DynAST.h.

AST::Ptr AST::substitute ( AST::Ptr  in,
AST::Ptr  a,
AST::Ptr  b 
) [static]

Definition at line 37 of file AST.C.


The documentation for this class was generated from the following files:
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 12 Jul 2013 for SymtabAPI by  doxygen 1.6.1