1 #ifndef MODULE_INSTANCE_H_INCLUDED_
2 #define MODULE_INSTANCE_H_INCLUDED_
92 typedef std::vector<ModuleInstance*>
94 typedef std::vector<ModuleInstance*>::iterator
96 typedef std::vector<ModuleInstance*>::const_iterator
virtual Module * get_definition()
returns this associated definition of the module instance
Definition: module_instance.cpp:20
void add_backward_socket_mapping(Socket *socket_from, Socket *socket_to)
This is a helper functio to add a mapping.
Definition: module_instance.cpp:35
std::map< Socket *, Socket * > socket_mapping_
Definition: module_instance.h:76
void add_mapping(Port *port, Object *object)
This is a helper functio to add a mapping.
Definition: module_instance.cpp:25
Module * module_definition_
This pointer points to the corresponding definition in the internal representation.
Definition: module_instance.h:84
std::vector< ModuleInstance * > ModuleInstanceVector
Definition: class.h:42
std::map< Socket *, Socket * > backward_socket_mapping_
Definition: module_instance.h:77
std::vector< ModuleInstance * >::const_iterator ModuleInstanceVectorConstIter
Definition: module_instance.h:97
std::map< Port *, Object * > mapping_
Definition: module_instance.h:73
std::string get_instance_qualified_name()
return the qualified name of the module instance for example: ::top::prod_inst
Definition: module_instance.cpp:40
void add_socket_mapping(Socket *socket_from, Socket *socket_to)
This is a helper functio to add a mapping.
Definition: module_instance.cpp:30
Definition: instance.h:17
std::vector< ModuleInstance * >::iterator ModuleInstanceVectorIter
Definition: module_instance.h:95
This class represents instances.
Definition: module.h:49
This class represents a instance of a module.
Definition: module_instance.h:27
Type
We are using these enums to identify type type of and instance or definition during traversal...
Definition: definition.h:20
ModuleInstance(SgVariableDefinition *ast_node, Module *ir_def)
default constructor
Definition: module_instance.cpp:3