#include <Geometry/CaloGeometry/interface/EZMgrVL.h>
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 (size_type size, const T &t=T()) const |
EZMgrVL (size_type vecSize) | |
iterator | reserve (size_type size) const |
iterator | resize (size_type size) const |
virtual | ~EZMgrVL () |
Private Member Functions | |
EZMgrVL (const EZMgrVL &) | |
EZMgrVL () | |
EZMgrVL & | operator= (const EZMgrVL &) |
Private Attributes | |
VecType | m_vec |
const size_type | m_vecSize |
Definition at line 8 of file EZMgrVL.h.
typedef VecType::const_iterator EZMgrVL< T >::const_iterator |
typedef VecType::const_reference EZMgrVL< T >::const_reference |
typedef VecType::size_type EZMgrVL< T >::size_type |
typedef VecType::value_type EZMgrVL< T >::value_type |
iterator EZMgrVL< T >::assign | ( | size_type | size, | |
const T & | t = T() | |||
) | const [inline] |
Definition at line 31 of file EZMgrVL.h.
References i, EZMgrVL< T >::m_vec, EZMgrVL< T >::m_vecSize, and t.
Referenced by EZArrayVL< T >::assign(), EZMgrVL< T >::reserve(), EZMgrVL< T >::resize(), and EZArrayVL< T >::resize().
00032 { 00033 assert( ( m_vec.size() + size ) <= m_vecSize ) ; 00034 if( 0 == m_vec.capacity() ) 00035 { 00036 m_vec.reserve( m_vecSize ) ; 00037 assert( m_vecSize == m_vec.capacity() ) ; 00038 } 00039 for( size_type i ( 0 ) ; i != size ; ++i ) 00040 { 00041 m_vec.push_back( t ) ; 00042 } 00043 return ( m_vec.end() - size ) ; 00044 }