All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types | Public Member Functions | Public Attributes | List of all members
risc::sg::CachedFunctionAstAttributes Class Reference

This class stores precached information of a analyzed function. Each function definition has an associated precached ast attribute. So, we store the beginning vertex and the leaving segments of a vertex. More...

#include <cached_function_ast_attributes.h>

Inheritance diagram for risc::sg::CachedFunctionAstAttributes:
Inheritance graph
Collaboration diagram for risc::sg::CachedFunctionAstAttributes:
Collaboration graph

Public Types

enum  FunctionIntegration { Inlining, Connecting }
 

Public Member Functions

virtual
AstAttribute::OwnershipPolicy 
getOwnershipPolicy () const ROSE_OVERRIDE
 
 CachedFunctionAstAttributes (VertexDescriptor starting_vertex, FunctionIntegration function_integration)
 
bool has_boundary ()
 This function checks if a potential function call faces any boundary statement. If the 'leaving_segments_' set contains only the 'starting_vertex_' than there is no boundary statement. More...
 
bool starting_segment_is_leaving_segment ()
 The function checks if the starting segment is a leaving segment at the same time. More...
 

Public Attributes

FunctionIntegration function_integration_
 Not really using it. More...
 
VertexDescriptor starting_vertex_
 The starting vertex of a function's sg. More...
 
SegmentGraph::SegmentSet leaving_segments_
 The segments that are the end of a function's sg. More...
 

Detailed Description

This class stores precached information of a analyzed function. Each function definition has an associated precached ast attribute. So, we store the beginning vertex and the leaving segments of a vertex.

Member Enumeration Documentation

Enumerator
Inlining 
Connecting 

Constructor & Destructor Documentation

risc::sg::CachedFunctionAstAttributes::CachedFunctionAstAttributes ( VertexDescriptor  starting_vertex,
FunctionIntegration  function_integration 
)

Member Function Documentation

virtual AstAttribute::OwnershipPolicy risc::sg::CachedFunctionAstAttributes::getOwnershipPolicy ( ) const
inlinevirtual
risc::sg::CachedFunctionAstAttributes::has_boundary ( )

This function checks if a potential function call faces any boundary statement. If the 'leaving_segments_' set contains only the 'starting_vertex_' than there is no boundary statement.

risc::sg::CachedFunctionAstAttributes::starting_segment_is_leaving_segment ( )

The function checks if the starting segment is a leaving segment at the same time.

Member Data Documentation

FunctionIntegration risc::sg::CachedFunctionAstAttributes::function_integration_

Not really using it.

SegmentGraph::SegmentSet risc::sg::CachedFunctionAstAttributes::leaving_segments_

The segments that are the end of a function's sg.

VertexDescriptor risc::sg::CachedFunctionAstAttributes::starting_vertex_

The starting vertex of a function's sg.


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