Changeset 1671 for XIOS/dev/dev_trunk_omp/src/filter/output_pin.cpp
- Timestamp:
- 06/04/19 10:00:52 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/dev/dev_trunk_omp/src/filter/output_pin.cpp
r1670 r1671 12 12 if (buildWorkflowGraph) 13 13 { 14 if(InvalidableObject::count_ptr == 0) InvalidableObject::count_ptr = new std::map< StdString, int>; 15 if(InvalidableObject::count_ptr->find(CWorkflowGraph::my_filename) == InvalidableObject::count_ptr->end()) 16 { 17 (*InvalidableObject::count_ptr)[CWorkflowGraph::my_filename] = 0; 18 } 19 20 filterId = (*InvalidableObject::count_ptr)[CWorkflowGraph::my_filename]; 21 printf("output_pin ================ filterId = %d, CWorkflowGraph::my_filename = %s\n", (*InvalidableObject::count_ptr)[CWorkflowGraph::my_filename], CWorkflowGraph::my_filename.c_str()); 22 (*InvalidableObject::count_ptr)[CWorkflowGraph::my_filename]++; 23 24 //filterId = InvalidableObject::count; 25 //InvalidableObject::count++; 14 filterId = InvalidableObject::count; 15 InvalidableObject::count++; 26 16 } 27 17 } … … 52 42 if (buildWorkflowGraph) 53 43 { 54 if(CWorkflowGraph::mapFilterTimestamps_ptr==0) CWorkflowGraph::mapFilterTimestamps_ptr = new std::unordered_map <StdString, std::unordered_map <int, vector<Time> > >;55 if(CWorkflowGraph::timestamps_ptr==0) CWorkflowGraph::timestamps_ptr = new s td::unordered_map< StdString, set<Time>>;56 (*CWorkflowGraph::mapFilterTimestamps_ptr)[ CWorkflowGraph::my_filename][this->getFilterId()].push_back(packet->timestamp);57 (*CWorkflowGraph::timestamps_ptr)[CWorkflowGraph::my_filename].insert(packet->timestamp);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); 58 48 } 59 49
Note: See TracChangeset
for help on using the changeset viewer.