Puma Reference Manual Puma::CCSemVisitor Class Reference



Puma::CCSemVisitor Class Reference

#include <CCSemVisitor.h>

Inheritance diagram for Puma::CCSemVisitor:
Inheritance graph

List of all members.

Public Member Functions

 CCSemVisitor (ErrorSink &)
void run (CTree *, CStructure *=(CStructure *) 0)
void configure (Config &)

Protected Member Functions

void pre_visit (CTree *)
 Apply actions before the given node is visited.
void post_visit (CTree *)
 Apply actions after the given node is visited.
void pre_action (CT_Program *)
void pre_action (CT_ArgDeclList *)
void pre_action (CT_ArgNameList *)
void pre_action (CT_ArgDeclSeq *)
void pre_action (CT_MembList *)
void pre_action (CT_MembInitList *)
void pre_action (CT_MembInit *)
void pre_action (CT_CmpdStmt *)
void pre_action (CT_IfStmt *)
void pre_action (CT_IfElseStmt *)
void pre_action (CT_SwitchStmt *)
void pre_action (CT_ForStmt *)
void pre_action (CT_WhileStmt *)
void pre_action (CT_Handler *)
void pre_action (CT_TemplateDecl *)
void pre_action (CT_DoStmt *)
void pre_action (CT_ExprStmt *)
void pre_action (CT_CaseStmt *)
void pre_action (CT_GotoStmt *)
void pre_action (CT_ReturnStmt *)
void pre_action (CT_InitDeclarator *)
void pre_action (CT_ArgDecl *)
void pre_action (CT_Condition *)
void pre_action (CT_ArrayDeclarator *)
void pre_action (CT_BitFieldDeclarator *)
void pre_action (CT_ExprList *)
void pre_action (CT_CmpdLiteral *)
void post_action (CT_Program *)
void post_action (CT_ArgDeclList *)
void post_action (CT_ArgNameList *)
void post_action (CT_ArgDeclSeq *)
void post_action (CT_MembList *)
void post_action (CT_MembInitList *)
void post_action (CT_CmpdStmt *)
void post_action (CT_IfStmt *)
void post_action (CT_IfElseStmt *)
void post_action (CT_SwitchStmt *)
void post_action (CT_ForStmt *)
void post_action (CT_WhileStmt *)
void post_action (CT_Handler *)
void post_action (CT_TemplateDecl *)
CTypeInfo * resolveExpr (CTree *, CTree *) const
CTypeInfo * resolveInit (CTree *, CTree *) const

Protected Attributes

CStructure * current_scope
ErrorSink & err

Additional Inherited Members

- Private Member Functions inherited from Puma::CVisitor
 CVisitor ()
 Constructor.
virtual ~CVisitor ()
 Destructor.
void abort (bool v=true)
 Set the aborted state.
