Main Page   Namespace List   Class Hierarchy   Compound List   File List   Compound Members   File Members  

Ptree_visitor< Returntype > Class Template Reference

Base class for visitors of a PTree hierarchy. More...

#include <ptree_visitor.h>

Inheritance diagram for Ptree_visitor:

Inheritance graph
[legend]
Collaboration diagram for Ptree_visitor< Returntype >:

Collaboration graph
[legend]
List of all members.

Public Methods

Sourceget_source () const
 Ptree_visitor (Source *s)
virtual ~Ptree_visitor ()
Returntype visit ()
virtual Returntype visit (Ptree *p)
virtual Returntype visit_null ()
virtual Returntype visit_leaf (Leaf *p)
 Visit a parse-tree leaf: Leaf, LeafReserved, and all subclasses of LeafReserved: LeafNAMESPACE etc. More...

virtual Returntype visit_nonleaf (NonLeaf *p)
virtual Returntype visit_declarator (PtreeDeclarator *p)
virtual Returntype visit_typedef (PtreeTypedef *p)
virtual Returntype visit_templatedecl (PtreeTemplateDecl *p)
virtual Returntype visit_templateinstantiation (PtreeTemplateInstantiation *p)
virtual Returntype visit_externtemplate (PtreeExternTemplate *p)
virtual Returntype visit_linkagespec (PtreeLinkageSpec *p)
virtual Returntype visit_namespacespec (PtreeNamespaceSpec *p)
virtual Returntype visit_using (PtreeUsing *p)
virtual Returntype visit_declaration (PtreeDeclaration *p)
virtual Returntype visit_brace (PtreeBrace *p)
virtual Returntype visit_block (PtreeBlock *p)
virtual Returntype visit_classbody (PtreeClassBody *p)
virtual Returntype visit_classspec (PtreeClassSpec *p)
virtual Returntype visit_enumspec (PtreeEnumSpec *p)
virtual Returntype visit_accessspec (PtreeAccessSpec *p)
virtual Returntype visit_accessdecl (PtreeAccessDecl *p)
virtual Returntype visit_useraccessspec (PtreeUserAccessSpec *p)
virtual Returntype visit_if (PtreeIfStatement *p)
virtual Returntype visit_switch (PtreeSwitchStatement *p)
virtual Returntype visit_while (PtreeWhileStatement *p)
virtual Returntype visit_do (PtreeDoStatement *p)
virtual Returntype visit_for (PtreeForStatement *p)
virtual Returntype visit_try (PtreeTryStatement *p)
virtual Returntype visit_break (PtreeBreakStatement *p)
virtual Returntype visit_continue (PtreeContinueStatement *p)
virtual Returntype visit_return (PtreeReturnStatement *p)
virtual Returntype visit_goto (PtreeGotoStatement *p)
virtual Returntype visit_case (PtreeCaseStatement *p)
virtual Returntype visit_default (PtreeDefaultStatement *p)
virtual Returntype visit_label (PtreeLabelStatement *p)
virtual Returntype visit_expr (PtreeExprStatement *p)
virtual Returntype visit_comma (PtreeCommaExpr *p)
virtual Returntype visit_assign (PtreeAssignExpr *p)
virtual Returntype visit_cond (PtreeCondExpr *p)
virtual Returntype visit_infix (PtreeInfixExpr *p)
virtual Returntype visit_pm (PtreePmExpr *p)
virtual Returntype visit_cast (PtreeCastExpr *p)
virtual Returntype visit_unary (PtreeUnaryExpr *p)
virtual Returntype visit_throw (PtreeThrowExpr *p)
virtual Returntype visit_sizeof (PtreeSizeofExpr *p)
virtual Returntype visit_new (PtreeNewExpr *p)
virtual Returntype visit_delete (PtreeDeleteExpr *p)
virtual Returntype visit_array (PtreeArrayExpr *p)
virtual Returntype visit_funcall (PtreeFuncallExpr *p)
virtual Returntype visit_postfix (PtreePostfixExpr *p)
virtual Returntype visit_userstatement (PtreeUserStatementExpr *p)
virtual Returntype visit_dotmember (PtreeDotMemberExpr *p)
virtual Returntype visit_arrowmember (PtreeArrowMemberExpr *p)
virtual Returntype visit_paren (PtreeParenExpr *p)
virtual Returntype visit_staticuserstatement (PtreeStaticUserStatementExpr *p)
virtual Returntype visit_exprstatement (PtreeExprStatement *p)
virtual Returntype visit_fstylecastexpr (PtreeFstyleCastExpr *p)
virtual Returntype visit_name (Ptree *p)
virtual Returntype visit_this (LeafThis *p)

Protected Methods

Returntype recurse (Ptree *p)
 Recursively visit nested nodes. More...

virtual Returntype default_action (Ptree *p)
 Default action taken when a visit_*() function has not been overloaded. More...

virtual void runtime_error ()

Private Types

typedef Walker Super

Private Methods

virtual PtreeTranslatePtree (Ptree *p)
virtual PtreeTranslateTypedef (Ptree *p)
virtual PtreeTranslateTemplateDecl (Ptree *p)
virtual PtreeTranslateTemplateInstantiation (Ptree *p)
virtual PtreeTranslateExternTemplate (Ptree *p)
virtual PtreeTranslateLinkageSpec (Ptree *p)
virtual PtreeTranslateNamespaceSpec (Ptree *p)
virtual PtreeTranslateUsing (Ptree *p)
virtual PtreeTranslateDeclaration (Ptree *p)
virtual PtreeTranslateBrace (Ptree *p)
virtual PtreeTranslateBlock (Ptree *p)
virtual PtreeTranslateClassBody (Ptree *p, Ptree *, Class *)
virtual PtreeTranslateClassSpec (Ptree *p)
virtual PtreeTranslateEnumSpec (Ptree *p)
virtual PtreeTranslateAccessSpec (Ptree *p)
virtual PtreeTranslateAccessDecl (Ptree *p)
virtual PtreeTranslateUserAccessSpec (Ptree *p)
virtual PtreeTranslateIf (Ptree *p)
virtual PtreeTranslateSwitch (Ptree *p)
virtual PtreeTranslateWhile (Ptree *p)
virtual PtreeTranslateDo (Ptree *p)
virtual PtreeTranslateFor (Ptree *p)
virtual PtreeTranslateTry (Ptree *p)
virtual PtreeTranslateBreak (Ptree *p)
virtual PtreeTranslateContinue (Ptree *p)
virtual PtreeTranslateReturn (Ptree *p)
virtual PtreeTranslateGoto (Ptree *p)
virtual PtreeTranslateCase (Ptree *p)
virtual PtreeTranslateDefault (Ptree *p)
virtual PtreeTranslateLabel (Ptree *p)
virtual PtreeTranslateExprStatement (Ptree *p)
virtual PtreeTranslateComma (Ptree *p)
virtual PtreeTranslateAssign (Ptree *p)
virtual PtreeTranslateCond (Ptree *p)
virtual PtreeTranslateInfix (Ptree *p)
virtual PtreeTranslatePm (Ptree *p)
virtual PtreeTranslateCast (Ptree *p)
virtual PtreeTranslateUnary (Ptree *p)
virtual PtreeTranslateThrow (Ptree *p)
virtual PtreeTranslateSizeof (Ptree *p)
virtual PtreeTranslateNew (Ptree *p)
virtual PtreeTranslateDelete (Ptree *p)
virtual PtreeTranslateArray (Ptree *p)
virtual PtreeTranslateFuncall (Ptree *p)
virtual PtreeTranslatePostfix (Ptree *p)
virtual PtreeTranslateUserStatement (Ptree *p)
virtual PtreeTranslateDotMember (Ptree *p)
virtual PtreeTranslateArrowMember (Ptree *p)
virtual PtreeTranslateParen (Ptree *p)
virtual PtreeTranslateStaticUserStatement (Ptree *p)
virtual PtreeTranslateFstyleCast (Ptree *p)
virtual PtreeTranslateVariable (Ptree *p)
virtual PtreeTranslateThis (Ptree *p)
virtual bool IsClassWalker ()
virtual void TypeofPtree (Ptree *, TypeInfo &)
virtual PtreeTranslateTemplateInstantiation (Ptree *, Ptree *, Ptree *, Class *)
virtual PtreeTranslateTemplateClass (Ptree *, Ptree *)
virtual PtreeTranslateTemplateFunction (Ptree *, Ptree *)
virtual PtreeTranslateStorageSpecifiers (Ptree *)
virtual PtreeTranslateDeclarators (Ptree *)
virtual PtreeTranslateDeclarator (bool, PtreeDeclarator *)
virtual PtreeTranslateArgDeclList (bool, Ptree *, Ptree *)
virtual PtreeTranslateInitializeArgs (PtreeDeclarator *, Ptree *)
virtual PtreeTranslateAssignInitializer (PtreeDeclarator *, Ptree *)
virtual PtreeTranslateFunctionImplementation (Ptree *)
virtual PtreeRecordArgsAndTranslateFbody (Class *, Ptree *args, Ptree *body)
virtual PtreeTranslateFunctionBody (Ptree *)
virtual PtreeTranslateClassSpec (Ptree *, Ptree *, Ptree *, Class *)
virtual PtreeTranslateTypespecifier (Ptree *)
virtual PtreeTranslateNew2 (Ptree *, Ptree *, Ptree *, Ptree *, Ptree *, Ptree *, Ptree *)
virtual PtreeTranslateNew3 (Ptree *type)
virtual ClassMakeTemplateInstantiationMetaobject (Ptree *full_class_spec, Ptree *userkey, Ptree *class_spec)
virtual ClassMakeTemplateClassMetaobject (Ptree *, Ptree *, Ptree *)
virtual ClassMakeClassMetaobject (Ptree *, Ptree *, Ptree *)
virtual void TypeofComma (Ptree *, TypeInfo &)
virtual void TypeofAssign (Ptree *, TypeInfo &)
virtual void TypeofCond (Ptree *, TypeInfo &)
virtual void TypeofInfix (Ptree *, TypeInfo &)
virtual void TypeofPm (Ptree *, TypeInfo &)
virtual void TypeofCast (Ptree *, TypeInfo &)
virtual void TypeofUnary (Ptree *, TypeInfo &)
virtual void TypeofThrow (Ptree *, TypeInfo &)
virtual void TypeofSizeof (Ptree *, TypeInfo &)
virtual void TypeofNew (Ptree *, TypeInfo &)
virtual void TypeofDelete (Ptree *, TypeInfo &)
virtual void TypeofThis (Ptree *, TypeInfo &)
virtual void TypeofVariable (Ptree *, TypeInfo &)
virtual void TypeofFstyleCast (Ptree *, TypeInfo &)
virtual void TypeofArray (Ptree *, TypeInfo &)
virtual void TypeofFuncall (Ptree *, TypeInfo &)
virtual void TypeofPostfix (Ptree *, TypeInfo &)
virtual void TypeofUserStatement (Ptree *, TypeInfo &)
virtual void TypeofDotMember (Ptree *, TypeInfo &)
virtual void TypeofArrowMember (Ptree *, TypeInfo &)
virtual void TypeofParen (Ptree *, TypeInfo &)
virtual void TypeofStaticUserStatement (Ptree *, TypeInfo &)

