PlaceInPathContext

Macros

Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
#ifndef FWCore_ServiceRegistry_PlaceInPathContext_h
#define FWCore_ServiceRegistry_PlaceInPathContext_h

/**\class edm::PlaceInPathContext

 Description: Holds context information to indentify
 the position within a sequence of modules in a path.
*/
//
// Original Author: W. David Dagenhart
//         Created: 7/31/2013

#include <iosfwd>

namespace edm {

  class PathContext;

  class PlaceInPathContext {
  public:
    PlaceInPathContext(unsigned int);

    unsigned int placeInPath() const { return placeInPath_; }
    PathContext const* pathContext() const { return pathContext_; }

    void setPathContext(PathContext const* v) { pathContext_ = v; }

  private:
    unsigned int placeInPath_;
    PathContext const* pathContext_;
  };

  std::ostream& operator<<(std::ostream&, PlaceInPathContext const&);
}  // namespace edm
#endif