Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
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
// Implementation of ViewBase.
7
//------------------------------------------------------------------
8
9
ViewBase::~ViewBase
() {}
10
11
std::unique_ptr<ViewBase>
ViewBase::clone
()
const
{
12
auto
p
=
doClone
();
13
#if !defined(NDEBUG)
14
//move side-effect out of typeid to avoid compiler warning
15
auto
p_get =
p
.get();
16
assert
(
typeid
(*p_get) ==
typeid
(*
this
) &&
"doClone() incorrectly overriden"
);
17
#endif
18
return
p
;
19
}
20
21
ViewBase::ViewBase
() {}
22
23
ViewBase::ViewBase
(
ViewBase
const
&) {}
24
25
}
// namespace edm
cms::cuda::assert
assert(be >=bs)
edm::ViewBase::doClone
virtual std::unique_ptr< ViewBase > doClone() const =0
edm::ViewBase::clone
std::unique_ptr< ViewBase > clone() const
Definition:
View.cc:11
View.h
edm::ViewBase::ViewBase
ViewBase()
Definition:
View.cc:21
edm::ViewBase::~ViewBase
virtual ~ViewBase()
Definition:
View.cc:9
edm::ViewBase
Definition:
View.h:43
AlCaHLTBitMon_ParallelJobs.p
tuple p
Definition:
AlCaHLTBitMon_ParallelJobs.py:153
Generated for CMSSW Reference Manual by
1.8.5