Private Attributes

Source_s
Returntype _saved

Detailed Description

template<typename Returntype>
class Ptree_visitor< Returntype >

Base class for visitors of a PTree hierarchy.

This class template serves as an adapter to OpenC++'s Walker hierarchy, which is already supported by PTree and friends. Currently, this class recursively traverses a parse tree. Users can overload the visit() functions to add their own node-specific code, and call this class' visit() to do the recursion.

Definition at line 31 of file ptree_visitor.h.


Member Typedef Documentation

template<typename Returntype>
typedef Walker Ptree_visitor< Returntype >::Super [private]
 

Reimplemented in Paranoid_visitor< T >, Ptree_program_visitor< Returntype >, Translate_visitor, Paranoid_visitor< Annotator_RT >, Paranoid_visitor< Tpl_RT >, Paranoid_visitor< Expr_result >, Ptree_program_visitor< Annotator_RT >, Ptree_program_visitor< T >, Ptree_program_visitor< bool >, Ptree_program_visitor< Tpl_RT >, and Ptree_program_visitor< Expr_result >.

Definition at line 34 of file ptree_visitor.h.


Constructor & Destructor Documentation

template<typename Returntype>
Ptree_visitor< Returntype >::Ptree_visitor Source   s [explicit]
 

Definition at line 411 of file ptree_visitor.h.

template<typename Returntype>
Ptree_visitor< Returntype >::~Ptree_visitor   [virtual]
 

Definition at line 419 of file ptree_visitor.h.


Member Function Documentation

template<typename Returntype>
Returntype Ptree_visitor< Returntype >::default_action Ptree   p [protected, virtual]
 

Default action taken when a visit_*() function has not been overloaded.

Overload this function to change the default action. The standard default action is to call recurse() on the argument.

Parameters:
p  parse subtree
Returns:
result of default action

Reimplemented in Paranoid_visitor< T >, Flat_maker, Paranoid_visitor< Annotator_RT >, Paranoid_visitor< Tpl_RT >, and Paranoid_visitor< Expr_result >.

Definition at line 491 of file ptree_visitor.h.

References Ptree_visitor< Returntype >::recurse().

Referenced by Ptree_visitor< Returntype >::visit_accessdecl(), Ptree_visitor< Returntype >::visit_accessspec(), Ptree_visitor< Returntype >::visit_array(), Ptree_visitor< Returntype >::visit_arrowmember(), Ptree_visitor< Returntype >::visit_assign(), Ptree_visitor< Returntype >::visit_block(), Ptree_visitor< Returntype >::visit_brace(), Ptree_visitor< Returntype >::visit_break(), Ptree_visitor< Returntype >::visit_case(), Ptree_visitor< Returntype >::visit_cast(), Ptree_visitor< Returntype >::visit_classbody(), Ptree_visitor< Returntype >::visit_classspec(), Ptree_visitor< Returntype >::visit_comma(), Ptree_visitor< Returntype >::visit_cond(), Ptree_visitor< Returntype >::visit_continue(), Ptree_visitor< Returntype >::visit_declaration(), Ptree_visitor< Returntype >::visit_declarator(), Ptree_visitor< Returntype >::visit_default(), Ptree_visitor< Returntype >::visit_delete(), Ptree_visitor< Returntype >::visit_do(), Ptree_visitor< Returntype >::visit_dotmember(), Ptree_visitor< Returntype >::visit_enumspec(), Ptree_visitor< Returntype >::visit_expr(), Ptree_visitor< Returntype >::visit_exprstatement(), Ptree_visitor< Returntype >::visit_externtemplate(), Ptree_visitor< Returntype >::visit_for(), Ptree_visitor< Returntype >::visit_fstylecastexpr(), Ptree_visitor< Returntype >::visit_funcall(), Ptree_visitor< Returntype >::visit_goto(), Ptree_visitor< Returntype >::visit_if(), Ptree_visitor< Returntype >::visit_infix(), Ptree_visitor< Returntype >::visit_label(), Ptree_visitor< Returntype >::visit_leaf(), Ptree_visitor< Returntype >::visit_linkagespec(), Ptree_visitor< Returntype >::visit_name(), Ptree_visitor< Returntype >::visit_namespacespec(), Ptree_visitor< Returntype >::visit_new(), Ptree_visitor< Returntype >::visit_nonleaf(), Flat_maker::visit_nonleaf(), Ptree_visitor< Returntype >::visit_null(), Ptree_visitor< Returntype >::visit_paren(), Ptree_visitor< Returntype >::visit_pm(), Ptree_visitor< Returntype >::visit_postfix(), Ptree_visitor< Returntype >::visit_return(), Ptree_visitor< Returntype >::visit_sizeof(), Ptree_visitor< Returntype >::visit_staticuserstatement(), Ptree_visitor< Returntype >::visit_switch(), Ptree_visitor< Returntype >::visit_templatedecl(), Ptree_visitor< Returntype >::visit_templateinstantiation(), Ptree_visitor< Returntype >::visit_this(), Ptree_visitor< Returntype >::visit_throw(), Ptree_visitor< Returntype >::visit_try(), Ptree_visitor< Returntype >::visit_typedef(), Ptree_visitor< Returntype >::visit_unary(), Ptree_visitor< Returntype >::visit_useraccessspec(), Ptree_visitor< Returntype >::visit_userstatement(), Ptree_visitor< Returntype >::visit_using(), and Ptree_visitor< Returntype >::visit_while().

template<typename Returntype>
Source* Ptree_visitor< Returntype >::get_source   const [inline]
 

Definition at line 44 of file ptree_visitor.h.

template<typename Returntype>
bool Ptree_visitor< Returntype >::IsClassWalker   [private, virtual]
 

Reimplemented from Walker.

Definition at line 1423 of file ptree_visitor.h.

References Ptree_visitor< Returntype >::runtime_error().

template<typename Returntype>
Class * Ptree_visitor< Returntype >::MakeClassMetaobject Ptree  ,
Ptree  ,
Ptree  
[private, virtual]
 

Reimplemented from Walker.

Definition at line 1485 of file ptree_visitor.h.

References Ptree_visitor< Returntype >::runtime_error().

template<typename Returntype>
Class * Ptree_visitor< Returntype >::MakeTemplateClassMetaobject Ptree  ,
Ptree  ,
Ptree  
[private, virtual]
 

Reimplemented from Walker.

Definition at line 1482 of file ptree_visitor.h.

References Ptree_visitor< Returntype >::runtime_error().

template<typename Returntype>
Class * Ptree_visitor< Returntype >::MakeTemplateInstantiationMetaobject Ptree   full_class_spec,
Ptree   userkey,
Ptree   class_spec
[private, virtual]
 

Reimplemented from Walker.

Definition at line 1479 of file ptree_visitor.h.

References Ptree_visitor< Returntype >::runtime_error().

template<typename Returntype>
Ptree * Ptree_visitor< Returntype >::RecordArgsAndTranslateFbody Class  ,
Ptree   args,
Ptree   body
[private, virtual]
 

Reimplemented from Walker.

Definition at line 1459 of file ptree_visitor.h.

References Ptree_visitor< Returntype >::runtime_error().

template<typename Returntype>
Returntype Ptree_visitor< Returntype >::recurse Ptree   p [protected]
 

Recursively visit nested nodes.

(You should not overload this function. If you want to change the default action, overload default() instead.)

Parameters:
p  parse subtree
Returns:
result of visitation of last subtree of p

Definition at line 457 of file ptree_visitor.h.

