Changeset 1677 for XIOS/dev/dev_trunk_omp/src/filter/output_pin.cpp
- Timestamp:
- 06/25/19 16:14:54 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/dev/dev_trunk_omp/src/filter/output_pin.cpp
r1671 r1677 5 5 namespace xios 6 6 { 7 8 7 9 COutputPin::COutputPin(CGarbageCollector& gc, bool manualTrigger /*= false*/, bool buildWorkflowGraph /* =false */) 8 10 : gc(gc) … … 10 12 , buildWorkflowGraph(buildWorkflowGraph) 11 13 { 12 if (buildWorkflowGraph) 13 { 14 filterId = InvalidableObject::count; 15 InvalidableObject::count++; 16 } 14 // parent_filter = new std::vector< void >(0); 17 15 } 18 16 … … 40 38 "The packet cannot be null."); 41 39 42 if (buildWorkflowGraph) 43 { 44 if(CWorkflowGraph::mapFilterTimestamps_ptr==0) CWorkflowGraph::mapFilterTimestamps_ptr = new std::unordered_map <int, vector<Time> >; 45 if(CWorkflowGraph::timestamps_ptr==0) CWorkflowGraph::timestamps_ptr = new set<Time>; 46 (*CWorkflowGraph::mapFilterTimestamps_ptr)[this->getFilterId()].push_back(packet->timestamp); 47 CWorkflowGraph::timestamps_ptr->insert(packet->timestamp); 48 } 40 //if(CXios::isClient) std::cout<<"onOutputReady"<<std::endl; 41 49 42 50 43 if (manualTrigger) // Don't use canBeTriggered here, this function is virtual and can be overriden … … 123 116 } 124 117 125 int COutputPin::getFilterId(void)118 void COutputPin::setParentFiltersTag() 126 119 { 127 return filterId; 120 for(int i=0; i<parent_filters.size(); i++) 121 { 122 parent_filters[i]->tag += tag; 123 parent_filters[i]->setParentFiltersTag(); 124 } 128 125 } 129 126 127 130 128 } // namespace xios
Note: See TracChangeset
for help on using the changeset viewer.