Changeset 1876 for XIOS/trunk/src/filter/ternary_arithmetic_filter.cpp
- Timestamp:
- 05/12/20 16:36:29 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/trunk/src/filter/ternary_arithmetic_filter.cpp
r1768 r1876 12 12 , value2(value2) 13 13 { 14 expression.assign(*yacc_globalInputText_ptr, 0, yacc_globalInputText_ptr->size()-1);15 14 /* Nothing to do */ 16 15 }; … … 26 25 CWorkflowGraph::allocNodeEdge(); 27 26 28 size_t filterhash = std::hash<StdString>{}( expression+to_string(data[0]->timestamp)+this->field->getId());27 size_t filterhash = std::hash<StdString>{}(this->field->content+to_string(data[0]->timestamp)+this->field->getId()); 29 28 30 29 // first round … … 35 34 int edgeID = InvalidableObject::edgeIdGenerator++; 36 35 37 CWorkflowGraph::addNode(this->filterID, "Arithmetic Filter\\n("+ expression+")", 3, 1, 0, data[0]);36 CWorkflowGraph::addNode(this->filterID, "Arithmetic Filter\\n("+this->field->content+")", 3, 1, 0, data[0]); 38 37 (*CWorkflowGraph::mapFilters_ptr_with_info)[this->filterID].filter_tag = this->tag; 39 38 (*CWorkflowGraph::mapFilters_ptr_with_info)[this->filterID].distance = data[0]->distance+1; … … 101 100 , value2(value2) 102 101 { 103 expression.assign(*yacc_globalInputText_ptr, 0, yacc_globalInputText_ptr->size()-1);104 102 /* Nothing to do */ 105 103 }; … … 115 113 CWorkflowGraph::allocNodeEdge(); 116 114 117 size_t filterhash = std::hash<StdString>{}( expression+to_string(data[0]->timestamp)+this->field->getId());115 size_t filterhash = std::hash<StdString>{}(this->field->content+to_string(data[0]->timestamp)+this->field->getId()); 118 116 119 117 // first round … … 124 122 int edgeID = InvalidableObject::edgeIdGenerator++; 125 123 126 CWorkflowGraph::addNode(this->filterID, "Arithmetic Filter\\n("+ expression+")", 3, 1, 0, data[0]);124 CWorkflowGraph::addNode(this->filterID, "Arithmetic Filter\\n("+this->field->content+")", 3, 1, 0, data[0]); 127 125 (*CWorkflowGraph::mapFilters_ptr_with_info)[this->filterID].filter_tag = this->tag; 128 126 (*CWorkflowGraph::mapFilters_ptr_with_info)[this->filterID].distance = data[0]->distance+1; … … 189 187 , value(value) 190 188 { 191 expression.assign(*yacc_globalInputText_ptr, 0, yacc_globalInputText_ptr->size()-1);192 189 /* Nothing to do */ 193 190 }; … … 204 201 CWorkflowGraph::allocNodeEdge(); 205 202 206 size_t filterhash = std::hash<StdString>{}( expression+to_string(data[0]->timestamp)+this->field->getId());203 size_t filterhash = std::hash<StdString>{}(this->field->content+to_string(data[0]->timestamp)+this->field->getId()); 207 204 208 205 // first round … … 213 210 int edgeID = InvalidableObject::edgeIdGenerator++; 214 211 215 CWorkflowGraph::addNode(this->filterID, "Arithmetic Filter\\n("+ expression+")", 3, 1, 0, data[0]);212 CWorkflowGraph::addNode(this->filterID, "Arithmetic Filter\\n("+this->field->content+")", 3, 1, 0, data[0]); 216 213 (*CWorkflowGraph::mapFilters_ptr_with_info)[this->filterID].attributes = this->field->record4graphXiosAttributes(); 217 214 (*CWorkflowGraph::mapFilters_ptr_with_info)[this->filterID].distance = data[0]->distance+1; … … 301 298 , value2(value2) 302 299 { 303 expression.assign(*yacc_globalInputText_ptr, 0, yacc_globalInputText_ptr->size()-1);304 300 /* Nothing to do */ 305 301 }; … … 315 311 CWorkflowGraph::allocNodeEdge(); 316 312 317 size_t filterhash = std::hash<StdString>{}( expression+to_string(data[0]->timestamp)+this->field->getId());313 size_t filterhash = std::hash<StdString>{}(this->field->content+to_string(data[0]->timestamp)+this->field->getId()); 318 314 319 315 // first round … … 324 320 int edgeID = InvalidableObject::edgeIdGenerator++; 325 321 326 CWorkflowGraph::addNode(this->filterID, "Arithmetic Filter\\n("+ expression+")", 3, 1, 0, data[0]);322 CWorkflowGraph::addNode(this->filterID, "Arithmetic Filter\\n("+this->field->content+")", 3, 1, 0, data[0]); 327 323 (*CWorkflowGraph::mapFilters_ptr_with_info)[this->filterID].filter_tag = this->tag; 328 324 (*CWorkflowGraph::mapFilters_ptr_with_info)[this->filterID].distance = data[0]->distance+1; … … 390 386 , value(value) 391 387 { 392 expression.assign(*yacc_globalInputText_ptr, 0, yacc_globalInputText_ptr->size()-1);393 388 /* Nothing to do */ 394 389 }; … … 405 400 CWorkflowGraph::allocNodeEdge(); 406 401 407 size_t filterhash = std::hash<StdString>{}( expression+to_string(data[0]->timestamp)+this->field->getId());402 size_t filterhash = std::hash<StdString>{}(this->field->content+to_string(data[0]->timestamp)+this->field->getId()); 408 403 409 404 // first round … … 414 409 int edgeID = InvalidableObject::edgeIdGenerator++; 415 410 416 CWorkflowGraph::addNode(this->filterID, "Arithmetic Filter\\n("+ expression+")", 3, 1, 0, data[0]);411 CWorkflowGraph::addNode(this->filterID, "Arithmetic Filter\\n("+this->field->content+")", 3, 1, 0, data[0]); 417 412 (*CWorkflowGraph::mapFilters_ptr_with_info)[this->filterID].attributes = this->field->record4graphXiosAttributes(); 418 413 (*CWorkflowGraph::mapFilters_ptr_with_info)[this->filterID].distance = data[0]->distance+1; … … 499 494 , value(value) 500 495 { 501 expression.assign(*yacc_globalInputText_ptr, 0, yacc_globalInputText_ptr->size()-1);502 496 /* Nothing to do */ 503 497 }; … … 514 508 CWorkflowGraph::allocNodeEdge(); 515 509 516 size_t filterhash = std::hash<StdString>{}( expression+to_string(data[0]->timestamp)+this->field->getId());510 size_t filterhash = std::hash<StdString>{}(this->field->content+to_string(data[0]->timestamp)+this->field->getId()); 517 511 518 512 // first round … … 523 517 int edgeID = InvalidableObject::edgeIdGenerator++; 524 518 525 CWorkflowGraph::addNode(this->filterID, "Arithmetic Filter\\n("+ expression+")", 3, 1, 0, data[0]);519 CWorkflowGraph::addNode(this->filterID, "Arithmetic Filter\\n("+this->field->content+")", 3, 1, 0, data[0]); 526 520 (*CWorkflowGraph::mapFilters_ptr_with_info)[this->filterID].attributes = this->field->record4graphXiosAttributes(); 527 521 (*CWorkflowGraph::mapFilters_ptr_with_info)[this->filterID].distance = data[0]->distance+1; … … 608 602 , op(operatorExpr.getOpFieldFieldField(op)) 609 603 { 610 expression.assign(*yacc_globalInputText_ptr, 0, yacc_globalInputText_ptr->size()-1);611 604 /* Nothing to do */ 612 605 }; … … 623 616 CWorkflowGraph::allocNodeEdge(); 624 617 625 size_t filterhash = std::hash<StdString>{}( expression+to_string(data[0]->timestamp)+this->field->getId());618 size_t filterhash = std::hash<StdString>{}(this->field->content+to_string(data[0]->timestamp)+this->field->getId()); 626 619 627 620 // first round … … 632 625 int edgeID = InvalidableObject::edgeIdGenerator++; 633 626 634 CWorkflowGraph::addNode(this->filterID, "Arithmetic Filter\\n("+ expression+")", 3, 1, 0, data[0]);627 CWorkflowGraph::addNode(this->filterID, "Arithmetic Filter\\n("+this->field->content+")", 3, 1, 0, data[0]); 635 628 (*CWorkflowGraph::mapFilters_ptr_with_info)[this->filterID].attributes = this->field->record4graphXiosAttributes(); 636 629 (*CWorkflowGraph::mapFilters_ptr_with_info)[this->filterID].distance = data[0]->distance+1;
Note: See TracChangeset
for help on using the changeset viewer.