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

◆ const_iterator

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

Definition at line 14 of file EZMgrVL.h.

◆ const_reference

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

Definition at line 16 of file EZMgrVL.h.

◆ iterator

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

Definition at line 13 of file EZMgrVL.h.

◆ reference

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

Definition at line 15 of file EZMgrVL.h.

◆ size_type

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

Definition at line 18 of file EZMgrVL.h.

◆ value_type

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

Definition at line 17 of file EZMgrVL.h.

◆ VecType

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

Definition at line 12 of file EZMgrVL.h.

Constructor & Destructor Documentation

◆ EZMgrVL() [1/3]

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

Definition at line 20 of file EZMgrVL.h.

20  : m_vecSize ( vecSize )
21  {
22  m_vec.resize(0);
23  assert( m_vec.capacity() == 0 ) ;
24  }

References cms::cuda::assert(), and EZMgrVL< T >::m_vec.

◆ ~EZMgrVL()

template<class T >
virtual EZMgrVL< T >::~EZMgrVL ( )
inlinevirtual

Definition at line 26 of file EZMgrVL.h.

26 {}

◆ EZMgrVL() [2/3]

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

◆ EZMgrVL() [3/3]

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

Member Function Documentation

◆ assign()

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

Definition at line 31 of file EZMgrVL.h.

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.emplace_back( t ) ;
42  }
43  return ( m_vec.end() - size ) ;
44  }

References cms::cuda::assert(), mps_fire::i, EZMgrVL< T >::m_vec, EZMgrVL< T >::m_vecSize, findQualityFiles::size, and OrderedSet::t.

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

◆ operator=()

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

◆ reserve()

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

Definition at line 28 of file EZMgrVL.h.

28 { return assign( size ) ; }

References EZMgrVL< T >::assign(), and findQualityFiles::size.

◆ resize()

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

Definition at line 29 of file EZMgrVL.h.

29 { return assign( size ) ; }

References EZMgrVL< T >::assign(), and findQualityFiles::size.

Member Data Documentation

◆ m_vec

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

◆ m_vecSize

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

Definition at line 52 of file EZMgrVL.h.

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

EZMgrVL::size_type
VecType::size_type size_type
Definition: EZMgrVL.h:18
mps_fire.i
i
Definition: mps_fire.py:355
cms::cuda::assert
assert(be >=bs)
EZMgrVL::assign
iterator assign(size_type size, const T &t=T()) const
Definition: EZMgrVL.h:31
OrderedSet.t
t
Definition: OrderedSet.py:90
EZMgrVL::m_vec
VecType m_vec
Definition: EZMgrVL.h:53
EZMgrVL::m_vecSize
const size_type m_vecSize
Definition: EZMgrVL.h:52
findQualityFiles.size
size
Write out results.
Definition: findQualityFiles.py:443