ConsumesCollector.cc
Go to the documentation of this file.
2 // vim: set sw=2 expandtab :
3 
5 
6 #include <algorithm>
7 
8 using namespace std;
9 
10 namespace art {
11 
12  array<vector<ProductInfo>, NumBranchTypes> const&
13  ConsumesCollector::getConsumables() const
14  {
15  return consumables_;
16  }
17 
18  void
19  ConsumesCollector::sortConsumables(std::string const& current_process_name)
20  {
21  // Now that we know we have seen all the consumes declarations,
22  // sort the results for fast lookup later.
23  for (auto& perBTConsumables : consumables_) {
24  for (auto& pi : perBTConsumables) {
25  pi.process = ProcessTag{pi.process.name(), current_process_name};
26  }
27  sort(begin(perBTConsumables), end(perBTConsumables));
28  }
29  }
30 
31 } // namespace art
end
while True: pbar.update(maxval-len(onlies[E][S])) #print iS, "/", len(onlies[E][S]) found = False for...
std::string string
Definition: nybbler.cc:12
STL namespace.
decltype(auto) constexpr begin(T &&obj)
ADL-aware version of std::begin.
Definition: StdUtils.h:72
float pi
Definition: units.py:11