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  assert(typeid(*(p.get()))==typeid(*this) && "doClone() incorrectly overriden");
18  return p;
19  }
20 
22 
24 
25 }
virtual std::unique_ptr< ViewBase > doClone() const =0
std::unique_ptr< ViewBase > clone() const
Definition: View.cc:14
ViewBase()
Definition: View.cc:21
virtual ~ViewBase()
Definition: View.cc:11
HLT enums.