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 ()=delete
 
 EZMgrFL (const EZMgrFL &)=delete
 
 EZMgrFL (size_type vecSize, size_type subSize)
 
EZMgrFLoperator= (const EZMgrFL &)=delete
 
iterator reserve ()
 
iterator resize ()
 
size_type size () const
 
size_type subSize () const
 
size_type vecSize () const
 
virtual ~EZMgrFL ()
 

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.

19  m_vec.resize(0);
20  assert(subSize > 0);
21  assert(vecSize > 0);
22  assert(0 == m_vec.capacity());
23  }

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

◆ ~EZMgrFL()

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

Definition at line 25 of file EZMgrFL.h.

25 {}

◆ 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 30 of file EZMgrFL.h.

30  {
31  assert((m_vec.size() + m_subSize) <= m_vecSize);
32  if (0 == m_vec.capacity()) {
33  m_vec.reserve(m_vecSize);
34  assert(m_vecSize == m_vec.capacity());
35  }
36  for (size_type i(0); i != m_subSize; ++i) {
37  m_vec.emplace_back(t);
38  }
39  return (m_vec.end() - m_subSize);
40  }

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

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

◆ operator=()

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

◆ reserve()

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

Definition at line 27 of file EZMgrFL.h.

27 { return assign(); }

References EZMgrFL< T >::assign().

◆ resize()

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

Definition at line 28 of file EZMgrFL.h.

28 { return assign(); }

References EZMgrFL< T >::assign().

◆ size()

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

Definition at line 43 of file EZMgrFL.h.

43 { return m_vec.size(); }

References EZMgrFL< T >::m_vec.

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

◆ 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 45 of file EZMgrFL.h.

45 { return m_vec.size(); }

References EZMgrFL< T >::m_vec.

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

Member Data Documentation

◆ m_subSize

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

Definition at line 53 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 52 of file EZMgrFL.h.

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

EZMgrFL::subSize
size_type subSize() const
Definition: EZMgrFL.h:42
mps_fire.i
i
Definition: mps_fire.py:355
cms::cuda::assert
assert(be >=bs)
EZMgrFL::vecSize
size_type vecSize() const
Definition: EZMgrFL.h:45
EZMgrFL::m_subSize
const size_type m_subSize
Definition: EZMgrFL.h:53
OrderedSet.t
t
Definition: OrderedSet.py:90
EZMgrFL::m_vecSize
const size_type m_vecSize
Definition: EZMgrFL.h:52
EZMgrFL::m_vec
VecType m_vec
Definition: EZMgrFL.h:54
EZMgrFL::assign
iterator assign(const T &t=T())
Definition: EZMgrFL.h:30
EZMgrFL::size_type
VecType::size_type size_type
Definition: EZMgrFL.h:16