References Ptree::Car(), Ptree::Cdr(), Ptree::IsLeaf(), and Ptree_visitor< Returntype >::visit().

Referenced by Ptree_visitor< Returntype >::default_action().

template<typename Returntype>
void Ptree_visitor< Returntype >::runtime_error   [protected, virtual]
 

Definition at line 971 of file ptree_visitor.h.

Referenced by Ptree_visitor< Returntype >::IsClassWalker(), Ptree_visitor< Returntype >::MakeClassMetaobject(), Ptree_visitor< Returntype >::MakeTemplateClassMetaobject(), Ptree_visitor< Returntype >::MakeTemplateInstantiationMetaobject(), Ptree_visitor< Returntype >::RecordArgsAndTranslateFbody(), Ptree_visitor< Returntype >::TranslateArgDeclList(), Ptree_visitor< Returntype >::TranslateAssignInitializer(), Ptree_visitor< Returntype >::TranslateClassSpec(), Ptree_visitor< Returntype >::TranslateDeclarator(), Ptree_visitor< Returntype >::TranslateDeclarators(), Ptree_visitor< Returntype >::TranslateFunctionBody(), Ptree_visitor< Returntype >::TranslateFunctionImplementation(), Ptree_visitor< Returntype >::TranslateInitializeArgs(), Ptree_visitor< Returntype >::TranslateNew2(), Ptree_visitor< Returntype >::TranslateNew3(), Ptree_visitor< Returntype >::TranslateStorageSpecifiers(), Ptree_visitor< Returntype >::TranslateTemplateClass(), Ptree_visitor< Returntype >::TranslateTemplateFunction(), Ptree_visitor< Returntype >::TranslateTemplateInstantiation(), Ptree_visitor< Returntype >::TranslateTypespecifier(), Ptree_visitor< Returntype >::TypeofArray(), Ptree_visitor< Returntype >::TypeofArrowMember(), Ptree_visitor< Returntype >::TypeofAssign(), Ptree_visitor< Returntype >::TypeofCast(), Ptree_visitor< Returntype >::TypeofComma(), Ptree_visitor< Returntype >::TypeofCond(), Ptree_visitor< Returntype >::TypeofDelete(), Ptree_visitor< Returntype >::TypeofDotMember(), Ptree_visitor< Returntype >::TypeofFstyleCast(), Ptree_visitor< Returntype >::TypeofFuncall(), Ptree_visitor< Returntype >::TypeofInfix(), Ptree_visitor< Returntype >::TypeofNew(), Ptree_visitor< Returntype >::TypeofParen(), Ptree_visitor< Returntype >::TypeofPm(), Ptree_visitor< Returntype >::TypeofPostfix(), Ptree_visitor< Returntype >::TypeofPtree(), Ptree_visitor< Returntype >::TypeofSizeof(), Ptree_visitor< Returntype >::TypeofStaticUserStatement(), Ptree_visitor< Returntype >::TypeofThis(), Ptree_visitor< Returntype >::TypeofThrow(), Ptree_visitor< Returntype >::TypeofUnary(), Ptree_visitor< Returntype >::TypeofUserStatement(), and Ptree_visitor< Returntype >::TypeofVariable().

template<typename Returntype>
Ptree * Ptree_visitor< Returntype >::TranslateAccessDecl Ptree   p [private, virtual]
 

Reimplemented from Walker.

Definition at line 1116 of file ptree_visitor.h.

References Ptree_visitor< Returntype >::_saved, and Ptree_visitor< Returntype >::visit_accessdecl().

template<typename Returntype>
Ptree * Ptree_visitor< Returntype >::TranslateAccessSpec Ptree   p [private, virtual]
 

Reimplemented from Walker.

Definition at line 1108 of file ptree_visitor.h.

References Ptree_visitor< Returntype >::_saved, and Ptree_visitor< Returntype >::visit_accessspec().

template<typename Returntype>
Ptree * Ptree_visitor< Returntype >::TranslateArgDeclList bool   ,
Ptree  ,
Ptree  
[private, virtual]
 

Reimplemented from Walker.

Definition at line 1447 of file ptree_visitor.h.

References Ptree_visitor< Returntype >::runtime_error().

template<typename Returntype>
Ptree * Ptree_visitor< Returntype >::TranslateArray Ptree   p [private, virtual]
 

Reimplemented from Walker.

Definition at line 1332 of file ptree_visitor.h.

References Ptree_visitor< Returntype >::_saved, and Ptree_visitor< Returntype >::visit_array().

template<typename Returntype>
Ptree * Ptree_visitor< Returntype >::TranslateArrowMember Ptree   p [private, virtual]
 

Reimplemented from Walker.

Definition at line 1372 of file ptree_visitor.h.

References Ptree_visitor< Returntype >::_saved, and Ptree_visitor< Returntype >::visit_arrowmember().

template<typename Returntype>
Ptree * Ptree_visitor< Returntype >::TranslateAssign Ptree   p [private, virtual]
 

Reimplemented from Walker.

Definition at line 1252 of file ptree_visitor.h.

References Ptree_visitor< Returntype >::_saved, and Ptree_visitor< Returntype >::visit_assign().

template<typename Returntype>
Ptree * Ptree_visitor< Returntype >::TranslateAssignInitializer PtreeDeclarator  ,
Ptree  
[private, virtual]
 

Reimplemented from Walker.

Definition at line 1453 of file ptree_visitor.h.

References Ptree_visitor< Returntype >::runtime_error().

template<typename Returntype>
Ptree * Ptree_visitor< Returntype >::TranslateBlock Ptree   p [private, virtual]
 

Reimplemented from Walker.

Definition at line 1076 of file ptree_visitor.h.

References Ptree_visitor< Returntype >::_saved, and Ptree_visitor< Returntype >::visit_block().

template<typename Returntype>
Ptree * Ptree_visitor< Returntype >::TranslateBrace Ptree   p [private, virtual]
 

Reimplemented from Walker.

Definition at line 1068 of file ptree_visitor.h.

References Ptree_visitor< Returntype >::_saved, and Ptree_visitor< Returntype >::visit_brace().

template<typename Returntype>
Ptree * Ptree_visitor< Returntype >::TranslateBreak Ptree   p [private, virtual]
 

Reimplemented from Walker.

Definition at line 1180 of file ptree_visitor.h.

References Ptree_visitor< Returntype >::_saved, and Ptree_visitor< Returntype >::visit_break().

template<typename Returntype>
Ptree * Ptree_visitor< Returntype >::TranslateCase Ptree   p [private, virtual]
 

Reimplemented from Walker.

Definition at line 1212 of file ptree_visitor.h.

References Ptree_visitor< Returntype >::_saved, and Ptree_visitor< Returntype >::visit_case().

template<typename Returntype>
Ptree * Ptree_visitor< Returntype >::TranslateCast Ptree   p [private, virtual]
 

Reimplemented from Walker.

Definition at line 1284 of file ptree_visitor.h.

References Ptree_visitor< Returntype >::_saved, and Ptree_visitor< Returntype >::visit_cast().

template<typename Returntype>
Ptree * Ptree_visitor< Returntype >::TranslateClassBody Ptree   p,
Ptree  ,
Class  
[private, virtual]
 

Reimplemented from Walker.

Definition at line 1084 of file ptree_visitor.h.

References Ptree_visitor< Returntype >::_saved, and Ptree_visitor< Returntype >::visit_classbody().

template<typename Returntype>
Ptree * Ptree_visitor< Returntype >::TranslateClassSpec Ptree  ,
Ptree  ,
Ptree  ,
Class  
[private, virtual]
 

Reimplemented from Walker.

Definition at line 1465 of file ptree_visitor.h.

References Ptree_visitor< Returntype >::runtime_error().

template<typename Returntype>
Ptree * Ptree_visitor< Returntype >::TranslateClassSpec Ptree   p [private, virtual]
 

Reimplemented from Walker.

Definition at line 1092 of file ptree_visitor.h.

References Ptree_visitor< Returntype >::_saved, and Ptree_visitor< Returntype >::visit_classspec().

template<typename Returntype>
Ptree * Ptree_visitor< Returntype >::TranslateComma Ptree   p [private, virtual]
 

Reimplemented from Walker.

Definition at line 1244 of file ptree_visitor.h.

References Ptree_visitor< Returntype >::_saved, and Ptree_visitor< Returntype >::visit_comma().

template<typename Returntype>
Ptree * Ptree_visitor< Returntype >::TranslateCond Ptree   p [private, virtual]
 

Reimplemented from Walker.

Definition at line 1260 of file ptree_visitor.h.

References Ptree_visitor< Returntype >::_saved, and Ptree_visitor< Returntype >::visit_cond().

template<typename Returntype>
Ptree * Ptree_visitor< Returntype >::TranslateContinue Ptree   p [private, virtual]
 

Reimplemented from Walker.

Definition at line 1188 of file ptree_visitor.h.

References Ptree_visitor< Returntype >::_saved, and Ptree_visitor< Returntype >::visit_continue().

template<typename Returntype>
Ptree * Ptree_visitor< Returntype >::TranslateDeclaration Ptree   p [private, virtual]
 

Reimplemented from Walker.

Definition at line 1060 of file ptree_visitor.h.

References Ptree_visitor< Returntype >::_saved, and Ptree_visitor< Returntype >::visit_declaration().

template<typename Returntype>
Ptree * Ptree_visitor< Returntype >::TranslateDeclarator bool   ,
PtreeDeclarator  
[private, virtual]
 

