CMS 3D CMS Logo

Classes | Public Member Functions | Private Attributes

edm::WrapperOwningHolder Class Reference

#include <WrapperOwningHolder.h>

Inheritance diagram for edm::WrapperOwningHolder:
edm::WrapperHolder

List of all members.

Classes

struct  EDProductDeleter

Public Member Functions

boost::shared_ptr< void const > makeWrapper (void const *wrapper, WrapperInterfaceBase const *interface)
boost::shared_ptr< void const > product () const
void reset ()
 WrapperOwningHolder (void const *wrapper, WrapperInterfaceBase const *interface)
 WrapperOwningHolder ()
 WrapperOwningHolder (boost::shared_ptr< void const > wrapper, WrapperInterfaceBase const *interface)

Private Attributes

boost::shared_ptr< void const > wrapperOwner_

Detailed Description

Definition at line 13 of file WrapperOwningHolder.h.


Constructor & Destructor Documentation

edm::WrapperOwningHolder::WrapperOwningHolder ( )

Definition at line 11 of file WrapperOwningHolder.cc.

edm::WrapperOwningHolder::WrapperOwningHolder ( void const *  wrapper,
WrapperInterfaceBase const *  interface 
)
edm::WrapperOwningHolder::WrapperOwningHolder ( boost::shared_ptr< void const >  wrapper,
WrapperInterfaceBase const *  interface 
)

Definition at line 13 of file WrapperOwningHolder.cc.


Member Function Documentation

boost::shared_ptr< void const > edm::WrapperOwningHolder::makeWrapper ( void const *  wrapper,
WrapperInterfaceBase const *  interface 
)

Definition at line 23 of file WrapperOwningHolder.cc.

                                                                                             {
     return(boost::shared_ptr<void const>(wrapper, EDProductDeleter(interface)));
  }
boost::shared_ptr<void const> edm::WrapperOwningHolder::product ( ) const [inline]
void edm::WrapperOwningHolder::reset ( void  ) [inline]

Reimplemented from edm::WrapperHolder.

Definition at line 47 of file WrapperOwningHolder.h.

References wrapperOwner_.

Referenced by edm::principal_get_adapter_detail::deleter::operator()().


Member Data Documentation

boost::shared_ptr<void const> edm::WrapperOwningHolder::wrapperOwner_ [private]

Definition at line 53 of file WrapperOwningHolder.h.

Referenced by product(), and reset().