/local/lecs/lecs/risc_v0.4.0/sources/build/risc_v0.4.0/src/internal_representation/dynamic_internal_representation.cpp File Reference

#include "dynamic_internal_representation.h"
#include "module.h"
#include "internal_representation_helper.h"
#include "../tools/misc.h"
Include dependency graph for dynamic_internal_representation.cpp:

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

DynamicObjectget_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)
DynamicModuleget_host_module_of_member (DynamicModule *root, int *address_of_variable)
DynamicObjectfind_channel (DynamicModule *root, int *address_of_channel)

Variables

DynamicModuleast_root

Define Documentation

#define COMPARE_NAME ( TYPE,
VARIABLE   ) 
Value:
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   ) 
Value:
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   ) 
Value:
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   ) 
Value:
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   ) 
Value:
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;                                           \
      }                                                        \
    }

Function Documentation

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 
)
bool get_instance_id_of_hosting_module ( DynamicModule root,
int *  address_of_variable,
std::string  module_name,
int &  instance_counter 
)

Variable Documentation

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 31 Jul 2017 by  doxygen 1.6.1