CMS 3D CMS Logo

EZArrayFL< T > Class Template Reference

#include <Geometry/CaloGeometry/interface/EZArrayFL.h>

List of all members.

Public Types

typedef MgrType::const_iterator const_iterator
typedef MgrType::const_reference const_reference
typedef MgrType::iterator iterator
typedef EZMgrFL< T > MgrType
typedef MgrType::reference reference
typedef MgrType::size_type size_type
typedef MgrType::value_type value_type

Public Member Functions

void assign (const T &t=T()) const
const_iterator begin () const
size_type capacity () const
bool empty () const
const_iterator end () const
 EZArrayFL (const MgrType *mgr, const_iterator start, const_iterator finis)
 EZArrayFL (const MgrType *mgr)
const_reference operator[] (const unsigned int i) const
reference operator[] (const unsigned int i)
void resize () const
size_type size () const
bool uninitialized () const
virtual ~EZArrayFL ()

Private Member Functions

 EZArrayFL ()

Private Attributes

iterator m_begin
const MgrTypem_mgr


Detailed Description

template<class T>
class EZArrayFL< T >

Definition at line 21 of file EZArrayFL.h.


Member Typedef Documentation

template<class T>
typedef MgrType::const_iterator EZArrayFL< T >::const_iterator

Definition at line 27 of file EZArrayFL.h.

template<class T>
typedef MgrType::const_reference EZArrayFL< T >::const_reference

Definition at line 29 of file EZArrayFL.h.

template<class T>
typedef MgrType::iterator EZArrayFL< T >::iterator

Definition at line 26 of file EZArrayFL.h.

template<class T>
typedef EZMgrFL< T > EZArrayFL< T >::MgrType

Definition at line 25 of file EZArrayFL.h.

template<class T>
typedef MgrType::reference EZArrayFL< T >::reference

Definition at line 28 of file EZArrayFL.h.

template<class T>
typedef MgrType::size_type EZArrayFL< T >::size_type

Definition at line 30 of file EZArrayFL.h.

template<class T>
typedef MgrType::value_type EZArrayFL< T >::value_type

Definition at line 31 of file EZArrayFL.h.


Constructor & Destructor Documentation

template<class T>
EZArrayFL< T >::EZArrayFL ( const MgrType mgr  )  [inline]

template<class T>
EZArrayFL< T >::EZArrayFL ( const MgrType mgr,
const_iterator  start,
const_iterator  finis 
) [inline]

template<class T>
virtual EZArrayFL< T >::~EZArrayFL (  )  [inline, virtual]

template<class T>
EZArrayFL< T >::EZArrayFL (  )  [private]


Member Function Documentation

template<class T>
void EZArrayFL< T >::assign ( const T &  t = T()  )  const [inline]

Definition at line 54 of file EZArrayFL.h.

References EZMgrFL< T >::assign(), EZArrayFL< T >::m_begin, EZArrayFL< T >::m_mgr, and t.

Referenced by EZArrayFL< T >::operator[](), and EZArrayFL< T >::resize().

00055       {
00056          assert( (iterator)0 == m_begin ) ;
00057          m_begin = m_mgr->assign( t ) ;
00058       }

template<class T>
const_iterator EZArrayFL< T >::begin (  )  const [inline]

Definition at line 60 of file EZArrayFL.h.

References EZArrayFL< T >::m_begin.

Referenced by TrackDetMatchInfo::dumpGeometry(), and CaloCellGeometry::getParmPtr().

00060 { return m_begin ; } 

template<class T>
size_type EZArrayFL< T >::capacity (  )  const [inline]

Definition at line 80 of file EZArrayFL.h.

References EZArrayFL< T >::size().

00080 { return size() ; }

template<class T>
bool EZArrayFL< T >::empty ( void   )  const [inline]

Definition at line 76 of file EZArrayFL.h.

References EZArrayFL< T >::size().

Referenced by CaloCellGeometry::emptyCorners(), and calogeom::IdealCastorTrapezoid::getCorners().

00076 { return ( 0 == size() ) ;  }

template<class T>
const_iterator EZArrayFL< T >::end (  )  const [inline]

Definition at line 61 of file EZArrayFL.h.

References EZArrayFL< T >::m_begin, EZArrayFL< T >::m_mgr, and EZMgrFL< T >::subSize().

Referenced by TrackDetMatchInfo::dumpGeometry().

00061 { return m_begin + m_mgr->subSize() ; }

template<class T>
const_reference EZArrayFL< T >::operator[] ( const unsigned int  i  )  const [inline]

Definition at line 69 of file EZArrayFL.h.

References EZArrayFL< T >::m_begin.

00070       {
00071          return *( m_begin + i ) ;
00072       }

template<class T>
reference EZArrayFL< T >::operator[] ( const unsigned int  i  )  [inline]

Definition at line 63 of file EZArrayFL.h.

References EZArrayFL< T >::assign(), and EZArrayFL< T >::m_begin.

00064       {
00065          if( (iterator)0 == m_begin ) assign() ;
00066          return *( m_begin + i ) ; 
00067       }

template<class T>
void EZArrayFL< T >::resize (  )  const [inline]

Definition at line 52 of file EZArrayFL.h.

References EZArrayFL< T >::assign().

00052 { assign() ; }

template<class T>
size_type EZArrayFL< T >::size ( void   )  const [inline]

Definition at line 78 of file EZArrayFL.h.

References EZArrayFL< T >::m_mgr, and EZMgrFL< T >::subSize().

Referenced by VisCaloTower::analyze(), VisPFRecHit::analyze(), VisBasicCluster::analyze(), VisPFCluster::analyze(), VisEventSetup::build(), VisEventSetupService::buildCaloDet(), EZArrayFL< T >::capacity(), EZArrayFL< T >::empty(), CaloCellGeometry::getParmPtr(), BaseCrystal::setCorners(), VisHORecHitTwig::update(), VisPFRecHitTwig::update(), VisEcalRecHitTwig::update(), VisPFClusterTwig::update(), VisEcalUncalibratedRecHitTwig::update(), VisHBHERecHitTwig::update(), VisBasicClusterTwig::update(), VisHFRecHitTwig::update(), VisCaloTowerTwig::update(), VisSuperClusterCollectionTwig::update(), VisBasicClusterCollectionTwig::update(), and VisSuperClusterTwig::update().

00078 { return m_mgr->subSize() ; }

template<class T>
bool EZArrayFL< T >::uninitialized (  )  const [inline]

Definition at line 74 of file EZArrayFL.h.

References EZArrayFL< T >::m_begin.

Referenced by calogeom::IdealObliquePrism::getCorners(), calogeom::IdealZPrism::getCorners(), calogeom::IdealZDCTrapezoid::getCorners(), and PreshowerStrip::getCorners().

00074 { return ( (iterator)0 == m_begin ) ;  }


Member Data Documentation

template<class T>
iterator EZArrayFL< T >::m_begin [mutable, private]

Definition at line 89 of file EZArrayFL.h.

Referenced by EZArrayFL< T >::assign(), EZArrayFL< T >::begin(), EZArrayFL< T >::end(), EZArrayFL< T >::operator[](), and EZArrayFL< T >::uninitialized().

template<class T>
const MgrType* EZArrayFL< T >::m_mgr [private]

Definition at line 90 of file EZArrayFL.h.

Referenced by EZArrayFL< T >::assign(), EZArrayFL< T >::end(), and EZArrayFL< T >::size().


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