Main Page
Namespaces
Classes
Package Documentation
src
DataFormats
Common
src
View.cc
Go to the documentation of this file.
1
#include "
DataFormats/Common/interface/View.h
"
2
#include <typeinfo>
3
4
namespace
edm
5
{
6
//------------------------------------------------------------------
7
// Implementation of ViewBase.
8
//------------------------------------------------------------------
9
10
11
ViewBase::~ViewBase
() { }
12
13
std::unique_ptr<ViewBase>
14
ViewBase::clone
()
const
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
25
ViewBase::ViewBase
() {}
26
27
ViewBase::ViewBase
(
ViewBase
const
&) { }
28
29
}
AlCaHLTBitMon_ParallelJobs.p
p
Definition:
AlCaHLTBitMon_ParallelJobs.py:153
edm::ViewBase::doClone
virtual std::unique_ptr< ViewBase > doClone() const =0
edm::ViewBase::clone
std::unique_ptr< ViewBase > clone() const
Definition:
View.cc:14
View.h
edm::ViewBase::ViewBase
ViewBase()
Definition:
View.cc:25
edm::ViewBase::~ViewBase
virtual ~ViewBase()
Definition:
View.cc:11
edm::ViewBase
Definition:
View.h:43
edm
HLT enums.
Definition:
AlignableModifier.h:17
Generated for CMSSW Reference Manual by
1.8.11