void prune (bool v=true)
 Set the pruned state (don't visit the sub-tree).
bool aborted () const
 Check if the node visiting is aborted.
bool pruned () const
 Check if the visiting the sub-tree is aborted.
void visit (CTree *node)
 Visit the given syntax tree node.

Constructor & Destructor Documentation

Puma::CCSemVisitor::CCSemVisitor ( ErrorSink &  e)
inline

Member Function Documentation

void Puma::CCSemVisitor::configure ( Config &  )
inline
void Puma::CCSemVisitor::post_action ( CT_Program *  )
protected
void Puma::CCSemVisitor::post_action ( CT_ArgDeclList *  )
protected
void Puma::CCSemVisitor::post_action ( CT_ArgNameList *  )
protected
void Puma::CCSemVisitor::post_action ( CT_ArgDeclSeq *  )
protected
void Puma::CCSemVisitor::post_action ( CT_MembList *  )
protected
void Puma::CCSemVisitor::post_action ( CT_MembInitList *  )
protected
void Puma::CCSemVisitor::post_action ( CT_CmpdStmt *  )
protected
void Puma::CCSemVisitor::post_action ( CT_IfStmt *  )
protected
void Puma::CCSemVisitor::post_action ( CT_IfElseStmt *  )
protected
void Puma::CCSemVisitor::post_action ( CT_SwitchStmt *  )
protected
void Puma::CCSemVisitor::post_action ( CT_ForStmt *  )
protected
void Puma::CCSemVisitor::post_action ( CT_WhileStmt *  )
protected
void Puma::CCSemVisitor::post_action ( CT_Handler *  )
protected
void Puma::CCSemVisitor::post_action ( CT_TemplateDecl *  )
protected
void Puma::CCSemVisitor::post_visit ( CTree *  node)
protectedvirtual

Apply actions after the given node is visited.

To be implemented by derived visitors.

Parameters:
nodeThe node to visit.

Reimplemented from Puma::CVisitor.

void Puma::CCSemVisitor::pre_action ( CT_Program *  )
protected
void Puma::CCSemVisitor::pre_action ( CT_ArgDeclList *  )
protected
void Puma::CCSemVisitor::pre_action ( CT_ArgNameList *  )
protected
void Puma::CCSemVisitor::pre_action ( CT_ArgDeclSeq *  )
protected
void Puma::CCSemVisitor::pre_action ( CT_MembList *  )
protected
void Puma::CCSemVisitor::pre_action ( CT_MembInitList *  )
protected
void Puma::CCSemVisitor::pre_action ( CT_MembInit *  )
protected
void Puma::CCSemVisitor::pre_action ( CT_CmpdStmt *  )
protected
void Puma::CCSemVisitor::pre_action ( CT_IfStmt *  )
protected
void Puma::CCSemVisitor::pre_action ( CT_IfElseStmt *  )
protected
void Puma::CCSemVisitor::pre_action ( CT_SwitchStmt *  )
protected
void Puma::CCSemVisitor::pre_action ( CT_ForStmt *  )
protected
void Puma::CCSemVisitor::pre_action ( CT_WhileStmt *  )
protected
void Puma::CCSemVisitor::pre_action ( CT_Handler *  )
protected
void Puma::CCSemVisitor::pre_action ( CT_TemplateDecl *  )
protected
void Puma::CCSemVisitor::pre_action ( CT_DoStmt *  )
protected
void Puma::CCSemVisitor::pre_action ( CT_ExprStmt *  )
protected
void Puma::CCSemVisitor::pre_action ( CT_CaseStmt *  )
protected
void Puma::CCSemVisitor::pre_action ( CT_GotoStmt *  )
protected
void Puma::CCSemVisitor::pre_action ( CT_ReturnStmt *  )
protected
void Puma::CCSemVisitor::pre_action ( CT_InitDeclarator *  )
protected
void Puma::CCSemVisitor::pre_action ( CT_ArgDecl *  )
protected
void Puma::CCSemVisitor::pre_action ( CT_Condition *  )
protected
void Puma::CCSemVisitor::pre_action ( CT_ArrayDeclarator *  )
protected
void Puma::CCSemVisitor::pre_action ( CT_BitFieldDeclarator *  )
protected
void Puma::CCSemVisitor::pre_action ( CT_ExprList *  )
protected
void Puma::CCSemVisitor::pre_action ( CT_CmpdLiteral *  )
protected
void Puma::CCSemVisitor::pre_visit ( CTree *  node)
protectedvirtual

Apply actions before the given node is visited.

To be implemented by derived visitors.

Parameters:
nodeThe node to visit.

Reimplemented from Puma::CVisitor.

CTypeInfo* Puma::CCSemVisitor::resolveExpr ( CTree *  ,
CTree *   
) const
protected
CTypeInfo* Puma::CCSemVisitor::resolveInit ( CTree *  ,
CTree *   
) const
protected
void Puma::CCSemVisitor::run ( CTree *  ,
CStructure *  = (CStructure *) 0 
)

Member Data Documentation

CStructure* Puma::CCSemVisitor::current_scope
protected
ErrorSink& Puma::CCSemVisitor::err
protected



Puma Reference Manual. Created on Sun Jul 1 2012.