ROSE
0.11.96.11
|
Definition at line 71 of file LinearEditDistance.h.
Public Member Functions | |
NodeSelector (std::vector< NodeType > &nodes, SgFile *containingFile, size_t minDepth, size_t maxDepth) | |
size_t | evaluateInheritedAttribute (SgNode *node, size_t depth) override |
pure virtual function which must be implemented to compute the inherited attribute at a node | |
Sawyer::Nothing | evaluateSynthesizedAttribute (SgNode *, size_t depth, SubTreeSynthesizedAttributes) override |
pure virtual function which must be implemented to compute the synthesized attribute at a node. More... | |
![]() | |
Sawyer::Nothing | traverse (SgNode *node, size_t inheritedValue) |
evaluates attributes on the entire AST | |
Sawyer::Nothing | traverseWithinFile (SgNode *node, size_t inheritedValue) |
evaluates attributes only at nodes which represent the same file as where the evaluation was started | |
![]() | |
Sawyer::Nothing | traverse (SgNode *basenode, size_t inheritedValue, t_traverseOrder travOrder=preandpostorder) |
Sawyer::Nothing | traverseWithinFile (SgNode *basenode, size_t inheritedValue, t_traverseOrder travOrder=preandpostorder) |
void | traverseInputFiles (SgProject *projectNode, size_t inheritedValue, t_traverseOrder travOrder=preandpostorder) |
SgTreeTraversal (const SgTreeTraversal &) | |
const SgTreeTraversal & | operator= (const SgTreeTraversal &) |
Additional Inherited Members | |
![]() | |
typedef SgTreeTraversal< size_t, Sawyer::Nothing >::SynthesizedAttributesList | SynthesizedAttributesList |
typedef SynthesizedAttributesList | SubTreeSynthesizedAttributes |
![]() | |
typedef StackFrameVector< Sawyer::Nothing > | SynthesizedAttributesList |
![]() | |
typedef AstSuccessorsSelectors::SuccessorsContainer | SuccessorsContainer |
typedef SuccessorsContainer & | SuccessorsContainerRef |
![]() | |
virtual void | atTraversalStart () |
Function called at the start of the traversal, before any node is visited; override if necessary, the default implementation is a no-op. | |
virtual void | atTraversalEnd () |
![]() | |
virtual void | setNodeSuccessors (SgNode *node, SuccessorsContainer &succContainer) |
virtual Sawyer::Nothing | defaultSynthesizedAttribute (size_t inh) |
void | set_useDefaultIndexBasedTraversal (bool) |
|
inlineoverridevirtual |
pure virtual function which must be implemented to compute the synthesized attribute at a node.
The list of synthesized attributes consists of the synthesized attributes computed at the children node of the current node. The inherited attribute value is computed by evaluateInheritedAttribute at the same node and simply passed to this function. Use the typedef SynthesizedAttributeList as type for the synthesized attributes list.
Implements AstTopDownBottomUpProcessing< size_t, Sawyer::Nothing >.
Definition at line 91 of file LinearEditDistance.h.