CMS 3D CMS Logo

Public Types | Public Member Functions | Private Attributes

EcalCondObjectContainer< T > Class Template Reference

#include <EcalCondObjectContainer.h>

List of all members.

Public Types

typedef std::vector< Item >
::const_iterator 
const_iterator
typedef T Item
typedef std::vector< ItemItems
typedef std::vector< Item >
::iterator 
iterator
typedef
EcalCondObjectContainer< T > 
self
typedef Item value_type

Public Member Functions

const Itembarrel (size_t hashedIndex) const
const ItemsbarrelItems () const
const_iterator begin () const
 EcalCondObjectContainer ()
const_iterator end () const
const Itemendcap (size_t hashedIndex) const
const ItemsendcapItems () const
const_iterator find (uint32_t rawId) const
const selfgetMap () const
void insert (std::pair< uint32_t, Item > const &a)
Item const & operator[] (uint32_t rawId) const
Itemoperator[] (uint32_t rawId)
void setValue (const uint32_t id, const Item &item)
size_t size () const
 ~EcalCondObjectContainer ()

Private Attributes

EcalContainer< EBDetId, Itemeb_
EcalContainer< EEDetId, Itemee_

Detailed Description

template<typename T>
class EcalCondObjectContainer< T >

Definition at line 9 of file EcalCondObjectContainer.h.


Member Typedef Documentation

template<typename T>
typedef std::vector<Item>::const_iterator EcalCondObjectContainer< T >::const_iterator

Definition at line 15 of file EcalCondObjectContainer.h.

template<typename T>
typedef T EcalCondObjectContainer< T >::Item

Definition at line 11 of file EcalCondObjectContainer.h.

template<typename T>
typedef std::vector<Item> EcalCondObjectContainer< T >::Items

Definition at line 14 of file EcalCondObjectContainer.h.

template<typename T>
typedef std::vector<Item>::iterator EcalCondObjectContainer< T >::iterator

Definition at line 16 of file EcalCondObjectContainer.h.

template<typename T>
typedef EcalCondObjectContainer<T> EcalCondObjectContainer< T >::self

Definition at line 13 of file EcalCondObjectContainer.h.

template<typename T>
typedef Item EcalCondObjectContainer< T >::value_type

Definition at line 12 of file EcalCondObjectContainer.h.


Constructor & Destructor Documentation

template<typename T>
EcalCondObjectContainer< T >::EcalCondObjectContainer ( ) [inline]

Definition at line 18 of file EcalCondObjectContainer.h.

{};
template<typename T>
EcalCondObjectContainer< T >::~EcalCondObjectContainer ( ) [inline]

Definition at line 19 of file EcalCondObjectContainer.h.

{};

Member Function Documentation

template<typename T>
const Item& EcalCondObjectContainer< T >::barrel ( size_t  hashedIndex) const [inline]
template<typename T>
const Items& EcalCondObjectContainer< T >::barrelItems ( ) const [inline]
template<typename T>
const_iterator EcalCondObjectContainer< T >::begin ( void  ) const [inline]

Definition at line 83 of file EcalCondObjectContainer.h.

                                             {
                        return eb_.begin();
                }
template<typename T>
const_iterator EcalCondObjectContainer< T >::end ( void  ) const [inline]
template<typename T>
const Item& EcalCondObjectContainer< T >::endcap ( size_t  hashedIndex) const [inline]
template<typename T>
const Items& EcalCondObjectContainer< T >::endcapItems ( ) const [inline]
template<typename T>
const_iterator EcalCondObjectContainer< T >::find ( uint32_t  rawId) const [inline]
template<typename T>
const self& EcalCondObjectContainer< T >::getMap ( ) const [inline]
template<typename T>
void EcalCondObjectContainer< T >::insert ( std::pair< uint32_t, Item > const &  a) [inline]
template<typename T>
Item const& EcalCondObjectContainer< T >::operator[] ( uint32_t  rawId) const [inline]

Definition at line 130 of file EcalCondObjectContainer.h.

                                                                {
                        DetId id(rawId);
                        static Item dummy;
                        switch (id.subdetId()) {
                                case EcalBarrel :
                                        { 
                                                return eb_[rawId];
                                        }
                                        break;
                                case EcalEndcap :
                                        { 
                                                return ee_[rawId];
                                        }
                                        break;
                                default:
                                        // FIXME (add throw)
                                        return dummy;
                        }
                }
template<typename T>
Item& EcalCondObjectContainer< T >::operator[] ( uint32_t  rawId) [inline]

Definition at line 109 of file EcalCondObjectContainer.h.

                                                    {
                        DetId id(rawId);
                        static Item dummy;
                        switch (id.subdetId()) {
                                case EcalBarrel :
                                        { 
                                                return eb_[rawId];
                                        }
                                        break;
                                case EcalEndcap :
                                        { 
                                                return ee_[rawId];
                                        }
                                        break;
                                default:
                                        // FIXME (add throw)
                                        return dummy;
                        }
                }
template<typename T>
void EcalCondObjectContainer< T >::setValue ( const uint32_t  id,
const Item item 
) [inline]
template<typename T>
size_t EcalCondObjectContainer< T >::size ( void  ) const [inline]

Member Data Documentation

template<typename T>
EcalContainer< EBDetId, Item > EcalCondObjectContainer< T >::eb_ [private]
template<typename T>
EcalContainer< EEDetId, Item > EcalCondObjectContainer< T >::ee_ [private]