CMS 3D CMS Logo

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

EZMgrVL< T > Class Template Reference

#include <EZMgrVL.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< 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.

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

Definition at line 26 of file EZMgrVL.h.

{} 
template<class T >
EZMgrVL< T >::EZMgrVL ( ) [private]
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 i, EZMgrVL< T >::m_vec, EZMgrVL< T >::m_vecSize, findQualityFiles::size, and lumiQTWidget::t.

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

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

Definition at line 28 of file EZMgrVL.h.

References EZMgrVL< T >::assign().

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

Definition at line 29 of file EZMgrVL.h.

References EZMgrVL< T >::assign().

{ return assign( size ) ; }

Member Data Documentation

template<class T >
VecType EZMgrVL< T >::m_vec [mutable, private]

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().