#include <CTreeMatcher.h>
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
- 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 |
|
) |
| |
| int Puma::CTreeMatcher::matchNodeName |
( |
CTree * |
, |
|
|
CTree * |
|
|
) |
| const |