CMS 3D CMS Logo

helper::MasterCollection< C1 > Struct Template Reference

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

List of all members.

Public Types

typedef edm::Ref< C1 > ref_type

Public Member Functions

const edm::Handle< C1 > & get () const
template<typename R>
getConcreteRef (size_t idx) const
ref_type getRef (size_t idx) const
size_t index (size_t i) const
 MasterCollection (const edm::Handle< C1 > &handle)
size_t size () const

Private Attributes

edm::Handle< C1 > handle_


Detailed Description

template<typename C1>
struct helper::MasterCollection< C1 >

Definition at line 21 of file MasterCollectionHelper.h.


Member Typedef Documentation

template<typename C1>
typedef edm::Ref<C1> helper::MasterCollection< C1 >::ref_type

Definition at line 22 of file MasterCollectionHelper.h.


Constructor & Destructor Documentation

template<typename C1>
helper::MasterCollection< C1 >::MasterCollection ( const edm::Handle< C1 > &  handle  )  [inline, explicit]

Definition at line 23 of file MasterCollectionHelper.h.

00023                                                             : 
00024       handle_(handle) { }


Member Function Documentation

template<typename C1>
const edm::Handle<C1>& helper::MasterCollection< C1 >::get ( void   )  const [inline]

Definition at line 27 of file MasterCollectionHelper.h.

References helper::MasterCollection< C1 >::handle_.

00027 { return handle_; }

template<typename C1>
template<typename R>
R helper::MasterCollection< C1 >::getConcreteRef ( size_t  idx  )  const [inline]

Definition at line 30 of file MasterCollectionHelper.h.

References helper::MasterCollection< C1 >::getRef().

00030 { return getRef(idx); }

template<typename C1>
ref_type helper::MasterCollection< C1 >::getRef ( size_t  idx  )  const [inline]

Definition at line 28 of file MasterCollectionHelper.h.

Referenced by helper::MasterCollection< edm::View< T > >::getConcreteRef(), and helper::MasterCollection< C1 >::getConcreteRef().

00028 { return ref_type(get(), idx); }

template<typename C1>
size_t helper::MasterCollection< C1 >::index ( size_t  i  )  const [inline]

Definition at line 26 of file MasterCollectionHelper.h.

00026 { return i; }

template<typename C1>
size_t helper::MasterCollection< C1 >::size ( void   )  const [inline]

Definition at line 25 of file MasterCollectionHelper.h.

References helper::MasterCollection< C1 >::handle_.

00025 { return handle_->size(); }


Member Data Documentation

template<typename C1>
edm::Handle<C1> helper::MasterCollection< C1 >::handle_ [private]

Definition at line 32 of file MasterCollectionHelper.h.

Referenced by helper::MasterCollection< C1 >::get(), helper::MasterCollection< edm::View< T > >::index(), helper::MasterCollection< edm::View< T > >::MasterCollection(), and helper::MasterCollection< C1 >::size().


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