ROSE  0.11.96.11
Public Member Functions | List of all members
Rose::EditDistance::LinearEditDistance::NodeSelector< NodeType > Class Template Reference

Description

template<class NodeType>
class Rose::EditDistance::LinearEditDistance::NodeSelector< NodeType >

Definition at line 71 of file LinearEditDistance.h.

Inheritance diagram for Rose::EditDistance::LinearEditDistance::NodeSelector< NodeType >:
Inheritance graph
[legend]
Collaboration diagram for Rose::EditDistance::LinearEditDistance::NodeSelector< NodeType >:
Collaboration graph
[legend]

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...
 
- Public Member Functions inherited from AstTopDownBottomUpProcessing< size_t, Sawyer::Nothing >
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
 
- Public Member Functions inherited from SgTreeTraversal< size_t, Sawyer::Nothing >
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 SgTreeTraversaloperator= (const SgTreeTraversal &)
 

Additional Inherited Members

- Public Types inherited from AstTopDownBottomUpProcessing< size_t, Sawyer::Nothing >
typedef SgTreeTraversal< size_t, Sawyer::Nothing >::SynthesizedAttributesList SynthesizedAttributesList
 
typedef SynthesizedAttributesList SubTreeSynthesizedAttributes
 
- Public Types inherited from SgTreeTraversal< size_t, Sawyer::Nothing >
typedef StackFrameVector< Sawyer::NothingSynthesizedAttributesList
 
- Protected Types inherited from SgTreeTraversal< size_t, Sawyer::Nothing >
typedef AstSuccessorsSelectors::SuccessorsContainer SuccessorsContainer
 
typedef SuccessorsContainer & SuccessorsContainerRef
 
- Protected Member Functions inherited from AstTopDownBottomUpProcessing< size_t, Sawyer::Nothing >
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 ()
 
- Protected Member Functions inherited from SgTreeTraversal< size_t, Sawyer::Nothing >
virtual void setNodeSuccessors (SgNode *node, SuccessorsContainer &succContainer)
 
virtual Sawyer::Nothing defaultSynthesizedAttribute (size_t inh)
 
void set_useDefaultIndexBasedTraversal (bool)
 

Member Function Documentation

◆ evaluateSynthesizedAttribute()

template<class NodeType >
Sawyer::Nothing Rose::EditDistance::LinearEditDistance::NodeSelector< NodeType >::evaluateSynthesizedAttribute ( SgNode ,
size_t  ,
SubTreeSynthesizedAttributes   
)
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.


The documentation for this class was generated from the following file: