#include "instance_tree.h"
#include "design.h"
#include "definition.h"
#include "event.h"
#include "hierarchical_channel.h"
#include "hierarchical_channel_instance.h"
#include "inoutport.h"
#include "inport.h"
#include "instance.h"
#include "object.h"
#include "outport.h"
#include "primitive_channel.h"
#include "primitive_channel_instance.h"
#include "variable.h"
#include "../tools/misc.h"
#include "../tools/variable_helper.h"
Defines | |
#define | RECURSIVE_TREE_WALK(ITER_TYPE, VARIABLE) |
#define | RECURSIVE_TREE_WALK(ITER_TYPE, VARIABLE, VARIABLE_TYPE) |
#define RECURSIVE_TREE_WALK | ( | ITER_TYPE, | |||
VARIABLE, | |||||
VARIABLE_TYPE | ) |
if(type == VARIABLE_TYPE) { \ for( ITER_TYPE \ iter = instance_definition-> VARIABLE .begin(); \ iter != instance_definition-> VARIABLE .end(); \ iter++) { \ if((*iter)->get_ast_node() == var_def) { \ if(current_id == instance_id) { \ InstanceTree temp = *this; \ Element e(instance->get_definition(), *iter); \ temp.path_.push_back(e); \ tree = temp; \ found = true; \ return; \ } \ current_id++; \ } \ } \ }
#define RECURSIVE_TREE_WALK | ( | ITER_TYPE, | |||
VARIABLE | ) |
for( ITER_TYPE \ iter = instance_definition-> VARIABLE .begin(); \ iter != instance_definition-> VARIABLE .end(); \ iter++) { \ if((*iter)->get_ast_node() == var_def) { \ InstanceTree temp = *this; \ Element e(instance->get_definition(), *iter); \ temp.path_.push_back(e); \ occurence.push_back(temp); \ } \ }