Ignore:
Timestamp:
01/22/21 12:00:29 (3 years ago)
Author:
yushan
Message:

Graph intermedia commit to a tmp branch

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/dev/dev_trunk_graph/src/filter/output_pin.cpp

    r1686 r2019  
    11#include "output_pin.hpp" 
    22#include "exception.hpp" 
    3 #include "workflow_graph.hpp" 
    43 
    54namespace xios 
     
    76  COutputPin::COutputPin(CGarbageCollector& gc, bool manualTrigger /*= false*/) 
    87    : gc(gc) 
    9     , manualTrigger(manualTrigger) 
    10   {  } 
    11  
    12   StdString COutputPin::GetName(void) 
    13   { 
    14     return StdString("Output pin"); 
    15   } 
     8    , manualTrigger(manualTrigger), graphEnabled(false) 
     9  { /* Nothing to do */ } 
    1610 
    1711  void COutputPin::connectOutput(std::shared_ptr<CInputPin> inputPin, size_t inputSlot) 
     
    107101    outputPackets.erase(outputPackets.begin(), outputPackets.lower_bound(timestamp)); 
    108102  } 
    109  
    110   void COutputPin::setParentFiltersTag() 
    111   { 
    112     for(int i=0; i<parent_filters.size(); i++) 
    113     { 
    114  
    115       if(parent_filters[i]->start_graph<0) parent_filters[i]->start_graph = start_graph; 
    116       else parent_filters[i]->start_graph = min(parent_filters[i]->start_graph, start_graph); 
    117  
    118  
    119       if(parent_filters[i]->end_graph<0) parent_filters[i]->end_graph = end_graph;   
    120       else parent_filters[i]->end_graph = max(parent_filters[i]->end_graph, end_graph); 
    121        
    122        
    123       parent_filters[i]->tag += tag; 
    124       parent_filters[i]->setParentFiltersTag(); 
    125     } 
    126   } 
    127  
    128  
    129  
    130  
    131103} // namespace xios 
Note: See TracChangeset for help on using the changeset viewer.