Reimplemented from Walker.

Definition at line 1444 of file ptree_visitor.h.

References Ptree_visitor< Returntype >::runtime_error().

template<typename Returntype>
Ptree * Ptree_visitor< Returntype >::TranslateDeclarators Ptree   [private, virtual]
 

Reimplemented from Walker.

Definition at line 1441 of file ptree_visitor.h.

References Ptree_visitor< Returntype >::runtime_error().

template<typename Returntype>
Ptree * Ptree_visitor< Returntype >::TranslateDefault Ptree   p [private, virtual]
 

Reimplemented from Walker.

Definition at line 1220 of file ptree_visitor.h.

References Ptree_visitor< Returntype >::_saved, and Ptree_visitor< Returntype >::visit_default().

template<typename Returntype>
Ptree * Ptree_visitor< Returntype >::TranslateDelete Ptree   p [private, virtual]
 

Reimplemented from Walker.

Definition at line 1324 of file ptree_visitor.h.

References Ptree_visitor< Returntype >::_saved, and Ptree_visitor< Returntype >::visit_delete().

template<typename Returntype>
Ptree * Ptree_visitor< Returntype >::TranslateDo Ptree   p [private, virtual]
 

Reimplemented from Walker.

Definition at line 1156 of file ptree_visitor.h.

References Ptree_visitor< Returntype >::_saved, and Ptree_visitor< Returntype >::visit_do().

template<typename Returntype>
Ptree * Ptree_visitor< Returntype >::TranslateDotMember Ptree   p [private, virtual]
 

Reimplemented from Walker.

Definition at line 1364 of file ptree_visitor.h.

References Ptree_visitor< Returntype >::_saved, and Ptree_visitor< Returntype >::visit_dotmember().

template<typename Returntype>
Ptree * Ptree_visitor< Returntype >::TranslateEnumSpec Ptree   p [private, virtual]
 

Reimplemented from Walker.

Definition at line 1100 of file ptree_visitor.h.

References Ptree_visitor< Returntype >::_saved, and Ptree_visitor< Returntype >::visit_enumspec().

template<typename Returntype>
Ptree * Ptree_visitor< Returntype >::TranslateExprStatement Ptree   p [private, virtual]
 

Reimplemented from Walker.

Definition at line 1236 of file ptree_visitor.h.

References Ptree_visitor< Returntype >::_saved, and Ptree_visitor< Returntype >::visit_exprstatement().

template<typename Returntype>
Ptree * Ptree_visitor< Returntype >::TranslateExternTemplate Ptree   p [private, virtual]
 

Reimplemented from Walker.

Definition at line 1028 of file ptree_visitor.h.

References Ptree_visitor< Returntype >::_saved, and Ptree_visitor< Returntype >::visit_externtemplate().

template<typename Returntype>
Ptree * Ptree_visitor< Returntype >::TranslateFor Ptree   p [private, virtual]
 

Reimplemented from Walker.

Definition at line 1164 of file ptree_visitor.h.

References Ptree_visitor< Returntype >::_saved, and Ptree_visitor< Returntype >::visit_for().

template<typename Returntype>
Ptree * Ptree_visitor< Returntype >::TranslateFstyleCast Ptree   p [private, virtual]
 

Reimplemented from Walker.

Definition at line 1396 of file ptree_visitor.h.

References Ptree_visitor< Returntype >::_saved, and Ptree_visitor< Returntype >::visit_fstylecastexpr().

template<typename Returntype>
Ptree * Ptree_visitor< Returntype >::TranslateFuncall Ptree   p [private, virtual]
 

Reimplemented from Walker.

Definition at line 1340 of file ptree_visitor.h.

References Ptree_visitor< Returntype >::_saved, and Ptree_visitor< Returntype >::visit_funcall().

template<typename Returntype>
Ptree * Ptree_visitor< Returntype >::TranslateFunctionBody Ptree   [private, virtual]
 

Reimplemented from Walker.

Definition at line 1462 of file ptree_visitor.h.

References Ptree_visitor< Returntype >::runtime_error().

template<typename Returntype>
Ptree * Ptree_visitor< Returntype >::TranslateFunctionImplementation Ptree   [private, virtual]
 

Reimplemented from Walker.

Definition at line 1456 of file ptree_visitor.h.

References Ptree_visitor< Returntype >::runtime_error().

template<typename Returntype>
Ptree * Ptree_visitor< Returntype >::TranslateGoto Ptree   p [private, virtual]
 

Reimplemented from Walker.

Definition at line 1204 of file ptree_visitor.h.

References Ptree_visitor< Returntype >::_saved, and Ptree_visitor< Returntype >::visit_goto().

template<typename Returntype>
Ptree * Ptree_visitor< Returntype >::TranslateIf Ptree   p [private, virtual]
 

Reimplemented from Walker.

Definition at line 1132 of file ptree_visitor.h.

References Ptree_visitor< Returntype >::_saved, and Ptree_visitor< Returntype >::visit_if().

template<typename Returntype>
Ptree * Ptree_visitor< Returntype >::TranslateInfix Ptree   p [private, virtual]
 

Reimplemented from Walker.

Definition at line 1268 of file ptree_visitor.h.

References Ptree_visitor< Returntype >::_saved, and Ptree_visitor< Returntype >::visit_infix().

template<typename Returntype>
Ptree * Ptree_visitor< Returntype >::TranslateInitializeArgs PtreeDeclarator  ,
Ptree  
[private, virtual]
 

Reimplemented from Walker.

Definition at line 1450 of file ptree_visitor.h.

References Ptree_visitor< Returntype >::runtime_error().

template<typename Returntype>
Ptree * Ptree_visitor< Returntype >::TranslateLabel Ptree   p [private, virtual]
 

Reimplemented from Walker.

Definition at line 1228 of file ptree_visitor.h.

References Ptree_visitor< Returntype >::_saved, and Ptree_visitor< Returntype >::visit_label().

template<typename Returntype>
Ptree * Ptree_visitor< Returntype >::TranslateLinkageSpec Ptree   p [private, virtual]
 

Reimplemented from Walker.

Definition at line 1036 of file ptree_visitor.h.

References Ptree_visitor< Returntype >::_saved, and Ptree_visitor< Returntype >::visit_linkagespec().

template<typename Returntype>
Ptree * Ptree_visitor< Returntype >::TranslateNamespaceSpec Ptree   p [private, virtual]
 

Reimplemented from Walker.

Definition at line 1044 of file ptree_visitor.h.

References Ptree_visitor< Returntype >::_saved, and Ptree_visitor< Returntype >::visit_namespacespec().

template<typename Returntype>
Ptree * Ptree_visitor< Returntype >::TranslateNew Ptree   p [private, virtual]
 

Reimplemented from Walker.

Definition at line 1316 of file ptree_visitor.h.

References Ptree_visitor< Returntype >::_saved, and Ptree_visitor< Returntype >::visit_new().

template<typename Returntype>
Ptree * Ptree_visitor< Returntype >::TranslateNew2 Ptree  ,
Ptree  ,
Ptree  ,
Ptree  ,
Ptree  ,
Ptree  ,
Ptree  
[private, virtual]
 

Reimplemented from Walker.

Definition at line 1471 of file ptree_visitor.h.

References Ptree_visitor< Returntype >::runtime_error().

template<typename Returntype>
Ptree * Ptree_visitor< Returntype >::TranslateNew3 Ptree   type [private, virtual]
 

Reimplemented from Walker.

Definition at line 1474 of file ptree_visitor.h.

References Ptree_visitor< Returntype >::runtime_error().

template<typename Returntype>
Ptree * Ptree_visitor< Returntype >::TranslateParen Ptree   p [private, virtual]
 

Reimplemented from Walker.

Definition at line 1380 of file ptree_visitor.h.

References Ptree_visitor< Returntype >::_saved, and Ptree_visitor< Returntype >::visit_paren().

template<typename Returntype>
Ptree * Ptree_visitor< Returntype >::TranslatePm Ptree   p [private, virtual]
 

Reimplemented from Walker.

Definition at line 1276 of file ptree_visitor.h.

References Ptree_visitor< Returntype >::_saved, and Ptree_visitor< Returntype >::visit_pm().

template<typename Returntype>
Ptree * Ptree_visitor< Returntype >::TranslatePostfix Ptree   p [private, virtual]
 

Reimplemented from Walker.

Definition at line 1348 of file ptree_visitor.h.

References Ptree_visitor< Returntype >::_saved, and Ptree_visitor< Returntype >::visit_postfix().

template<typename Returntype>
Ptree * Ptree_visitor< Returntype >::TranslatePtree Ptree   p [private, virtual]
 

Reimplemented from Walker.

Definition at line 985 of file ptree_visitor.h.

References Ptree_visitor< Returntype >::_saved, Ptree::IsLeaf(), Ptree_visitor< Returntype >::visit_declarator(), Ptree_visitor< Returntype >::visit_leaf(), and Ptree_visitor< Returntype >::visit_nonleaf().

template<typename Returntype>
Ptree * Ptree_visitor< Returntype >::TranslateReturn Ptree   p [private, virtual]
 

Reimplemented from Walker.

Definition at line 1196 of file ptree_visitor.h.

References Ptree_visitor< Returntype >::_saved, and Ptree_visitor< Returntype >::visit_return().

template<typename Returntype>
Ptree * Ptree_visitor< Returntype >::TranslateSizeof Ptree   p [private, virtual]
 

