Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
#include "FWCore/ServiceRegistry/interface/PlaceInPathContext.h"
#include "FWCore/ServiceRegistry/interface/PathContext.h"

#include <ostream>

namespace edm {

  PlaceInPathContext::PlaceInPathContext(unsigned int placeInPath) : placeInPath_(placeInPath), pathContext_(nullptr) {}

  std::ostream& operator<<(std::ostream& os, PlaceInPathContext const& ppc) {
    os << "PlaceInPathContext " << ppc.placeInPath() << "\n";
    if (ppc.pathContext()) {
      os << "    " << *ppc.pathContext();
    }
    return os;
  }
}  // namespace edm