risc::Instance Class Reference

#include <instance.h>

Inheritance diagram for risc::Instance:
Inheritance graph
[legend]
Collaboration diagram for risc::Instance:
Collaboration graph
[legend]

List of all members.

Public Types

enum  Type {
  CThreadType, ChannelType, ChannelInstanceType, ClassType,
  DefinitionType, EventType, FunctionType, HierarchicalChannelType,
  HierarchicalChannelInstanceType, InOutPortType, InPortType, InstanceType,
  MethodType, ModuleType, ModuleInstanceType, ObjectType,
  OutPortType, PortType, PrimitiveChannelType, PrimitiveChannelInstanceType,
  ThreadType, VariableType
}
 

We are using these enums to identify type type of and instance or definition during traversal.

More...

Public Member Functions

 Instance (SgVariableDefinition *ast_node, Type type)
 Default constructor.
virtual std::string get_ast_type_name ()
 Get function for the name of the ast type of the module instance.
SgVariableDefinition * get_ast_node ()
 Returns the ast definition of the object.
bool is_array ()
 check if it is an array
virtual std::string get_name ()
 Get function for the name of the module instance variable.
SgVariableSymbol * get_symbol ()
 return the symbol of the object
bool is_reference ()
bool is_pointer ()
virtual SgType * get_ast_type ()
 Returns the type of the ast node.
bool has_source_location ()
 Determines if a ast node has an associated ast node.
std::string get_file_name ()
 Get the name of the file where the declaration is located.
int get_line_number ()
 Get the line number of the instance.
int get_position_in_line ()
 Get the position of the in declaration in the corresponding line In other words the column in the line.

Public Attributes

Type type_
SgNode * ast_node_
SgType * ast_type_pointer_

Private Member Functions

 Instance (const Instance &i)
 Disabled copy constructor.

Detailed Description

//FIXME Document ME!


Member Enumeration Documentation

enum risc::Definition::Type [inherited]

We are using these enums to identify type type of and instance or definition during traversal.

Enumerator:
CThreadType 
ChannelType 
ChannelInstanceType 
ClassType 
DefinitionType 
EventType 
FunctionType 
HierarchicalChannelType 
HierarchicalChannelInstanceType 
InOutPortType 
InPortType 
InstanceType 
MethodType 
ModuleType 
ModuleInstanceType 
ObjectType 
OutPortType 
PortType 
PrimitiveChannelType 
PrimitiveChannelInstanceType 
ThreadType 
VariableType 

Constructor & Destructor Documentation

risc::Instance::Instance ( SgVariableDefinition *  ast_node,
Type  type 
) [explicit]

Default constructor.

risc::Instance::Instance ( const Instance i  )  [private]

Disabled copy constructor.


Member Function Documentation

SgVariableDefinition * risc::Object::get_ast_node (  )  [virtual, inherited]

Returns the ast definition of the object.

Returns:
Pointer to the definition

Reimplemented from risc::Definition.

SgType * risc::Definition::get_ast_type (  )  [virtual, inherited]

Returns the type of the ast node.

std::string risc::Instance::get_ast_type_name (  )  [virtual]

Get function for the name of the ast type of the module instance.

Returns:
Name as std::string

Reimplemented from risc::Definition.

Reimplemented in risc::PrimitiveChannelInstance.

std::string risc::Definition::get_file_name (  )  [inherited]

Get the name of the file where the declaration is located.

Returns:
filename
int risc::Definition::get_line_number (  )  [inherited]

Get the line number of the instance.

Returns:
line number
std::string risc::Object::get_name (  )  [virtual, inherited]

Get function for the name of the module instance variable.

Returns:
Name as std::string

Reimplemented from risc::Definition.

int risc::Definition::get_position_in_line (  )  [inherited]

Get the position of the in declaration in the corresponding line In other words the column in the line.

Returns:
position in line
SgVariableSymbol * risc::Object::get_symbol (  )  [inherited]

return the symbol of the object

get_symbol

bool risc::Definition::has_source_location (  )  [inherited]

Determines if a ast node has an associated ast node.

bool risc::Object::is_array (  )  [inherited]

check if it is an array

bool risc::Object::is_pointer (  )  [inherited]
bool risc::Object::is_reference (  )  [inherited]

Member Data Documentation

SgNode* risc::Definition::ast_node_ [inherited]

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 30 Sep 2015 by  doxygen 1.6.1