CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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

edm::ViewBase::~ViewBase ( )
virtual

Definition at line 9 of file View.cc.

9 {}
edm::ViewBase::ViewBase ( )
protected

Definition at line 21 of file View.cc.

21 {}
edm::ViewBase::ViewBase ( ViewBase const &  )
protected

Definition at line 23 of file View.cc.

23 {}

Member Function Documentation

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

Definition at line 11 of file View.cc.

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

Referenced by MuonsFromRefitTracksProducer::produce().

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  }
assert(be >=bs)
virtual std::unique_ptr< ViewBase > doClone() const =0
virtual std::unique_ptr<ViewBase> edm::ViewBase::doClone ( ) const
protectedpure virtual

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

Referenced by clone().

ViewBase& edm::ViewBase::operator= ( ViewBase const &  )
protected
void edm::ViewBase::swap ( ViewBase )
inlineprotected

Definition at line 53 of file View.h.

53 {} // Nothing to swap