This class represents a variable in a module. More...
#include <variable.h>
Public Types | |
enum | Type { CThreadType, ChannelType, ChannelInstanceType, ClassType, DefinitionType, EventType, FunctionType, HierarchicalChannelType, HierarchicalChannelInstanceType, InOutPortType, InPortType, InstanceType, InterfaceType, MethodType, ModuleType, ModuleInstanceType, ObjectType, OutPortType, PortType, PrimitiveChannelType, PrimitiveChannelInstanceType, ThreadType, VariableType, SocketType, InitiatorSocketType, TargetSocketType } |
We are using these enums to identify type type of and instance or definition during traversal. More... | |
Public Member Functions | |
Variable (SgVariableDefinition *ast_node) | |
default constructor More... | |
virtual std::string | get_ast_type_name () |
Returns the type of the variable definition. More... | |
bool | is_reference () |
returns true if the variable is a reference More... | |
bool | is_static () |
returns true if the variable is a static variable More... | |
bool | is_pointer () |
returns true if the variable is a pointer More... | |
SgVariableDefinition * | get_ast_node () |
Returns the ast definition of the object. More... | |
bool | is_array () |
checks if this object is an array More... | |
virtual std::string | get_name () |
Get function for the name of the module instance variable. More... | |
SgVariableSymbol * | get_symbol () |
return the symbol of the object More... | |
virtual SgType * | get_ast_type () |
Returns the type of the ast node. More... | |
bool | has_source_location () |
Determines if a ast node has an associated ast node. More... | |
std::string | get_file_name () |
Get the name of the file where the declaration is located. More... | |
int | get_line_number () |
Get the line number of the instance. More... | |
int | get_position_in_line () |
Get the position of the in declaration in the corresponding line In other words the column in the line. More... | |
Public Attributes | |
unsigned int | number_of_array_elements_ |
Type | type_ |
SgNode * | ast_node_ |
SgType * | ast_type_pointer_ |
Private Member Functions | |
Variable (const Variable &v) | |
Disabled copy constructor. More... | |
This class represents a variable in a module.
|
inherited |
We are using these enums to identify type type of and instance or definition during traversal.
|
explicit |
default constructor
|
private |
Disabled copy constructor.
|
virtualinherited |
Returns the ast definition of the object.
Reimplemented from risc::Definition.
|
virtualinherited |
Returns the type of the ast node.
|
virtual |
Returns the type of the variable definition.
Reimplemented from risc::Definition.
|
inherited |
Get the name of the file where the declaration is located.
|
inherited |
Get the line number of the instance.
|
virtualinherited |
Get function for the name of the module instance variable.
Reimplemented from risc::Definition.
|
inherited |
Get the position of the in declaration in the corresponding line In other words the column in the line.
|
inherited |
return the symbol of the object
|
inherited |
Determines if a ast node has an associated ast node.
|
inherited |
checks if this object is an array
bool risc::Variable::is_pointer | ( | ) |
returns true if the variable is a pointer
bool risc::Variable::is_reference | ( | ) |
returns true if the variable is a reference
bool risc::Variable::is_static | ( | ) |
returns true if the variable is a static variable
|
inherited |
|
inherited |
|
inherited |
|
inherited |