All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types | Public Member Functions | Public Attributes | List of all members
risc::PathInstanceMapper Class Referenceabstract

This class can be used as a lookup table between an instance id of a module or hierarchical channel and the instance tree. More...

#include <path_instance_mapper.h>

Inheritance diagram for risc::PathInstanceMapper:
Inheritance graph
Collaboration diagram for risc::PathInstanceMapper:
Collaboration graph

Public Types

typedef std::pair
< InstanceTree, int > 
PathWithID
 

Public Member Functions

 PathInstanceMapper ()
 
void print_mapping ()
 The function prints the lookup table in the terminal. More...
 
virtual bool perform_dynamic_analysis ()=0
 This functions returns true if the path instance mapper should perform a dynamic analysis. More...
 
virtual InstanceTree get_instance_tree (int id, std::list< InstanceTree > potential_instances)
 This function returns for a given id and potential mapping candidates the corresponding instance tree. CAUTION: This function is only for the StaticPathInstanceMapper. More...
 
virtual int get_id (InstanceTree tree)
 This function returns for a given tree the corresponding instance id. CAUTION: This function is only for the StaticPathInstanceMapper. More...
 
virtual DynamicModuleget_dynamic_tree_root ()
 This function returns the root node of the dynamic analysis CAUTION: This function is only for the DynamicPathInstanceMapper. More...
 
virtual int * get_global_variable_address (std::string variable_name)
 This functions returns the address of the global variable with the name 'variable_name' CAUTION: This function is only for the DynamicPathInstanceMapper. More...
 
virtual std::string get_global_variable_name (int *variable_address)
 This functions translates the address of a global variable into the associated variable name CAUTION: This function is only for the DynamicPathInstanceMapper. More...
 

Public Attributes

std::vector< PathWithIDpath_to_id_mapping_
 This is the lookup table from path to instance id. More...
 
int max_instances_
 This variable counts what is the max of instances. More...
 

Detailed Description

This class can be used as a lookup table between an instance id of a module or hierarchical channel and the instance tree.

There is a significant difference between the PathInstanceMapper and the DynamicPathInstanceMapper. The DynamicPathInstanceMapper will be generated from the pre simulation of evaluation.

Member Typedef Documentation

Constructor & Destructor Documentation

risc::PathInstanceMapper::PathInstanceMapper ( )

Member Function Documentation

risc::PathInstanceMapper::get_dynamic_tree_root ( )
virtual

This function returns the root node of the dynamic analysis CAUTION: This function is only for the DynamicPathInstanceMapper.

Reimplemented in risc::DynamicPathInstanceMapper.

risc::PathInstanceMapper::get_global_variable_address ( std::string  variable_name)
virtual

This functions returns the address of the global variable with the name 'variable_name' CAUTION: This function is only for the DynamicPathInstanceMapper.

Reimplemented in risc::DynamicPathInstanceMapper.

risc::PathInstanceMapper::get_global_variable_name ( int *  variable_address)
virtual

This functions translates the address of a global variable into the associated variable name CAUTION: This function is only for the DynamicPathInstanceMapper.

Reimplemented in risc::DynamicPathInstanceMapper.

risc::PathInstanceMapper::get_id ( InstanceTree  tree)
virtual

This function returns for a given tree the corresponding instance id. CAUTION: This function is only for the StaticPathInstanceMapper.

Reimplemented in risc::StaticPathInstanceMapper.

risc::PathInstanceMapper::get_instance_tree ( int  id,
std::list< InstanceTree potential_instances 
)
virtual

This function returns for a given id and potential mapping candidates the corresponding instance tree. CAUTION: This function is only for the StaticPathInstanceMapper.

Reimplemented in risc::StaticPathInstanceMapper.

risc::PathInstanceMapper::perform_dynamic_analysis ( )
pure virtual

This functions returns true if the path instance mapper should perform a dynamic analysis.

Implemented in risc::DynamicPathInstanceMapper, and risc::StaticPathInstanceMapper.

risc::PathInstanceMapper::print_mapping ( )

The function prints the lookup table in the terminal.

Member Data Documentation

int risc::PathInstanceMapper::max_instances_

This variable counts what is the max of instances.

std::vector<PathWithID> risc::PathInstanceMapper::path_to_id_mapping_

This is the lookup table from path to instance id.


The documentation for this class was generated from the following files: