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

edm::ViewBase::~ViewBase ( )
virtual

Definition at line 11 of file View.cc.

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

Definition at line 25 of file View.cc.

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

Definition at line 27 of file View.cc.

27 { }

Member Function Documentation

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

Definition at line 14 of file View.cc.

References doClone(), and AlCaHLTBitMon_ParallelJobs::p.

Referenced by MuonsFromRefitTracksProducer::produce().

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