CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Types | Public Member Functions | Private Attributes
EZArrayFL< T > Class Template Reference

#include <EZArrayFL.h>

Public Types

typedef MgrType::const_iterator const_iterator
 
typedef MgrType::const_reference const_reference
 
typedef MgrType::iterator iterator
 
typedef EZMgrFL< TMgrType
 
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)
 
 EZArrayFL (const MgrType *mgr, const_iterator start, const_iterator finis)
 
 EZArrayFL ()
 
reference operator[] (const unsigned int i)
 
const_reference operator[] (const unsigned int i) const
 
void resize () const
 
size_type size () const
 
bool uninitialized () const
 
virtual ~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 ( )
inline

Definition at line 33 of file EZArrayFL.h.

33  : m_begin ( 0 ) ,
34  m_mgr ( ) {}
const MgrType * m_mgr
Definition: EZArrayFL.h:92
iterator m_begin
Definition: EZArrayFL.h:91
template<class T>
EZArrayFL< T >::EZArrayFL ( const MgrType mgr)
inline

Definition at line 36 of file EZArrayFL.h.

36  : m_begin ( 0 ) ,
37  m_mgr ( mgr ) {}
const MgrType * m_mgr
Definition: EZArrayFL.h:92
iterator m_begin
Definition: EZArrayFL.h:91
template<class T>
EZArrayFL< T >::EZArrayFL ( const MgrType mgr,
const_iterator  start,
const_iterator  finis 
)
inline

Definition at line 39 of file EZArrayFL.h.

41  :
42  m_begin ( 0==finis-start ? (iterator)0 : mgr->assign() ) ,
43  m_mgr ( mgr )
44  {
45  assert( ( finis - start ) == m_mgr->subSize() ) ;
46  iterator i ( begin() ) ;
47  for( const_iterator ic ( start ) ; ic != finis ; ++ic )
48  {
49  (*i) = (*ic) ;
50  }
51  }
int i
Definition: DBlmapReader.cc:9
tuple start
Check for commandline option errors.
Definition: dqm_diff.py:58
const MgrType * m_mgr
Definition: EZArrayFL.h:92
const_iterator begin() const
Definition: EZArrayFL.h:63
MgrType::iterator iterator
Definition: EZArrayFL.h:26
size_type subSize() const
Definition: EZMgrFL.h:50
MgrType::const_iterator const_iterator
Definition: EZArrayFL.h:27
iterator m_begin
Definition: EZArrayFL.h:91
template<class T>
virtual EZArrayFL< T >::~EZArrayFL ( )
inlinevirtual

Definition at line 53 of file EZArrayFL.h.

53 {}

Member Function Documentation

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

Definition at line 57 of file EZArrayFL.h.

Referenced by HCaloDetIdAssociator::getDetIdPoints(), EZArrayFL< GlobalPoint >::operator[](), and EZArrayFL< GlobalPoint >::resize().

58  {
59  assert( (iterator)0 == m_begin ) ;
60  m_begin = m_mgr->assign( t ) ;
61  }
const MgrType * m_mgr
Definition: EZArrayFL.h:92
MgrType::iterator iterator
Definition: EZArrayFL.h:26
iterator assign(const T &t=T()) const
Definition: EZMgrFL.h:35
iterator m_begin
Definition: EZArrayFL.h:91
template<class T>
const_iterator EZArrayFL< T >::begin ( void  ) const
inline
template<class T>
size_type EZArrayFL< T >::capacity ( ) const
inline

Definition at line 83 of file EZArrayFL.h.

83 { return size() ; }
size_type size() const
Definition: EZArrayFL.h:81
template<class T>
bool EZArrayFL< T >::empty ( void  ) const
inline

Definition at line 79 of file EZArrayFL.h.

Referenced by CaloCellGeometry::emptyCorners().

79 { return ( 0 == size() ) ; }
size_type size() const
Definition: EZArrayFL.h:81
template<class T>
const_iterator EZArrayFL< T >::end ( void  ) const
inline

Definition at line 64 of file EZArrayFL.h.

Referenced by TrackDetMatchInfo::dumpGeometry(), CaloSubdetectorGeometry::getSummary(), and HcalGeometry::getSummary().

64 { return m_begin + m_mgr->subSize() ; }
const MgrType * m_mgr
Definition: EZArrayFL.h:92
size_type subSize() const
Definition: EZMgrFL.h:50
iterator m_begin
Definition: EZArrayFL.h:91
template<class T>
reference EZArrayFL< T >::operator[] ( const unsigned int  i)
inline

Definition at line 66 of file EZArrayFL.h.

67  {
68  if( (iterator)0 == m_begin ) assign() ;
69  return *( m_begin + i ) ;
70  }
int i
Definition: DBlmapReader.cc:9
MgrType::iterator iterator
Definition: EZArrayFL.h:26
void assign(const T &t=T()) const
Definition: EZArrayFL.h:57
iterator m_begin
Definition: EZArrayFL.h:91
template<class T>
const_reference EZArrayFL< T >::operator[] ( const unsigned int  i) const
inline

Definition at line 72 of file EZArrayFL.h.

73  {
74  return *( m_begin + i ) ;
75  }
int i
Definition: DBlmapReader.cc:9
iterator m_begin
Definition: EZArrayFL.h:91
template<class T>
void EZArrayFL< T >::resize ( ) const
inline
template<class T>
size_type EZArrayFL< T >::size ( void  ) const
inline
template<class T>
bool EZArrayFL< T >::uninitialized ( ) const
inline

Member Data Documentation

template<class T>
iterator EZArrayFL< T >::m_begin
mutableprivate
template<class T>
const MgrType* EZArrayFL< T >::m_mgr
private