Reimplemented from Walker.

Definition at line 1308 of file ptree_visitor.h.

References Ptree_visitor< Returntype >::_saved, and Ptree_visitor< Returntype >::visit_sizeof().

template<typename Returntype>
Ptree * Ptree_visitor< Returntype >::TranslateStaticUserStatement Ptree   p [private, virtual]
 

Reimplemented from Walker.

Definition at line 1388 of file ptree_visitor.h.

References Ptree_visitor< Returntype >::_saved, and Ptree_visitor< Returntype >::visit_staticuserstatement().

template<typename Returntype>
Ptree * Ptree_visitor< Returntype >::TranslateStorageSpecifiers Ptree   [private, virtual]
 

Reimplemented from Walker.

Definition at line 1438 of file ptree_visitor.h.

References Ptree_visitor< Returntype >::runtime_error().

template<typename Returntype>
Ptree * Ptree_visitor< Returntype >::TranslateSwitch Ptree   p [private, virtual]
 

Reimplemented from Walker.

Definition at line 1140 of file ptree_visitor.h.

References Ptree_visitor< Returntype >::_saved, and Ptree_visitor< Returntype >::visit_switch().

template<typename Returntype>
Ptree * Ptree_visitor< Returntype >::TranslateTemplateClass Ptree  ,
Ptree  
[private, virtual]
 

Reimplemented from Walker.

Definition at line 1432 of file ptree_visitor.h.

References Ptree_visitor< Returntype >::runtime_error().

template<typename Returntype>
Ptree * Ptree_visitor< Returntype >::TranslateTemplateDecl Ptree   p [private, virtual]
 

Reimplemented from Walker.

Definition at line 1011 of file ptree_visitor.h.

References Ptree_visitor< Returntype >::_saved, and Ptree_visitor< Returntype >::visit_templatedecl().

template<typename Returntype>
Ptree * Ptree_visitor< Returntype >::TranslateTemplateFunction Ptree  ,
Ptree  
[private, virtual]
 

Reimplemented from Walker.

Definition at line 1435 of file ptree_visitor.h.

References Ptree_visitor< Returntype >::runtime_error().

template<typename Returntype>
Ptree * Ptree_visitor< Returntype >::TranslateTemplateInstantiation Ptree  ,
Ptree  ,
Ptree  ,
Class  
[private, virtual]
 

Reimplemented from Walker.

Definition at line 1429 of file ptree_visitor.h.

References Ptree_visitor< Returntype >::runtime_error().

template<typename Returntype>
Ptree * Ptree_visitor< Returntype >::TranslateTemplateInstantiation Ptree   p [private, virtual]
 

Reimplemented from Walker.

Definition at line 1019 of file ptree_visitor.h.

References Ptree_visitor< Returntype >::_saved, and Ptree_visitor< Returntype >::visit_templateinstantiation().

template<typename Returntype>
Ptree * Ptree_visitor< Returntype >::TranslateThis Ptree   p [private, virtual]
 

Reimplemented from Walker.

Definition at line 1413 of file ptree_visitor.h.

References Ptree_visitor< Returntype >::_saved, and Ptree_visitor< Returntype >::visit_this().

template<typename Returntype>
Ptree * Ptree_visitor< Returntype >::TranslateThrow Ptree   p [private, virtual]
 

Reimplemented from Walker.

Definition at line 1300 of file ptree_visitor.h.

References Ptree_visitor< Returntype >::_saved, and Ptree_visitor< Returntype >::visit_throw().

template<typename Returntype>
Ptree * Ptree_visitor< Returntype >::TranslateTry Ptree   p [private, virtual]
 

Reimplemented from Walker.

Definition at line 1172 of file ptree_visitor.h.

References Ptree_visitor< Returntype >::_saved, and Ptree_visitor< Returntype >::visit_try().

template<typename Returntype>
Ptree * Ptree_visitor< Returntype >::TranslateTypedef Ptree   p [private, virtual]
 

Reimplemented from Walker.

Definition at line 1003 of file ptree_visitor.h.

References Ptree_visitor< Returntype >::_saved, and Ptree_visitor< Returntype >::visit_typedef().

template<typename Returntype>
Ptree * Ptree_visitor< Returntype >::TranslateTypespecifier Ptree   [private, virtual]
 

Reimplemented from Walker.

Definition at line 1468 of file ptree_visitor.h.

References Ptree_visitor< Returntype >::runtime_error().

template<typename Returntype>
Ptree * Ptree_visitor< Returntype >::TranslateUnary Ptree   p [private, virtual]
 

Reimplemented from Walker.

Definition at line 1292 of file ptree_visitor.h.

References Ptree_visitor< Returntype >::_saved, and Ptree_visitor< Returntype >::visit_unary().

template<typename Returntype>
Ptree * Ptree_visitor< Returntype >::TranslateUserAccessSpec Ptree   p [private, virtual]
 

Reimplemented from Walker.

Definition at line 1124 of file ptree_visitor.h.

References Ptree_visitor< Returntype >::_saved, and Ptree_visitor< Returntype >::visit_useraccessspec().

template<typename Returntype>
Ptree * Ptree_visitor< Returntype >::TranslateUserStatement Ptree   p [private, virtual]
 

Reimplemented from Walker.

Definition at line 1356 of file ptree_visitor.h.

References Ptree_visitor< Returntype >::_saved, and Ptree_visitor< Returntype >::visit_userstatement().

template<typename Returntype>
Ptree * Ptree_visitor< Returntype >::TranslateUsing Ptree   p [private, virtual]
 

Reimplemented from Walker.

Definition at line 1052 of file ptree_visitor.h.

References Ptree_visitor< Returntype >::_saved, and Ptree_visitor< Returntype >::visit_using().

template<typename Returntype>
Ptree * Ptree_visitor< Returntype >::TranslateVariable Ptree   p [private, virtual]
 

Reimplemented from Walker.

Definition at line 1404 of file ptree_visitor.h.

References Ptree_visitor< Returntype >::_saved, and Ptree_visitor< Returntype >::visit_name().

template<typename Returntype>
Ptree * Ptree_visitor< Returntype >::TranslateWhile Ptree   p [private, virtual]
 

Reimplemented from Walker.

Definition at line 1148 of file ptree_visitor.h.

References Ptree_visitor< Returntype >::_saved, and Ptree_visitor< Returntype >::visit_while().

template<typename Returntype>
void Ptree_visitor< Returntype >::TypeofArray Ptree  ,
TypeInfo  
[private, virtual]
 

Reimplemented from Walker.

Definition at line 1532 of file ptree_visitor.h.

References Ptree_visitor< Returntype >::runtime_error().

template<typename Returntype>
void Ptree_visitor< Returntype >::TypeofArrowMember Ptree  ,
TypeInfo  
[private, virtual]
 

Reimplemented from Walker.

Definition at line 1547 of file ptree_visitor.h.

References Ptree_visitor< Returntype >::runtime_error().

template<typename Returntype>
void Ptree_visitor< Returntype >::TypeofAssign Ptree  ,
TypeInfo  
[private, virtual]
 

Reimplemented from Walker.

Definition at line 1493 of file ptree_visitor.h.

References Ptree_visitor< Returntype >::runtime_error().

template<typename Returntype>
void Ptree_visitor< Returntype >::TypeofCast Ptree  ,
TypeInfo  
[private, virtual]
 

Reimplemented from Walker.

Definition at line 1505 of file ptree_visitor.h.

References Ptree_visitor< Returntype >::runtime_error().

template<typename Returntype>
void Ptree_visitor< Returntype >::TypeofComma Ptree  ,
TypeInfo  
[private, virtual]
 

Reimplemented from Walker.

Definition at line 1490 of file ptree_visitor.h.

References Ptree_visitor< Returntype >::runtime_error().

template<typename Returntype>
void Ptree_visitor< Returntype >::TypeofCond Ptree  ,
TypeInfo  
[private, virtual]
 

Reimplemented from Walker.

Definition at line 1496 of file ptree_visitor.h.

References Ptree_visitor< Returntype >::runtime_error().

template<typename Returntype>
void Ptree_visitor< Returntype >::TypeofDelete Ptree  ,
TypeInfo  
[private, virtual]
 

Reimplemented from Walker.

Definition at line 1520 of file ptree_visitor.h.

References Ptree_visitor< Returntype >::runtime_error().

template<typename Returntype>
void Ptree_visitor< Returntype >::TypeofDotMember Ptree  ,
TypeInfo  
[private, virtual]
 

Reimplemented from Walker.

Definition at line 1544 of file ptree_visitor.h.

References Ptree_visitor< Returntype >::runtime_error().

template<typename Returntype>
void Ptree_visitor< Returntype >::TypeofFstyleCast Ptree  ,
TypeInfo  
[private, virtual]
 

Reimplemented from Walker.

Definition at line 1529 of file ptree_visitor.h.

References Ptree_visitor< Returntype >::runtime_error().

template<typename Returntype>
void Ptree_visitor< Returntype >::TypeofFuncall Ptree  ,
TypeInfo  
[private, virtual]
 

Reimplemented from Walker.

Definition at line 1535 of file ptree_visitor.h.

References Ptree_visitor< Returntype >::runtime_error().

template<typename Returntype>
void Ptree_visitor< Returntype >::TypeofInfix Ptree  ,
TypeInfo  
[private, virtual]
 

Reimplemented from Walker.

