#include <instance_tree.h>
|
| InstanceTree () |
|
| InstanceTree (const InstanceTree &other) |
|
InstanceTree | get_real_mapped_variable () |
| This function returns mapped variables for a reference. If the mapped variable is a global variable, the first scope pointer will be NULL. More...
|
|
std::list< InstanceTree > | find_all_instances_of (SgSymbol *var_sym) |
| This function returns all variables. More...
|
|
InstanceTree | get_parent () |
| This function returns the parent variable of variable. More...
|
|
void | print_instance_tree () |
| Prints the instance tree. More...
|
|
Class * | get_scope () |
| returns the scope of the object More...
|
|
Object * | get_object () |
| returns the object More...
|
|
SgVariableSymbol * | get_object_symbol () |
| returns the symbol of the object More...
|
|
void | get_all_ports (std::list< InstanceTree > &occurence) |
| returns all ports More...
|
|
void | get_all_events (std::list< InstanceTree > &occurence) |
| returns all events More...
|
|
Element | pop_back () |
| Deletes the last element in the instance tree. More...
|
|
void | push_back (Element ohs) |
| Appends element ohs at the end of the list. More...
|
|
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 More...
|
|
void | recursive_tree_walk (SgVariableDefinition *var_def, int ¤t_id, int instance_id, risc::InstanceTree &tree, bool &found, VariableType type) |
| For internal usage only! More...
|
|
InstanceTree | extend_with_symbol_list (std::list< SgVariableSymbol * > syms) |
| create a copy of current instance tree, extend the copy More...
|
|
bool | operator== (const InstanceTree &ohs) const |
|
|
void | recursive_tree_walk (std::list< risc::InstanceTree > &occurence, SgSymbol *var_sym) |
| Iterates recursively over the tree and collects all matching objects. More...
|
|
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. More...
|
|
These are the kind for of variables for which a traversal can search.
Enumerator |
---|
ModuleInstance |
|
PrimitiveChannelInstance |
|
HierarchicalChannelInstance |
|
EventInstance |
|
VariableInstance |
|
PortInstance |
|
risc::InstanceTree::InstanceTree |
( |
| ) |
|
risc::InstanceTree::InstanceTree |
( |
const InstanceTree & |
other | ) |
|
risc::InstanceTree::extend_with_symbol_list |
( |
std::list< SgVariableSymbol * > |
syms | ) |
|
create a copy of current instance tree, extend the copy
risc::InstanceTree::find_all_instances_of |
( |
SgSymbol * |
var_sym | ) |
|
This function returns all variables.
risc::InstanceTree::get_all_events |
( |
std::list< InstanceTree > & |
occurence | ) |
|
risc::InstanceTree::get_all_ports |
( |
std::list< InstanceTree > & |
occurence | ) |
|
find the instance path to a variable with a given instance id of the hosting module
- Parameters
-
var_def | variable for which is searched |
instance_id | instance id of the hosting module/channel |
tree | search starts from here |
type | type of the variable |
risc::InstanceTree::get_mapped_reference |
( |
SgVariableSymbol * |
reference, |
|
|
SgClassDefinition * |
base_class_def, |
|
|
SgClassDefinition * |
parent_class_def, |
|
|
SgVariableDefinition * |
parent_member |
|
) |
| |
|
private |
This function determines the mapped variables symbol in the parent class. Only for internal use.
risc::InstanceTree::get_object |
( |
| ) |
|
risc::InstanceTree::get_object_symbol |
( |
| ) |
|
returns the symbol of the object
risc::InstanceTree::get_parent |
( |
| ) |
|
This function returns the parent variable of variable.
risc::InstanceTree::get_real_mapped_variable |
( |
| ) |
|
This function returns mapped variables for a reference. If the mapped variable is a global variable, the first scope pointer will be NULL.
risc::InstanceTree::get_scope |
( |
| ) |
|
returns the scope of the object
bool risc::InstanceTree::operator== |
( |
const InstanceTree & |
ohs | ) |
const |
risc::InstanceTree::pop_back |
( |
| ) |
|
Deletes the last element in the instance tree.
risc::InstanceTree::print_instance_tree |
( |
| ) |
|
Prints the instance tree.
risc::InstanceTree::push_back |
( |
Element |
ohs | ) |
|
Appends element ohs at the end of the list.
risc::InstanceTree::recursive_tree_walk |
( |
SgVariableDefinition * |
var_def, |
|
|
int & |
current_id, |
|
|
int |
instance_id, |
|
|
risc::InstanceTree & |
tree, |
|
|
bool & |
found, |
|
|
VariableType |
type |
|
) |
| |
risc::InstanceTree::recursive_tree_walk |
( |
std::list< risc::InstanceTree > & |
occurence, |
|
|
SgSymbol * |
var_sym |
|
) |
| |
|
private |
Iterates recursively over the tree and collects all matching objects.
Path risc::InstanceTree::path_ |
The documentation for this class was generated from the following files:
- /local/lecs/lecs/risc_v0.6.2/sources/build/risc_v0.6.2/src/internal_representation/instance_tree.h
- /local/lecs/lecs/risc_v0.6.2/sources/build/risc_v0.6.2/src/internal_representation/instance_tree.cpp