Puma Reference Manual | Puma: Puma::CTreeMatcher Class Reference |
#include <CTreeMatcher.h>
Inherits Puma::CVisitor.
Inherited by Puma::CMatchChecker, and Puma::MatchCollector.
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 |
anonymous enum |
Puma::CTreeMatcher::CTreeMatcher | ( | unsigned int | max = 0 |
) | [inline] |
Puma::CTreeMatcher::CTreeMatcher | ( | CTree * | matchTree, | |
unsigned int | max = 0 | |||
) | [inline] |
virtual Puma::CTreeMatcher::~CTreeMatcher | ( | ) | [inline, virtual] |
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] |
int Puma::CTreeMatcher::matchList | ( | int | , | |
match_state & | , | |||
CTree * | , | |||
CTree * | = (CTree *) 0 , |
|||
CTree * | = (CTree *) 0 | |||
) | const |
int Puma::CTreeMatcher::matchTree | ( | int | , | |
match_state & | , | |||
CTree * | , | |||
CTree * | ||||
) | const |