Definition at line 1499 of file ptree_visitor.h.

References Ptree_visitor< Returntype >::runtime_error().

template<typename Returntype>
void Ptree_visitor< Returntype >::TypeofNew Ptree  ,
TypeInfo  
[private, virtual]
 

Reimplemented from Walker.

Definition at line 1517 of file ptree_visitor.h.

References Ptree_visitor< Returntype >::runtime_error().

template<typename Returntype>
void Ptree_visitor< Returntype >::TypeofParen Ptree  ,
TypeInfo  
[private, virtual]
 

Reimplemented from Walker.

Definition at line 1550 of file ptree_visitor.h.

References Ptree_visitor< Returntype >::runtime_error().

template<typename Returntype>
void Ptree_visitor< Returntype >::TypeofPm Ptree  ,
TypeInfo  
[private, virtual]
 

Reimplemented from Walker.

Definition at line 1502 of file ptree_visitor.h.

References Ptree_visitor< Returntype >::runtime_error().

template<typename Returntype>
void Ptree_visitor< Returntype >::TypeofPostfix Ptree  ,
TypeInfo  
[private, virtual]
 

Reimplemented from Walker.

Definition at line 1538 of file ptree_visitor.h.

References Ptree_visitor< Returntype >::runtime_error().

template<typename Returntype>
void Ptree_visitor< Returntype >::TypeofPtree Ptree  ,
TypeInfo  
[private, virtual]
 

Reimplemented from Walker.

Definition at line 1426 of file ptree_visitor.h.

References Ptree_visitor< Returntype >::runtime_error().

template<typename Returntype>
void Ptree_visitor< Returntype >::TypeofSizeof Ptree  ,
TypeInfo  
[private, virtual]
 

Reimplemented from Walker.

Definition at line 1514 of file ptree_visitor.h.

References Ptree_visitor< Returntype >::runtime_error().

template<typename Returntype>
void Ptree_visitor< Returntype >::TypeofStaticUserStatement Ptree  ,
TypeInfo  
[private, virtual]
 

Reimplemented from Walker.

Definition at line 1553 of file ptree_visitor.h.

References Ptree_visitor< Returntype >::runtime_error().

template<typename Returntype>
void Ptree_visitor< Returntype >::TypeofThis Ptree  ,
TypeInfo  
[private, virtual]
 

Reimplemented from Walker.

Definition at line 1523 of file ptree_visitor.h.

References Ptree_visitor< Returntype >::runtime_error().

template<typename Returntype>
void Ptree_visitor< Returntype >::TypeofThrow Ptree  ,
TypeInfo  
[private, virtual]
 

Reimplemented from Walker.

Definition at line 1511 of file ptree_visitor.h.

References Ptree_visitor< Returntype >::runtime_error().

template<typename Returntype>
void Ptree_visitor< Returntype >::TypeofUnary Ptree  ,
TypeInfo  
[private, virtual]
 

Reimplemented from Walker.

Definition at line 1508 of file ptree_visitor.h.

References Ptree_visitor< Returntype >::runtime_error().

template<typename Returntype>
void Ptree_visitor< Returntype >::TypeofUserStatement Ptree  ,
TypeInfo  
[private, virtual]
 

Reimplemented from Walker.

Definition at line 1541 of file ptree_visitor.h.

References Ptree_visitor< Returntype >::runtime_error().

template<typename Returntype>
void Ptree_visitor< Returntype >::TypeofVariable Ptree  ,
TypeInfo  
[private, virtual]
 

Reimplemented from Walker.

Definition at line 1526 of file ptree_visitor.h.

References Ptree_visitor< Returntype >::runtime_error().

template<typename Returntype>
Returntype Ptree_visitor< Returntype >::visit Ptree   p [virtual]
 

Definition at line 435 of file ptree_visitor.h.

References Ptree_visitor< Returntype >::_saved, and Ptree_visitor< Returntype >::visit_null().

template<typename Returntype>
Returntype Ptree_visitor< Returntype >::visit  
 

Definition at line 426 of file ptree_visitor.h.

References Ptree_visitor< Returntype >::_s, Ptree_visitor< Returntype >::_saved, and Source::translate().

Referenced by Ptree_visitor< Returntype >::recurse(), Ptree_program_visitor< Returntype >::visit_function(), Ptree_program_visitor< Returntype >::visit_name_declaration(), and Ptree_program_visitor< Returntype >::visit_type_declaration().

template<typename Returntype>
Returntype Ptree_visitor< Returntype >::visit_accessdecl PtreeAccessDecl   p [virtual]
 

Definition at line 657 of file ptree_visitor.h.

References Ptree_visitor< Returntype >::default_action().

Referenced by Ptree_visitor< Returntype >::TranslateAccessDecl().

template<typename Returntype>
Returntype Ptree_visitor< Returntype >::visit_accessspec PtreeAccessSpec   p [virtual]
 

Reimplemented in Annotator.

Definition at line 649 of file ptree_visitor.h.

References Ptree_visitor< Returntype >::default_action().

Referenced by Ptree_visitor< Returntype >::TranslateAccessSpec().

template<typename Returntype>
Returntype Ptree_visitor< Returntype >::visit_array PtreeArrayExpr   p [virtual]
 

Reimplemented in Expr_annotator.

Definition at line 873 of file ptree_visitor.h.

References Ptree_visitor< Returntype >::default_action().

Referenced by Ptree_visitor< Returntype >::TranslateArray().

template<typename Returntype>
Returntype Ptree_visitor< Returntype >::visit_arrowmember PtreeArrowMemberExpr   p [virtual]
 

Reimplemented in Expr_annotator.

Definition at line 913 of file ptree_visitor.h.

References Ptree_visitor< Returntype >::default_action().

Referenced by Ptree_visitor< Returntype >::TranslateArrowMember().

template<typename Returntype>
Returntype Ptree_visitor< Returntype >::visit_assign PtreeAssignExpr   p [virtual]
 

Reimplemented in Expr_annotator, and Translate_visitor.

Definition at line 793 of file ptree_visitor.h.

References Ptree_visitor< Returntype >::default_action().

Referenced by Ptree_visitor< Returntype >::TranslateAssign().

template<typename Returntype>
Returntype Ptree_visitor< Returntype >::visit_block PtreeBlock   p [virtual]
 

Reimplemented in Annotator.

Definition at line 617 of file ptree_visitor.h.

References Ptree_visitor< Returntype >::default_action().

Referenced by Ptree_visitor< Returntype >::TranslateBlock().

template<typename Returntype>
Returntype Ptree_visitor< Returntype >::visit_brace PtreeBrace   p [virtual]
 

Reimplemented in Annotator, and Expr_annotator.

Definition at line 609 of file ptree_visitor.h.

References Ptree_visitor< Returntype >::default_action().

Referenced by Ptree_visitor< Returntype >::TranslateBrace().

template<typename Returntype>
Returntype Ptree_visitor< Returntype >::visit_break PtreeBreakStatement   p [virtual]
 

Reimplemented in Annotator.

Definition at line 721 of file ptree_visitor.h.

References Ptree_visitor< Returntype >::default_action().

Referenced by Ptree_visitor< Returntype >::TranslateBreak().

template<typename Returntype>
Returntype Ptree_visitor< Returntype >::visit_case PtreeCaseStatement   p [virtual]
 

Reimplemented in Annotator.

Definition at line 753 of file ptree_visitor.h.

References Ptree_visitor< Returntype >::default_action().

Referenced by Ptree_visitor< Returntype >::TranslateCase().

template<typename Returntype>
Returntype Ptree_visitor< Returntype >::visit_cast PtreeCastExpr   p [virtual]
 

Reimplemented in Expr_annotator.

Definition at line 825 of file ptree_visitor.h.

References Ptree_visitor< Returntype >::default_action().

Referenced by Ptree_visitor< Returntype >::TranslateCast().

template<typename Returntype>
Returntype Ptree_visitor< Returntype >::visit_classbody PtreeClassBody   p [virtual]
 

Definition at line 625 of file ptree_visitor.h.

References Ptree_visitor< Returntype >::default_action().

Referenced by Ptree_visitor< Returntype >::TranslateClassBody().

template<typename Returntype>
Returntype Ptree_visitor< Returntype >::visit_classspec PtreeClassSpec   p [virtual]
 

Definition at line 633 of file ptree_visitor.h.

References Ptree_visitor< Returntype >::default_action().

Referenced by Ptree_visitor< Returntype >::TranslateClassSpec().

template<typename Returntype>
Returntype Ptree_visitor< Returntype >::visit_comma PtreeCommaExpr   p [virtual]
 

Reimplemented in Expr_annotator.

Definition at line 785 of file ptree_visitor.h.

References Ptree_visitor< Returntype >::default_action().

Referenced by Ptree_visitor< Returntype >::TranslateComma().

template<typename Returntype>
Returntype Ptree_visitor< Returntype >::visit_cond PtreeCondExpr   p [virtual]
 

Reimplemented in Expr_annotator.

Definition at line 801 of file ptree_visitor.h.

References Ptree_visitor< Returntype >::default_action().

Referenced by Ptree_visitor< Returntype >::TranslateCond().

template<typename Returntype>
Returntype Ptree_visitor< Returntype >::visit_continue PtreeContinueStatement   p [virtual]
 

Reimplemented in Annotator.

Definition at line 729 of file ptree_visitor.h.

References Ptree_visitor< Returntype >::default_action().

