#include <port_mapping_cache.h>
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_ |
This class caches the mapping of ports and the mapped channels
risc::PortMappingCache::PortMappingCache | ( | ) |
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 | ( | ) |
bool risc::PortMappingCache::is_initialized_ [private] |
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).