CMS 3D CMS Logo

Public Types | Public Member Functions | Private Member Functions | Private Attributes

EZMgrFL< T > Class Template Reference

#include <EZMgrFL.h>

List of all members.

Public Types

typedef VecType::const_iterator const_iterator
typedef VecType::const_reference const_reference
typedef VecType::iterator iterator
typedef VecType::reference reference
typedef VecType::size_type size_type
typedef VecType::value_type value_type
typedef std::vector< T > VecType

Public Member Functions

iterator assign (const T &t=T()) const
 EZMgrFL (size_type vecSize, size_type subSize)
iterator reserve () const
iterator resize () const
size_type size () const
size_type subSize () const
size_type vecSize () const
virtual ~EZMgrFL ()

Private Member Functions

 EZMgrFL ()
 EZMgrFL (const EZMgrFL &)
EZMgrFLoperator= (const EZMgrFL &)

Private Attributes

const size_type m_subSize
VecType m_vec
const size_type m_vecSize

Detailed Description

template<class T>
class EZMgrFL< T >

Definition at line 8 of file EZMgrFL.h.


Member Typedef Documentation

template<class T>
typedef VecType::const_iterator EZMgrFL< T >::const_iterator

Definition at line 14 of file EZMgrFL.h.

template<class T>
typedef VecType::const_reference EZMgrFL< T >::const_reference

Definition at line 16 of file EZMgrFL.h.

template<class T>
typedef VecType::iterator EZMgrFL< T >::iterator

Definition at line 13 of file EZMgrFL.h.

template<class T>
typedef VecType::reference EZMgrFL< T >::reference

Definition at line 15 of file EZMgrFL.h.

template<class T>
typedef VecType::size_type EZMgrFL< T >::size_type

Definition at line 18 of file EZMgrFL.h.

template<class T>
typedef VecType::value_type EZMgrFL< T >::value_type

Definition at line 17 of file EZMgrFL.h.

template<class T>
typedef std::vector<T> EZMgrFL< T >::VecType

Definition at line 12 of file EZMgrFL.h.


Constructor & Destructor Documentation

template<class T>
EZMgrFL< T >::EZMgrFL ( size_type  vecSize,
size_type  subSize 
) [inline]

Definition at line 20 of file EZMgrFL.h.

                                          : m_vecSize ( vecSize ) ,
                                            m_subSize ( subSize )
      {
         m_vec.resize(0); 
         assert( subSize > 0 ) ;
         assert( vecSize > 0 ) ;
         assert( 0 == m_vec.capacity() ) ;
      }
template<class T>
virtual EZMgrFL< T >::~EZMgrFL ( ) [inline, virtual]

Definition at line 30 of file EZMgrFL.h.

{}
template<class T>
EZMgrFL< T >::EZMgrFL ( ) [private]
template<class T>
EZMgrFL< T >::EZMgrFL ( const EZMgrFL< T > &  ) [private]

Member Function Documentation

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

Definition at line 35 of file EZMgrFL.h.

Referenced by EZArrayFL< GlobalPoint >::assign(), EZMgrFL< EBDetId >::reserve(), and EZMgrFL< EBDetId >::resize().

      {
         assert( ( m_vec.size() + m_subSize ) <= m_vecSize ) ;
         if( 0 == m_vec.capacity() )
         {
            m_vec.reserve( m_vecSize ) ;
            assert( m_vecSize == m_vec.capacity() ) ;
         }
         for( size_type  i ( 0 ) ; i != m_subSize ; ++i )
         {
            m_vec.push_back( t ) ;
         }
         return ( m_vec.end() - m_subSize ) ;
      }
template<class T>
EZMgrFL& EZMgrFL< T >::operator= ( const EZMgrFL< T > &  ) [private]
template<class T>
iterator EZMgrFL< T >::reserve ( ) const [inline]

Definition at line 32 of file EZMgrFL.h.

{ return assign() ; }
template<class T>
iterator EZMgrFL< T >::resize ( ) const [inline]

Definition at line 33 of file EZMgrFL.h.

{ return assign() ; }
template<class T>
size_type EZMgrFL< T >::size ( void  ) const [inline]

Definition at line 51 of file EZMgrFL.h.

{ return m_vec.size(); }
template<class T>
size_type EZMgrFL< T >::subSize ( ) const [inline]
template<class T>
size_type EZMgrFL< T >::vecSize ( ) const [inline]

Definition at line 53 of file EZMgrFL.h.

Referenced by EZMgrFL< EBDetId >::EZMgrFL().

{ return m_vec.size() ; }

Member Data Documentation

template<class T>
const size_type EZMgrFL< T >::m_subSize [private]

Definition at line 62 of file EZMgrFL.h.

Referenced by EZMgrFL< EBDetId >::assign(), and EZMgrFL< EBDetId >::subSize().

template<class T>
VecType EZMgrFL< T >::m_vec [mutable, private]
template<class T>
const size_type EZMgrFL< T >::m_vecSize [private]

Definition at line 61 of file EZMgrFL.h.

Referenced by EZMgrFL< EBDetId >::assign().