Referenced by Ptree_visitor< Returntype >::TranslateContinue().

template<typename Returntype>
Returntype Ptree_visitor< Returntype >::visit_declaration PtreeDeclaration   p [virtual]
 

Reimplemented in Ptree_program_visitor< Returntype >, Ptree_program_visitor< Annotator_RT >, Ptree_program_visitor< T >, Ptree_program_visitor< bool >, Ptree_program_visitor< Tpl_RT >, and Ptree_program_visitor< Expr_result >.

Definition at line 601 of file ptree_visitor.h.

References Ptree_visitor< Returntype >::default_action().

Referenced by Ptree_visitor< Returntype >::TranslateDeclaration().

template<typename Returntype>
Returntype Ptree_visitor< Returntype >::visit_declarator PtreeDeclarator   p [virtual]
 

Definition at line 534 of file ptree_visitor.h.

References Ptree_visitor< Returntype >::default_action().

Referenced by Ptree_visitor< Returntype >::TranslatePtree().

template<typename Returntype>
Returntype Ptree_visitor< Returntype >::visit_default PtreeDefaultStatement   p [virtual]
 

Reimplemented in Annotator.

Definition at line 761 of file ptree_visitor.h.

References Ptree_visitor< Returntype >::default_action().

Referenced by Ptree_visitor< Returntype >::TranslateDefault().

template<typename Returntype>
Returntype Ptree_visitor< Returntype >::visit_delete PtreeDeleteExpr   p [virtual]
 

Reimplemented in Expr_annotator.

Definition at line 865 of file ptree_visitor.h.

References Ptree_visitor< Returntype >::default_action().

Referenced by Ptree_visitor< Returntype >::TranslateDelete().

template<typename Returntype>
Returntype Ptree_visitor< Returntype >::visit_do PtreeDoStatement   p [virtual]
 

Reimplemented in Annotator.

Definition at line 697 of file ptree_visitor.h.

References Ptree_visitor< Returntype >::default_action().

Referenced by Ptree_visitor< Returntype >::TranslateDo().

template<typename Returntype>
Returntype Ptree_visitor< Returntype >::visit_dotmember PtreeDotMemberExpr   p [virtual]
 

Reimplemented in Expr_annotator.

Definition at line 905 of file ptree_visitor.h.

References Ptree_visitor< Returntype >::default_action().

Referenced by Ptree_visitor< Returntype >::TranslateDotMember().

template<typename Returntype>
Returntype Ptree_visitor< Returntype >::visit_enumspec PtreeEnumSpec   p [virtual]
 

Definition at line 641 of file ptree_visitor.h.

References Ptree_visitor< Returntype >::default_action().

Referenced by Ptree_visitor< Returntype >::TranslateEnumSpec().

template<typename Returntype>
Returntype Ptree_visitor< Returntype >::visit_expr PtreeExprStatement   p [virtual]
 

Definition at line 777 of file ptree_visitor.h.

References Ptree_visitor< Returntype >::default_action().

template<typename Returntype>
Returntype Ptree_visitor< Returntype >::visit_exprstatement PtreeExprStatement   p [virtual]
 

Reimplemented in Annotator, and Translate_visitor.

Definition at line 937 of file ptree_visitor.h.

References Ptree_visitor< Returntype >::default_action().

Referenced by Ptree_visitor< Returntype >::TranslateExprStatement().

template<typename Returntype>
Returntype Ptree_visitor< Returntype >::visit_externtemplate PtreeExternTemplate   p [virtual]
 

Definition at line 569 of file ptree_visitor.h.

References Ptree_visitor< Returntype >::default_action().

Referenced by Ptree_visitor< Returntype >::TranslateExternTemplate().

template<typename Returntype>
Returntype Ptree_visitor< Returntype >::visit_for PtreeForStatement   p [virtual]
 

Reimplemented in Annotator.

Definition at line 705 of file ptree_visitor.h.

References Ptree_visitor< Returntype >::default_action().

Referenced by Ptree_visitor< Returntype >::TranslateFor().

template<typename Returntype>
Returntype Ptree_visitor< Returntype >::visit_fstylecastexpr PtreeFstyleCastExpr   p [virtual]
 

Reimplemented in Expr_annotator.

Definition at line 945 of file ptree_visitor.h.

References Ptree_visitor< Returntype >::default_action().

Referenced by Ptree_visitor< Returntype >::TranslateFstyleCast().

template<typename Returntype>
Returntype Ptree_visitor< Returntype >::visit_funcall PtreeFuncallExpr   p [virtual]
 

Reimplemented in Expr_annotator, and Translate_visitor.

Definition at line 881 of file ptree_visitor.h.

References Ptree_visitor< Returntype >::default_action().

Referenced by Ptree_visitor< Returntype >::TranslateFuncall().

template<typename Returntype>
Returntype Ptree_visitor< Returntype >::visit_goto PtreeGotoStatement   p [virtual]
 

Reimplemented in Annotator.

Definition at line 745 of file ptree_visitor.h.

References Ptree_visitor< Returntype >::default_action().

Referenced by Ptree_visitor< Returntype >::TranslateGoto().

template<typename Returntype>
Returntype Ptree_visitor< Returntype >::visit_if PtreeIfStatement   p [virtual]
 

Reimplemented in Annotator.

Definition at line 673 of file ptree_visitor.h.

References Ptree_visitor< Returntype >::default_action().

Referenced by Ptree_visitor< Returntype >::TranslateIf().

template<typename Returntype>
Returntype Ptree_visitor< Returntype >::visit_infix PtreeInfixExpr   p [virtual]
 

Reimplemented in Expr_annotator, and Translate_visitor.

Definition at line 809 of file ptree_visitor.h.

References Ptree_visitor< Returntype >::default_action().

Referenced by Ptree_visitor< Returntype >::TranslateInfix().

template<typename Returntype>
Returntype Ptree_visitor< Returntype >::visit_label PtreeLabelStatement   p [virtual]
 

Reimplemented in Annotator.

Definition at line 769 of file ptree_visitor.h.

References Ptree_visitor< Returntype >::default_action().

Referenced by Ptree_visitor< Returntype >::TranslateLabel().

template<typename Returntype>
Returntype Ptree_visitor< Returntype >::visit_leaf Leaf   p [virtual]
 

Visit a parse-tree leaf: Leaf, LeafReserved, and all subclasses of LeafReserved: LeafNAMESPACE etc.

Reimplemented in Expr_annotator, and Translate_visitor.

Definition at line 518 of file ptree_visitor.h.

References Ptree_visitor< Returntype >::default_action().

Referenced by Ptree_visitor< Returntype >::TranslatePtree().

template<typename Returntype>
Returntype Ptree_visitor< Returntype >::visit_linkagespec PtreeLinkageSpec   p [virtual]
 

Reimplemented in Annotator.

Definition at line 577 of file ptree_visitor.h.

References Ptree_visitor< Returntype >::default_action().

Referenced by Ptree_visitor< Returntype >::TranslateLinkageSpec().

template<typename Returntype>
Returntype Ptree_visitor< Returntype >::visit_name Ptree   p [virtual]
 

Parameters:
p  Can be PtreeName or LeafName

Reimplemented in Expr_annotator, Flat_maker, and Translate_visitor.

Definition at line 955 of file ptree_visitor.h.

References Ptree_visitor< Returntype >::default_action().

Referenced by Ptree_visitor< Returntype >::TranslateVariable().

template<typename Returntype>
Returntype Ptree_visitor< Returntype >::visit_namespacespec PtreeNamespaceSpec   p [virtual]
 

Reimplemented in Annotator.

Definition at line 585 of file ptree_visitor.h.

References Ptree_visitor< Returntype >::default_action().

Referenced by Ptree_visitor< Returntype >::TranslateNamespaceSpec().

template<typename Returntype>
Returntype Ptree_visitor< Returntype >::visit_new PtreeNewExpr   p [virtual]
 

Reimplemented in Expr_annotator.

Definition at line 857 of file ptree_visitor.h.

References Ptree_visitor< Returntype >::default_action().

Referenced by Ptree_visitor< Returntype >::TranslateNew().

template<typename Returntype>
Returntype Ptree_visitor< Returntype >::visit_nonleaf NonLeaf   p [virtual]
 

Reimplemented in Annotator, and Flat_maker.

Definition at line 526 of file ptree_visitor.h.

References Ptree_visitor< Returntype >::default_action().

Referenced by Ptree_visitor< Returntype >::TranslatePtree().

template<typename Returntype>
Returntype Ptree_visitor< Returntype >::visit_null   [virtual]
 

Definition at line 502 of file ptree_visitor.h.

References Ptree_visitor< Returntype >::default_action().

Referenced by Ptree_visitor< Returntype >::visit().

template<typename Returntype>
Returntype Ptree_visitor< Returntype >::visit_paren PtreeParenExpr   p [virtual]
 

Reimplemented in Expr_annotator.

Definition at line 921 of file ptree_visitor.h.

References Ptree_visitor< Returntype >::default_action().

Referenced by Ptree_visitor< Returntype >::TranslateParen().

template<typename Returntype>
Returntype Ptree_visitor< Returntype >::visit_pm PtreePmExpr   p [virtual]
 

Reimplemented in Expr_annotator.

Definition at line 817 of file ptree_visitor.h.

References Ptree_visitor< Returntype >::default_action().

Referenced by Ptree_visitor< Returntype >::TranslatePm().

