CMS 3D CMS Logo

List of all members | Public Member Functions | Protected Member Functions
edm::ViewBase Class Referenceabstract

#include <View.h>

Inheritance diagram for edm::ViewBase:
edm::View< T > edm::View< reco::PFCandidate >

Public Member Functions

std::unique_ptr< ViewBaseclone () const
 
virtual ~ViewBase ()
 

Protected Member Functions

virtual std::unique_ptr< ViewBasedoClone () const =0
 
ViewBaseoperator= (ViewBase const &)
 
void swap (ViewBase &)
 
 ViewBase ()
 
 ViewBase (ViewBase const &)
 

Detailed Description

Definition at line 43 of file View.h.

Constructor & Destructor Documentation

◆ ~ViewBase()

edm::ViewBase::~ViewBase ( )
virtual

Definition at line 9 of file View.cc.

9 {}

◆ ViewBase() [1/2]

edm::ViewBase::ViewBase ( )
protected

Definition at line 21 of file View.cc.

21 {}

◆ ViewBase() [2/2]

edm::ViewBase::ViewBase ( ViewBase const &  )
protected

Definition at line 23 of file View.cc.

23 {}

Member Function Documentation

◆ clone()

std::unique_ptr< ViewBase > edm::ViewBase::clone ( void  ) const

Definition at line 11 of file View.cc.

11  {
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  }

References cms::cuda::assert(), doClone(), and AlCaHLTBitMon_ParallelJobs::p.

◆ doClone()

virtual std::unique_ptr<ViewBase> edm::ViewBase::doClone ( ) const
protectedpure virtual

Implemented in edm::View< T >, and edm::View< reco::PFCandidate >.

Referenced by clone().

◆ operator=()

ViewBase& edm::ViewBase::operator= ( ViewBase const &  )
protected

◆ swap()

void edm::ViewBase::swap ( ViewBase )
inlineprotected

Definition at line 53 of file View.h.

53 {} // Nothing to swap
cms::cuda::assert
assert(be >=bs)
edm::ViewBase::doClone
virtual std::unique_ptr< ViewBase > doClone() const =0
AlCaHLTBitMon_ParallelJobs.p
def p
Definition: AlCaHLTBitMon_ParallelJobs.py:153