risc::PortMappingCache Class Reference

#include <port_mapping_cache.h>

List of all members.

Public Member Functions

 PortMappingCache ()
void initialize (PathInstanceMapper *path_instance_mapper)
void print ()
std::list< std::pair< int,
InstanceTree > > 
get_mapped_module (int channel_id, SgClassDefinition *channel_definition)
 This returns for a given channel instance the mapped modules.

Public Attributes

std::unordered_map< int,
std::unordered_map
< SgVariableDefinition
*, std::pair
< risc::InstanceTree, int > > > 
mapping_
 This maps stores the mapping for ports to channels (instance id of the module where the port is declared) -> variable definiton of the port (path to the mapped channel, instance id of the channel).

Private Attributes

bool is_initialized_

Detailed Description

This class caches the mapping of ports and the mapped channels


Constructor & Destructor Documentation

risc::PortMappingCache::PortMappingCache (  ) 

Member Function Documentation

std::list< std::pair< int, risc::InstanceTree > > risc::PortMappingCache::get_mapped_module ( int  channel_id,
SgClassDefinition *  channel_definition 
)

This returns for a given channel instance the mapped modules.

void risc::PortMappingCache::initialize ( PathInstanceMapper path_instance_mapper  ) 
void risc::PortMappingCache::print (  ) 

Member Data Documentation

std::unordered_map<int, std::unordered_map<SgVariableDefinition*, std::pair<risc::InstanceTree, int> > > risc::PortMappingCache::mapping_

This maps stores the mapping for ports to channels (instance id of the module where the port is declared) -> variable definiton of the port (path to the mapped channel, instance id of the channel).


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

Generated on 12 Jun 2018 by  doxygen 1.6.1