template<typename Returntype>
Returntype Ptree_visitor< Returntype >::visit_postfix PtreePostfixExpr   p [virtual]
 

Reimplemented in Expr_annotator, and Translate_visitor.

Definition at line 889 of file ptree_visitor.h.

References Ptree_visitor< Returntype >::default_action().

Referenced by Ptree_visitor< Returntype >::TranslatePostfix().

template<typename Returntype>
Returntype Ptree_visitor< Returntype >::visit_return PtreeReturnStatement   p [virtual]
 

Reimplemented in Annotator, and Translate_visitor.

Definition at line 737 of file ptree_visitor.h.

References Ptree_visitor< Returntype >::default_action().

Referenced by Ptree_visitor< Returntype >::TranslateReturn().

template<typename Returntype>
Returntype Ptree_visitor< Returntype >::visit_sizeof PtreeSizeofExpr   p [virtual]
 

Reimplemented in Expr_annotator.

Definition at line 849 of file ptree_visitor.h.

References Ptree_visitor< Returntype >::default_action().

Referenced by Ptree_visitor< Returntype >::TranslateSizeof().

template<typename Returntype>
Returntype Ptree_visitor< Returntype >::visit_staticuserstatement PtreeStaticUserStatementExpr   p [virtual]
 

Definition at line 929 of file ptree_visitor.h.

References Ptree_visitor< Returntype >::default_action().

Referenced by Ptree_visitor< Returntype >::TranslateStaticUserStatement().

template<typename Returntype>
Returntype Ptree_visitor< Returntype >::visit_switch PtreeSwitchStatement   p [virtual]
 

Reimplemented in Annotator.

Definition at line 681 of file ptree_visitor.h.

References Ptree_visitor< Returntype >::default_action().

Referenced by Ptree_visitor< Returntype >::TranslateSwitch().

template<typename Returntype>
Returntype Ptree_visitor< Returntype >::visit_templatedecl PtreeTemplateDecl   p [virtual]
 

Reimplemented in Annotator.

Definition at line 553 of file ptree_visitor.h.

References Ptree_visitor< Returntype >::default_action().

Referenced by Ptree_visitor< Returntype >::TranslateTemplateDecl().

template<typename Returntype>
Returntype Ptree_visitor< Returntype >::visit_templateinstantiation PtreeTemplateInstantiation   p [virtual]
 

Definition at line 561 of file ptree_visitor.h.

References Ptree_visitor< Returntype >::default_action().

Referenced by Ptree_visitor< Returntype >::TranslateTemplateInstantiation().

template<typename Returntype>
Returntype Ptree_visitor< Returntype >::visit_this LeafThis   p [virtual]
 

Reimplemented in Expr_annotator.

Definition at line 963 of file ptree_visitor.h.

References Ptree_visitor< Returntype >::default_action().

Referenced by Ptree_visitor< Returntype >::TranslateThis().

template<typename Returntype>
Returntype Ptree_visitor< Returntype >::visit_throw PtreeThrowExpr   p [virtual]
 

Reimplemented in Expr_annotator.

Definition at line 841 of file ptree_visitor.h.

References Ptree_visitor< Returntype >::default_action().

Referenced by Ptree_visitor< Returntype >::TranslateThrow().

template<typename Returntype>
Returntype Ptree_visitor< Returntype >::visit_try PtreeTryStatement   p [virtual]
 

Definition at line 713 of file ptree_visitor.h.

References Ptree_visitor< Returntype >::default_action().

Referenced by Ptree_visitor< Returntype >::TranslateTry().

template<typename Returntype>
Returntype Ptree_visitor< Returntype >::visit_typedef PtreeTypedef   p [virtual]
 

Parameters:
p  ["typedef", Ptree(type), Ptree(newtypename)]

Reimplemented in Annotator.

Definition at line 545 of file ptree_visitor.h.

References Ptree_visitor< Returntype >::default_action().

Referenced by Ptree_visitor< Returntype >::TranslateTypedef().

template<typename Returntype>
Returntype Ptree_visitor< Returntype >::visit_unary PtreeUnaryExpr   p [virtual]
 

Reimplemented in Expr_annotator.

Definition at line 833 of file ptree_visitor.h.

References Ptree_visitor< Returntype >::default_action().

Referenced by Ptree_visitor< Returntype >::TranslateUnary().

template<typename Returntype>
Returntype Ptree_visitor< Returntype >::visit_useraccessspec PtreeUserAccessSpec   p [virtual]
 

Definition at line 665 of file ptree_visitor.h.

References Ptree_visitor< Returntype >::default_action().

Referenced by Ptree_visitor< Returntype >::TranslateUserAccessSpec().

template<typename Returntype>
Returntype Ptree_visitor< Returntype >::visit_userstatement PtreeUserStatementExpr   p [virtual]
 

Definition at line 897 of file ptree_visitor.h.

References Ptree_visitor< Returntype >::default_action().

Referenced by Ptree_visitor< Returntype >::TranslateUserStatement().

template<typename Returntype>
Returntype Ptree_visitor< Returntype >::visit_using PtreeUsing   p [virtual]
 

Reimplemented in Annotator.

Definition at line 593 of file ptree_visitor.h.

References Ptree_visitor< Returntype >::default_action().

Referenced by Ptree_visitor< Returntype >::TranslateUsing().

template<typename Returntype>
Returntype Ptree_visitor< Returntype >::visit_while PtreeWhileStatement   p [virtual]
 

Reimplemented in Annotator.

Definition at line 689 of file ptree_visitor.h.

References Ptree_visitor< Returntype >::default_action().

Referenced by Ptree_visitor< Returntype >::TranslateWhile().


Member Data Documentation

template<typename Returntype>
Source* Ptree_visitor< Returntype >::_s [private]
 

Definition at line 37 of file ptree_visitor.h.

Referenced by Ptree_visitor< Returntype >::visit().

template<typename Returntype>
Returntype Ptree_visitor< Returntype >::_saved [private]
 

Definition at line 38 of file ptree_visitor.h.

Referenced by Ptree_visitor< Returntype >::TranslateAccessDecl(), Ptree_visitor< Returntype >::TranslateAccessSpec(), Ptree_visitor< Returntype >::TranslateArray(), Ptree_visitor< Returntype >::TranslateArrowMember(), Ptree_visitor< Returntype >::TranslateAssign(), Ptree_visitor< Returntype >::TranslateBlock(), Ptree_visitor< Returntype >::TranslateBrace(), Ptree_visitor< Returntype >::TranslateBreak(), Ptree_visitor< Returntype >::TranslateCase(), Ptree_visitor< Returntype >::TranslateCast(), Ptree_visitor< Returntype >::TranslateClassBody(), Ptree_visitor< Returntype >::TranslateClassSpec(), Ptree_visitor< Returntype >::TranslateComma(), Ptree_visitor< Returntype >::TranslateCond(), Ptree_visitor< Returntype >::TranslateContinue(), Ptree_visitor< Returntype >::TranslateDeclaration(), Ptree_visitor< Returntype >::TranslateDefault(), Ptree_visitor< Returntype >::TranslateDelete(), Ptree_visitor< Returntype >::TranslateDo(), Ptree_visitor< Returntype >::TranslateDotMember(), Ptree_visitor< Returntype >::TranslateEnumSpec(), Ptree_visitor< Returntype >::TranslateExprStatement(), Ptree_visitor< Returntype >::TranslateExternTemplate(), Ptree_visitor< Returntype >::TranslateFor(), Ptree_visitor< Returntype >::TranslateFstyleCast(), Ptree_visitor< Returntype >::TranslateFuncall(), Ptree_visitor< Returntype >::TranslateGoto(), Ptree_visitor< Returntype >::TranslateIf(), Ptree_visitor< Returntype >::TranslateInfix(), Ptree_visitor< Returntype >::TranslateLabel(), Ptree_visitor< Returntype >::TranslateLinkageSpec(), Ptree_visitor< Returntype >::TranslateNamespaceSpec(), Ptree_visitor< Returntype >::TranslateNew(), Ptree_visitor< Returntype >::TranslateParen(), Ptree_visitor< Returntype >::TranslatePm(), Ptree_visitor< Returntype >::TranslatePostfix(), Ptree_visitor< Returntype >::TranslatePtree(), Ptree_visitor< Returntype >::TranslateReturn(), Ptree_visitor< Returntype >::TranslateSizeof(), Ptree_visitor< Returntype >::TranslateStaticUserStatement(), Ptree_visitor< Returntype >::TranslateSwitch(), Ptree_visitor< Returntype >::TranslateTemplateDecl(), Ptree_visitor< Returntype >::TranslateTemplateInstantiation(), Ptree_visitor< Returntype >::TranslateThis(), Ptree_visitor< Returntype >::TranslateThrow(), Ptree_visitor< Returntype >::TranslateTry(), Ptree_visitor< Returntype >::TranslateTypedef(), Ptree_visitor< Returntype >::TranslateUnary(), Ptree_visitor< Returntype >::TranslateUserAccessSpec(), Ptree_visitor< Returntype >::TranslateUserStatement(), Ptree_visitor< Returntype >::TranslateUsing(), Ptree_visitor< Returntype >::TranslateVariable(), Ptree_visitor< Returntype >::TranslateWhile(), and Ptree_visitor< Returntype >::visit().


The documentation for this class was generated from the following file:
Generated on Mon Feb 10 17:36:10 2003 for VFiasco Semantics Compiler by doxygen1.2.15