CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Private Member Functions | Private Attributes
EZMgrVL< T > Class Template Reference

#include <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< TVecType
 

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 ()
 
 EZMgrVL (const EZMgrVL &)
 
EZMgrVLoperator= (const EZMgrVL &)
 

Private Attributes

VecType m_vec
 
const size_type m_vecSize
 

Detailed Description

template<class T>
class EZMgrVL< T >

Definition at line 8 of file EZMgrVL.h.

Member Typedef Documentation

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

Definition at line 14 of file EZMgrVL.h.

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

Definition at line 16 of file EZMgrVL.h.

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

Definition at line 13 of file EZMgrVL.h.

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

Definition at line 15 of file EZMgrVL.h.

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

Definition at line 18 of file EZMgrVL.h.

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

Definition at line 17 of file EZMgrVL.h.

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

Definition at line 12 of file EZMgrVL.h.

Constructor & Destructor Documentation

template<class T >
EZMgrVL< T >::EZMgrVL ( size_type  vecSize)
inline

Definition at line 20 of file EZMgrVL.h.

References EZMgrVL< T >::m_vec.

20  : m_vecSize ( vecSize )
21  {
22  m_vec.resize(0);
23  assert( m_vec.capacity() == 0 ) ;
24  }
const size_type m_vecSize
Definition: EZMgrVL.h:52
VecType m_vec
Definition: EZMgrVL.h:53
template<class T >
virtual EZMgrVL< T >::~EZMgrVL ( )
inlinevirtual

Definition at line 26 of file EZMgrVL.h.

26 {}
template<class T >
EZMgrVL< T >::EZMgrVL ( )
private

Referenced by EZMgrVL< T >::assign().

template<class T >
EZMgrVL< T >::EZMgrVL ( const EZMgrVL< T > &  )
private

Member Function Documentation

template<class T >
iterator EZMgrVL< T >::assign ( size_type  size,
const T t = T() 
) const
inline

Definition at line 31 of file EZMgrVL.h.

References EZMgrVL< T >::EZMgrVL(), mps_fire::i, EZMgrVL< T >::m_vec, EZMgrVL< T >::m_vecSize, EZMgrVL< T >::operator=(), findQualityFiles::size, and lumiQTWidget::t.

Referenced by EZMgrVL< T >::reserve(), and EZMgrVL< T >::resize().

32  {
33  assert( ( m_vec.size() + size ) <= m_vecSize ) ;
34  if( 0 == m_vec.capacity() )
35  {
36  m_vec.reserve( m_vecSize ) ;
37  assert( m_vecSize == m_vec.capacity() ) ;
38  }
39  for( size_type i ( 0 ) ; i != size ; ++i )
40  {
41  m_vec.push_back( t ) ;
42  }
43  return ( m_vec.end() - size ) ;
44  }
size
Write out results.
const size_type m_vecSize
Definition: EZMgrVL.h:52
VecType::size_type size_type
Definition: EZMgrVL.h:18
VecType m_vec
Definition: EZMgrVL.h:53
template<class T >
EZMgrVL& EZMgrVL< T >::operator= ( const EZMgrVL< T > &  )
private

Referenced by EZMgrVL< T >::assign().

template<class T >
iterator EZMgrVL< T >::reserve ( size_type  size) const
inline

Definition at line 28 of file EZMgrVL.h.

References EZMgrVL< T >::assign().

28 { return assign( size ) ; }
size
Write out results.
iterator assign(size_type size, const T &t=T()) const
Definition: EZMgrVL.h:31
template<class T >
iterator EZMgrVL< T >::resize ( size_type  size) const
inline

Member Data Documentation

template<class T >
VecType EZMgrVL< T >::m_vec
mutableprivate

Definition at line 53 of file EZMgrVL.h.

Referenced by EZMgrVL< T >::assign(), and EZMgrVL< T >::EZMgrVL().

template<class T >
const size_type EZMgrVL< T >::m_vecSize
private

Definition at line 52 of file EZMgrVL.h.

Referenced by EZMgrVL< T >::assign().