CMS 3D CMS Logo

View.cc
Go to the documentation of this file.
2 #include <typeinfo>
3 
4 namespace edm
5 {
6  //------------------------------------------------------------------
7  // Implementation of ViewBase.
8  //------------------------------------------------------------------
9 
10 
12 
13  std::unique_ptr<ViewBase>
15  {
16  auto p = doClone();
17 #if !defined(NDEBUG)
18  //move side-effect out of typeid to avoid compiler warning
19  auto p_get = p.get();
20  assert(typeid(*p_get)==typeid(*this) && "doClone() incorrectly overriden");
21 #endif
22  return p;
23  }
24 
26 
28 
29 }
virtual std::unique_ptr< ViewBase > doClone() const =0
std::unique_ptr< ViewBase > clone() const
Definition: View.cc:14
ViewBase()
Definition: View.cc:25
virtual ~ViewBase()
Definition: View.cc:11
HLT enums.