+
+ std::list<t_line>::iterator k = lista_lineas_logic.begin();
+ while ( k != lista_lineas_logic.end() ){
+ if ( get_logic_item((*k).store_id) != NULL )
+ if ( get_logic_item((*k).store_id)->get_id() == _id ) {
+ get_logic_item((*k).logic_id)->set_out_connected(false);
+ std::cout<< get_logic_item((*k).logic_id)->get_name() <<std::endl;
+ lista_lineas_logic.erase(k);
+ k = lista_lineas_logic.begin();
+ }
+ k++;
+ }
+
+ k = lista_lineas_logic.begin();
+ while ( k != lista_lineas_logic.end() ){
+ if ( get_logic_item((*k).logic_id) != NULL )
+ if ( get_logic_item((*k).logic_id)->get_id() == _id ) {
+ if (dynamic_cast<Not *>(get_logic_item((*k).store_id)))
+ get_logic_item((*k).store_id)->set_in_connected(false);
+ lista_lineas_logic.erase(k);
+ k = lista_lineas_logic.begin();
+ }
+ k++;
+ }