CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
PostReadFixupTrait.h
Go to the documentation of this file.
1 #ifndef DataFormats_Common_PostReadFixupTrait_h
2 #define DataFormats_Common_PostReadFixupTrait_h
3 
4 namespace edm {
5  namespace helpers {
7  void touch() { }
8  template<typename C>
9  void operator()(const C &) const { }
10  };
11 
12  struct PostReadFixup {
14  void touch() { fixed_ = false; }
15  template<typename C>
16  void operator()(const C & c) const {
17  if (!fixed_) {
18  fixed_ = true;
19  for (typename C::const_iterator i = c.begin(), e = c.end(); i != e; ++i)
20  (*i)->fixup();
21  }
22  }
23  private:
24  mutable bool fixed_;
25  };
26 
27  template<typename T>
30  };
31  }
32 }
33 
34 #endif
int i
Definition: DBlmapReader.cc:9
void operator()(const C &) const
void operator()(const C &c) const