1 #ifndef INSTANCE_TREE_H_INCLUDED_ 
    2 #define INSTANCE_TREE_H_INCLUDED_ 
   36   typedef std::list<Element> 
Path;
 
  133       SgVariableDefinition *var_def,
 
  150       SgVariableDefinition *var_def,
 
  189     SgClassDefinition *base_class_def,
 
  190     SgClassDefinition *parent_class_def,
 
  191     SgVariableDefinition *parent_member);
 
bool operator==(const InstanceTree &ohs) const 
Definition: instance_tree.cpp:673
 
Definition: instance_tree.h:15
 
Definition: instance_tree.h:110
 
InstanceTree()
Definition: instance_tree.cpp:27
 
SgVariableSymbol * get_mapped_reference(SgVariableSymbol *reference, SgClassDefinition *base_class_def, SgClassDefinition *parent_class_def, SgVariableDefinition *parent_member)
This function determines the mapped variables symbol in the parent class. Only for internal use...
Definition: instance_tree.cpp:113
 
int id
Definition: instance_tree.h:25
 
std::list< Element > Path
Definition: instance_tree.h:36
 
Definition: instance_tree.h:22
 
void get_instance_tree(SgVariableDefinition *var_def, int instance_id, risc::InstanceTree &tree, VariableType type)
find the instance path to a variable with a given instance id of the hosting module ...
Definition: instance_tree.cpp:694
 
InstanceTree get_parent()
This function returns the parent variable of variable. 
Definition: instance_tree.cpp:298
 
Definition: instance_tree.h:111
 
Definition: instance_tree.h:112
 
InstanceTree extend_with_symbol_list(std::list< SgVariableSymbol * > syms)
create a copy of current instance tree, extend the copy 
Definition: instance_tree.cpp:408
 
Object * second
Definition: instance_tree.h:24
 
void print_instance_tree()
Prints the instance tree. 
Definition: instance_tree.cpp:261
 
Element(Class *first_, Object *second_, int id_=0)
Definition: instance_tree.h:27
 
std::list< InstanceTree > find_all_instances_of(SgSymbol *var_sym)
This function returns all variables. 
Definition: instance_tree.cpp:313
 
Path path_
Definition: instance_tree.h:167
 
VariableType
These are the kind for of variables for which a traversal can search. 
Definition: instance_tree.h:109
 
Definition: instance_tree.h:114
 
InstanceTree get_real_mapped_variable()
This function returns mapped variables for a reference. If the mapped variable is a global variable...
Definition: instance_tree.cpp:36
 
void recursive_tree_walk(SgVariableDefinition *var_def, int ¤t_id, int instance_id, risc::InstanceTree &tree, bool &found, VariableType type)
For internal usage only! 
Definition: instance_tree.cpp:719
 
Element()
Definition: instance_tree.h:31
 
Definition: instance_tree.h:115
 
void get_all_events(std::list< InstanceTree > &occurence)
returns all events 
Definition: instance_tree.cpp:607
 
void get_all_ports(std::list< InstanceTree > &occurence)
returns all ports 
Definition: instance_tree.cpp:496
 
SgVariableSymbol * get_object_symbol()
returns the symbol of the object 
Definition: instance_tree.cpp:476
 
Class * get_scope()
returns the scope of the object 
Definition: instance_tree.cpp:464
 
Object * get_object()
returns the object 
Definition: instance_tree.cpp:470
 
Definition: instance_tree.h:113
 
void push_back(Element ohs)
Appends element ohs at the end of the list. 
Definition: instance_tree.cpp:490
 
Class * first
Definition: instance_tree.h:23
 
Element pop_back()
Deletes the last element in the instance tree. 
Definition: instance_tree.cpp:482