#include "dynamic_internal_representation.h"#include "module.h"#include "design.h"#include "internal_representation_helper.h"#include "../tools/misc.h"
Defines | |
| #define | PRINT_OBJECT(TYPE, VARIABLE) |
| #define | PRINT_OBJECT(TYPE, VARIABLE) |
| #define | COMPARE_NAME(TYPE, VARIABLE) |
| #define | SEARACH_FOR_VARIABLE(TYPE, VARIABLE) |
| #define | COMPARE_NAME(TYPE, VARIABLE) |
Functions | |
| DynamicObject * | get_dynamic_object_of_variable (DynamicModule *root, std::string host_module_type_name, int host_module_instance_id, std::string reference_name, int &instance_counter) |
| bool | get_instance_id_of_hosting_module (DynamicModule *root, int *address_of_variable, std::string module_name, int &instance_counter) |
| std::pair< DynamicModule *, std::string > | get_host_module_and_name_of_variable (DynamicModule *root, int *variable) |
| void | get_all_components_of_type (DynamicModule *root, std::string type_name, std::list< DynamicModule * > &modules) |
| DynamicModule * | get_host_module_of_member (DynamicModule *root, int *address_of_variable) |
| DynamicObject * | find_channel (DynamicModule *root, int *address_of_channel) |
| DynamicModule * | get_module_instance (DynamicModule *root, const std::string &name, int instance_id, int &counter) |
| int | get_mapped_channel_id_of_port (DynamicPort *port) |
| void | get_id (DynamicModule *root, std::string name, int *address, int &counter, bool &found) |
Variables | |
| DynamicModule * | ast_root |
| #define COMPARE_NAME | ( | TYPE, | |||
| VARIABLE | ) |
for(std::list< TYPE *>::iterator \ iter_variable = root-> VARIABLE .begin(); \ iter_variable != root-> VARIABLE .end(); \ iter_variable++) { \ if((*iter_variable)->address_ == variable) { \ return std::pair<DynamicModule*, std::string>( \ root, (*iter_variable)->name_); \ } \ }
| #define COMPARE_NAME | ( | TYPE, | |||
| VARIABLE | ) |
for(std::list< TYPE *>::iterator \ iter_variable = root-> VARIABLE .begin(); \ iter_variable != root-> VARIABLE .end(); \ iter_variable++) { \ if((*iter_variable)->name_ == reference_name) { \ return *iter_variable; \ } \ }
| #define PRINT_OBJECT | ( | TYPE, | |||
| VARIABLE | ) |
for(std::list< TYPE *>::iterator \
iter_variable = VARIABLE .begin(); \
iter_variable != VARIABLE .end(); \
iter_variable++) { \
(*iter_variable)->print(indent+1); \
}
| #define PRINT_OBJECT | ( | TYPE, | |||
| VARIABLE | ) |
for(std::list< TYPE *>::iterator \
iter_variable = VARIABLE .begin(); \
iter_variable != VARIABLE .end(); \
iter_variable++) { \
(*iter_variable)->print(indent+1); \
}
| #define SEARACH_FOR_VARIABLE | ( | TYPE, | |||
| VARIABLE | ) |
for(std::list< TYPE *>::iterator \ iter_variable = root-> VARIABLE .begin(); \ iter_variable != root-> VARIABLE .end(); \ iter_variable++) { \ if((*iter_variable)->address_ == address_of_variable) { \ return true; \ } \ }
| DynamicObject* find_channel | ( | DynamicModule * | root, | |
| int * | address_of_channel | |||
| ) |
| void get_all_components_of_type | ( | DynamicModule * | root, | |
| std::string | type_name, | |||
| std::list< DynamicModule * > & | modules | |||
| ) |
| DynamicObject* get_dynamic_object_of_variable | ( | DynamicModule * | root, | |
| std::string | host_module_type_name, | |||
| int | host_module_instance_id, | |||
| std::string | reference_name, | |||
| int & | instance_counter | |||
| ) |
| std::pair<DynamicModule*, std::string> get_host_module_and_name_of_variable | ( | DynamicModule * | root, | |
| int * | variable | |||
| ) |
| DynamicModule* get_host_module_of_member | ( | DynamicModule * | root, | |
| int * | address_of_variable | |||
| ) |
| void get_id | ( | DynamicModule * | root, | |
| std::string | name, | |||
| int * | address, | |||
| int & | counter, | |||
| bool & | found | |||
| ) |
| bool get_instance_id_of_hosting_module | ( | DynamicModule * | root, | |
| int * | address_of_variable, | |||
| std::string | module_name, | |||
| int & | instance_counter | |||
| ) |
| int get_mapped_channel_id_of_port | ( | DynamicPort * | port | ) |
| DynamicModule* get_module_instance | ( | DynamicModule * | root, | |
| const std::string & | name, | |||
| int | instance_id, | |||
| int & | counter | |||
| ) |
1.6.1