CMS 3D CMS Logo

helper::CollectionStoreManager< OutputCollection, ClonePolicy > Struct Template Reference

#include <PhysicsTools/UtilAlgos/interface/StoreManagerTrait.h>

List of all members.

Public Types

typedef OutputCollection collection

Public Member Functions

template<typename I>
void cloneAndStore (const I &begin, const I &end, edm::Event &)
template<typename C>
 CollectionStoreManager (const edm::Handle< C > &h)
edm::OrphanHandle< collectionput (edm::Event &evt)
size_t size () const

Private Attributes

std::auto_ptr< collectionselected_


Detailed Description

template<typename OutputCollection, typename ClonePolicy = IteratorToObjectConverter<OutputCollection>>
struct helper::CollectionStoreManager< OutputCollection, ClonePolicy >

Definition at line 93 of file StoreManagerTrait.h.


Member Typedef Documentation

template<typename OutputCollection, typename ClonePolicy = IteratorToObjectConverter<OutputCollection>>
typedef OutputCollection helper::CollectionStoreManager< OutputCollection, ClonePolicy >::collection

Definition at line 94 of file StoreManagerTrait.h.


Constructor & Destructor Documentation

template<typename OutputCollection, typename ClonePolicy = IteratorToObjectConverter<OutputCollection>>
template<typename C>
helper::CollectionStoreManager< OutputCollection, ClonePolicy >::CollectionStoreManager ( const edm::Handle< C > &  h  )  [inline]

Definition at line 96 of file StoreManagerTrait.h.

00096                                                      :
00097     selected_( new OutputCollection ) { 
00098       //      selected_ = OutputCollectionCreator<OutputCollection, C>::createNewCollection(h);
00099     }


Member Function Documentation

template<typename OutputCollection, typename ClonePolicy = IteratorToObjectConverter<OutputCollection>>
template<typename I>
void helper::CollectionStoreManager< OutputCollection, ClonePolicy >::cloneAndStore ( const I &  begin,
const I &  end,
edm::Event  
) [inline]

Definition at line 101 of file StoreManagerTrait.h.

References convert(), I, i, helper::CollectionStoreManager< OutputCollection, ClonePolicy >::selected_, std, and v.

00101                                                                      {
00102       using namespace std;
00103       for( I i = begin; i != end; ++ i ) {
00104         typename ClonePolicy::value_type v = ClonePolicy::convert( i );
00105         selected_->push_back( v );
00106       }
00107     }

template<typename OutputCollection, typename ClonePolicy = IteratorToObjectConverter<OutputCollection>>
edm::OrphanHandle<collection> helper::CollectionStoreManager< OutputCollection, ClonePolicy >::put ( edm::Event evt  )  [inline]

Definition at line 108 of file StoreManagerTrait.h.

References edm::Event::put(), and helper::CollectionStoreManager< OutputCollection, ClonePolicy >::selected_.

00108                                                       {
00109       return evt.put( selected_ );
00110     }

template<typename OutputCollection, typename ClonePolicy = IteratorToObjectConverter<OutputCollection>>
size_t helper::CollectionStoreManager< OutputCollection, ClonePolicy >::size ( void   )  const [inline]

Definition at line 111 of file StoreManagerTrait.h.

References helper::CollectionStoreManager< OutputCollection, ClonePolicy >::selected_.

00111 { return selected_->size(); }


Member Data Documentation

template<typename OutputCollection, typename ClonePolicy = IteratorToObjectConverter<OutputCollection>>
std::auto_ptr<collection> helper::CollectionStoreManager< OutputCollection, ClonePolicy >::selected_ [private]

Definition at line 113 of file StoreManagerTrait.h.

Referenced by helper::CollectionStoreManager< OutputCollection, ClonePolicy >::cloneAndStore(), helper::CollectionStoreManager< OutputCollection, ClonePolicy >::put(), and helper::CollectionStoreManager< OutputCollection, ClonePolicy >::size().


The documentation for this struct was generated from the following file:
Generated on Tue Jun 9 18:47:27 2009 for CMSSW by  doxygen 1.5.4