Public Member Functions |
| | PreIncludeDirective (PreTree *i, PreTree *tl) |
| | Constructor.
|
| void | accept (PreVisitor &v) |
| | Part of the tree visitor pattern.
|
| int | depth () const |
| | Get the depth of nested inclusion.
|
| void | depth (int d) |
| | Set the depth of nested inclusion.
|
| bool | is_forced () const |
| | Check if this is a forced include (given by command line).
|
| virtual | ~PreTreeComposite () |
| | Destructor.
|
| virtual void | add_son (PreTree *s) |
| | Add a son (syntactic child node).
|
| virtual void | replace_son (int n, PreTree *new_s) |
| | Replace the n-th son.
|
| virtual PreTree * | son (int n) const |
| | Get the n-th son.
|
| virtual int | sons () const |
| | Get the number of sons.
|
| virtual void | add_daughter (PreTree *d) |
| | Add a daughter (semantic child node).
|
| virtual void | replace_daughter (int n, PreTree *new_d) |
| | Replace the n-th daughter.
|
| virtual PreTree * | daughter (int n) const |
| | Get the n-th daughter.
|
| virtual int | daughters () const |
| | Get the number of daughters.
|
| virtual Token * | startToken () const |
| | Get the first token of the syntactic construct represented by the sub-tree.
|
| virtual Token * | endToken () const |
| | Get the last token of the syntactic construct represented by the sub-tree.
|
| virtual | ~PreTree () |
| | Destructor.
|
| virtual bool | isLeaf () const |
| | Check if the node is a leaf, i.e.
|
Preprocessor tree node representing an #include or #include_next directive.
Example: