Puma Reference Manual Puma: Puma::CTreeMatcher Class Reference



Puma::CTreeMatcher Class Reference

#include <CTreeMatcher.h>

Inheritance diagram for Puma::CTreeMatcher:

Inheritance graph

List of all members.

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

Classes

struct  match_state


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

void Puma::CTreeMatcher::init ( CTree matchTree,
unsigned int  max = 0 
)

bool Puma::CTreeMatcher::match ( CTree ,
CTree ,
CMatch  
) const

virtual void Puma::CTreeMatcher::action ( CMatch match  )  [inline, virtual]

virtual bool Puma::CTreeMatcher::correct ( CTree node  )  [inline, virtual]

virtual void Puma::CTreeMatcher::match ( CTranslationUnit ,
CTranslationUnit ,
CTree = (CTree *) 0 
) [virtual]

int Puma::CTreeMatcher::matchTree ( int  ,
match_state ,
CTree ,
CTree  
) const

int Puma::CTreeMatcher::matchList ( int  ,
match_state ,
CTree ,
CTree = (CTree *) 0,
CTree = (CTree *) 0 
) const

int Puma::CTreeMatcher::matchNodeName ( CTree ,
CTree  
) const




Puma Reference Manual. Created on 5 Nov 2008.