CMS 3D CMS Logo

edm::BranchMapperWithReader< T > Class Template Reference

#include <IOPool/Input/src/BranchMapperWithReader.h>

Inheritance diagram for edm::BranchMapperWithReader< T >:

edm::BranchMapper

List of all members.

Public Member Functions

 BranchMapperWithReader (TBranch *branch, input::EntryNumber entryNumber)
virtual ~BranchMapperWithReader ()

Private Member Functions

virtual void readProvenance_ () const

Private Attributes

TBranch * branchPtr_
input::EntryNumber entryNumber_
std::vector< T > infoVector_
std::vector< T > * pInfoVector_


Detailed Description

template<typename T>
class edm::BranchMapperWithReader< T >

Definition at line 17 of file BranchMapperWithReader.h.


Constructor & Destructor Documentation

template<typename T>
edm::BranchMapperWithReader< T >::BranchMapperWithReader ( TBranch *  branch,
input::EntryNumber  entryNumber 
) [inline]

Definition at line 33 of file BranchMapperWithReader.h.

00033                                                                                                   :
00034          BranchMapper(true),
00035          branchPtr_(branch), entryNumber_(entryNumber),
00036          infoVector_(), pInfoVector_(&infoVector_)
00037   { }

template<typename T>
virtual edm::BranchMapperWithReader< T >::~BranchMapperWithReader (  )  [inline, virtual]

Definition at line 21 of file BranchMapperWithReader.h.

00021 {}


Member Function Documentation

template<typename T>
void edm::BranchMapperWithReader< T >::readProvenance_ (  )  const [inline, private, virtual]

Reimplemented from edm::BranchMapper.

Definition at line 42 of file BranchMapperWithReader.h.

References edm::BranchMapperWithReader< T >::branchPtr_, edm::BranchMapperWithReader< T >::entryNumber_, edm::input::getEntry(), edm::BranchMapperWithReader< T >::infoVector_, edm::BranchMapper::insert(), it, me, and edm::BranchMapperWithReader< T >::pInfoVector_.

00042                                                    {
00043     branchPtr_->SetAddress(&pInfoVector_);
00044     input::getEntry(branchPtr_, entryNumber_);
00045     BranchMapperWithReader<T> * me = const_cast<BranchMapperWithReader<T> *>(this);
00046     for (typename std::vector<T>::const_iterator it = infoVector_.begin(), itEnd = infoVector_.end();
00047       it != itEnd; ++it) {
00048       me->insert(it->makeEntryInfo());
00049     }
00050   }


Member Data Documentation

template<typename T>
TBranch* edm::BranchMapperWithReader< T >::branchPtr_ [private]

Definition at line 26 of file BranchMapperWithReader.h.

Referenced by edm::BranchMapperWithReader< T >::readProvenance_().

template<typename T>
input::EntryNumber edm::BranchMapperWithReader< T >::entryNumber_ [private]

Definition at line 27 of file BranchMapperWithReader.h.

Referenced by edm::BranchMapperWithReader< T >::readProvenance_().

template<typename T>
std::vector<T> edm::BranchMapperWithReader< T >::infoVector_ [private]

Definition at line 28 of file BranchMapperWithReader.h.

Referenced by edm::BranchMapperWithReader< T >::readProvenance_().

template<typename T>
std::vector<T>* edm::BranchMapperWithReader< T >::pInfoVector_ [mutable, private]

Definition at line 29 of file BranchMapperWithReader.h.

Referenced by edm::BranchMapperWithReader< T >::readProvenance_().


The documentation for this class was generated from the following file:
Generated on Tue Jun 9 18:39:41 2009 for CMSSW by  doxygen 1.5.4