CMS 3D CMS Logo

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

#include <EZMgrFL.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 (const T &t=T())
 
 EZMgrFL (size_type vecSize, size_type subSize)
 
 EZMgrFL ()=delete
 
 EZMgrFL (const EZMgrFL &)=delete
 
EZMgrFLoperator= (const EZMgrFL &)=delete
 
iterator reserve ()
 
iterator resize ()
 
size_type size () const
 
size_type subSize () const
 
size_type vecSize () const
 

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

◆ const_iterator

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

Definition at line 12 of file EZMgrFL.h.

◆ const_reference

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

Definition at line 14 of file EZMgrFL.h.

◆ iterator

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

Definition at line 11 of file EZMgrFL.h.

◆ reference

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

Definition at line 13 of file EZMgrFL.h.

◆ size_type

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

Definition at line 16 of file EZMgrFL.h.

◆ value_type

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

Definition at line 15 of file EZMgrFL.h.

◆ VecType

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

Definition at line 10 of file EZMgrFL.h.

Constructor & Destructor Documentation

◆ EZMgrFL() [1/3]

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

Definition at line 18 of file EZMgrFL.h.

References cms::cuda::assert(), EZMgrFL< T >::m_vec, EZMgrFL< T >::subSize(), and EZMgrFL< T >::vecSize().

19  m_vec.resize(0);
20  assert(subSize > 0);
21  assert(vecSize > 0);
22  assert(0 == m_vec.capacity());
23  }
size_type subSize() const
Definition: EZMgrFL.h:40
assert(be >=bs)
const size_type m_subSize
Definition: EZMgrFL.h:51
const size_type m_vecSize
Definition: EZMgrFL.h:50
size_type vecSize() const
Definition: EZMgrFL.h:43
VecType m_vec
Definition: EZMgrFL.h:52

◆ EZMgrFL() [2/3]

template<class T>
EZMgrFL< T >::EZMgrFL ( )
delete

◆ EZMgrFL() [3/3]

template<class T>
EZMgrFL< T >::EZMgrFL ( const EZMgrFL< T > &  )
delete

Member Function Documentation

◆ assign()

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

Definition at line 28 of file EZMgrFL.h.

References cms::cuda::assert(), mps_fire::i, EZMgrFL< T >::m_subSize, EZMgrFL< T >::m_vec, EZMgrFL< T >::m_vecSize, and submitPVValidationJobs::t.

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

28  {
29  assert((m_vec.size() + m_subSize) <= m_vecSize);
30  if (0 == m_vec.capacity()) {
31  m_vec.reserve(m_vecSize);
32  assert(m_vecSize == m_vec.capacity());
33  }
34  for (size_type i(0); i != m_subSize; ++i) {
35  m_vec.emplace_back(t);
36  }
37  return (m_vec.end() - m_subSize);
38  }
VecType::size_type size_type
Definition: EZMgrFL.h:16
assert(be >=bs)
const size_type m_subSize
Definition: EZMgrFL.h:51
const size_type m_vecSize
Definition: EZMgrFL.h:50
VecType m_vec
Definition: EZMgrFL.h:52

◆ operator=()

template<class T>
EZMgrFL& EZMgrFL< T >::operator= ( const EZMgrFL< T > &  )
delete

◆ reserve()

template<class T>
iterator EZMgrFL< T >::reserve ( )
inline

Definition at line 25 of file EZMgrFL.h.

References EZMgrFL< T >::assign().

25 { return assign(); }
iterator assign(const T &t=T())
Definition: EZMgrFL.h:28

◆ resize()

template<class T>
iterator EZMgrFL< T >::resize ( )
inline

Definition at line 26 of file EZMgrFL.h.

References EZMgrFL< T >::assign().

26 { return assign(); }
iterator assign(const T &t=T())
Definition: EZMgrFL.h:28

◆ size()

template<class T>
size_type EZMgrFL< T >::size ( void  ) const
inline

Definition at line 41 of file EZMgrFL.h.

References EZMgrFL< T >::m_vec.

Referenced by ntupleDataFormat._Collection::__iter__(), and ntupleDataFormat._Collection::__len__().

41 { return m_vec.size(); }
VecType m_vec
Definition: EZMgrFL.h:52

◆ subSize()

template<class T>
size_type EZMgrFL< T >::subSize ( ) const
inline

◆ vecSize()

template<class T>
size_type EZMgrFL< T >::vecSize ( ) const
inline

Definition at line 43 of file EZMgrFL.h.

References EZMgrFL< T >::m_vec.

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

43 { return m_vec.size(); }
VecType m_vec
Definition: EZMgrFL.h:52

Member Data Documentation

◆ m_subSize

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

Definition at line 51 of file EZMgrFL.h.

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

◆ m_vec

template<class T>
VecType EZMgrFL< T >::m_vec
private

◆ m_vecSize

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

Definition at line 50 of file EZMgrFL.h.

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