Puma Reference Manual Puma: Puma::CTreeMatcher Class Reference



Puma::CTreeMatcher Class Reference

#include <CTreeMatcher.h>

Inherits Puma::CVisitor.

Inherited by Puma::CMatchChecker, and Puma::MatchCollector.

List of all members.

Classes

struct  match_state

Public Types

enum  {
  ANY = 1,
  ANY_LIST,
  MATCH_ALL,
  MATCH_EXACT,
  MATCH_FIRST,
  MATCH_LAST,
  MATCH_LEAF,
  MATCH_PRUNE
}

Public Member Functions

 CTreeMatcher (unsigned int max=0)
 CTreeMatcher (CTree *matchTree, unsigned int max=0)
virtual ~CTreeMatcher ()
void init (CTree *matchTree, unsigned int max=0)
bool match (CTree *, CTree *, CMatch *) const
virtual void action (CMatch *match)
virtual bool correct (CTree *node)
virtual void match (CTranslationUnit &, CTranslationUnit &, CTree *=(CTree *) 0)
int matchTree (int, match_state &, CTree *, CTree *) const
int matchList (int, match_state &, CTree *, CTree *=(CTree *) 0, CTree *=(CTree *) 0) const
int matchNodeName (CTree *, CTree *) const

Member Enumeration Documentation

anonymous enum
Enumerator:
ANY 
ANY_LIST 
MATCH_ALL 
MATCH_EXACT 
MATCH_FIRST 
MATCH_LAST 
MATCH_LEAF 
MATCH_PRUNE 

Constructor & Destructor Documentation

Puma::CTreeMatcher::CTreeMatcher ( unsigned int  max = 0  )  [inline]
Puma::CTreeMatcher::CTreeMatcher ( CTree matchTree,
unsigned int  max = 0 
) [inline]
virtual Puma::CTreeMatcher::~CTreeMatcher (  )  [inline, virtual]

Member Function Documentation

virtual void Puma::CTreeMatcher::action ( CMatch match  )  [inline, virtual]
virtual bool Puma::CTreeMatcher::correct ( CTree node  )  [inline, virtual]
void Puma::CTreeMatcher::init ( CTree matchTree,
unsigned int  max = 0 
)
virtual void Puma::CTreeMatcher::match ( CTranslationUnit ,
CTranslationUnit ,
CTree = (CTree *) 0 
) [virtual]
bool Puma::CTreeMatcher::match ( CTree ,
CTree ,
CMatch  
) const
int Puma::CTreeMatcher::matchList ( int  ,
match_state ,
CTree ,
CTree = (CTree *) 0,
CTree = (CTree *) 0 
) const
int Puma::CTreeMatcher::matchNodeName ( CTree ,
CTree  
) const
int Puma::CTreeMatcher::matchTree ( int  ,
match_state ,
CTree ,
CTree  
) const



Puma Reference Manual. Created on 18 Sep 2009.