1 #ifndef FUNCTION_H_INCLUDED_
2 #define FUNCTION_H_INCLUDED_
22 Class *parent = NULL);
std::string get_name()
returns the name of the function definition
Definition: function.cpp:20
Definition: definition.h:12
std::vector< Function * > FunctionVector
Definition: class.h:37
SgNode * starting_node_
This variables stores the associated function call which starts a thread, cthread, or method.
Definition: function.h:59
int starting_id_
After generating a segment graph for a thread, cthread, or method each function will have a starting ...
Definition: function.h:46
Function(SgFunctionDefinition *ast_node, Type type=FunctionType, Class *parent=NULL)
Default constructor.
Definition: function.cpp:3
Class * parent_
If this function belongs to a module/channel it has a link to its class definition.
Definition: function.h:52
void set_starting_node(SgNode *)
Sets the starting_node_.
Definition: function.cpp:35
SgFunctionDefinition * get_ast_node()
Returns the ast definition of the function.
Definition: function.cpp:15
std::vector< Function * >::const_iterator FunctionVectorConstIter
Definition: function.h:77
Type
We are using these enums to identify type type of and instance or definition during traversal...
Definition: definition.h:20
Definition: function.h:14
Definition: definition.h:27
std::vector< Function * >::iterator FunctionVectorIter
Definition: function.h:76
virtual std::string get_ast_type_name()
Returns the name of the type of the ast node.
Definition: function.cpp:26