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
 
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

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

Definition at line 12 of file EZMgrFL.h.

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

Definition at line 14 of file EZMgrFL.h.

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

Definition at line 11 of file EZMgrFL.h.

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

Definition at line 13 of file EZMgrFL.h.

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

Definition at line 16 of file EZMgrFL.h.

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

Definition at line 15 of file EZMgrFL.h.

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

Definition at line 10 of file EZMgrFL.h.

Constructor & Destructor Documentation

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

Definition at line 18 of file EZMgrFL.h.

References EZMgrFL< T >::m_vec, and EZMgrFL< T >::subSize().

19  m_vec.resize(0);
20  assert(subSize > 0);
21  assert(vecSize > 0);
22  assert(0 == m_vec.capacity());
23  }
size_type vecSize() const
Definition: EZMgrFL.h:45
size_type subSize() const
Definition: EZMgrFL.h:42
const size_type m_subSize
Definition: EZMgrFL.h:53
const size_type m_vecSize
Definition: EZMgrFL.h:52
VecType m_vec
Definition: EZMgrFL.h:54
template<class T>
virtual EZMgrFL< T >::~EZMgrFL ( )
inlinevirtual

Definition at line 25 of file EZMgrFL.h.

25 {}
template<class T>
EZMgrFL< T >::EZMgrFL ( )
delete

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

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

Member Function Documentation

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

Definition at line 30 of file EZMgrFL.h.

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

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  }
VecType::size_type size_type
Definition: EZMgrFL.h:16
const size_type m_subSize
Definition: EZMgrFL.h:53
const size_type m_vecSize
Definition: EZMgrFL.h:52
VecType m_vec
Definition: EZMgrFL.h:54
template<class T>
EZMgrFL& EZMgrFL< T >::operator= ( const EZMgrFL< T > &  )
delete

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

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

Definition at line 27 of file EZMgrFL.h.

References EZMgrFL< T >::assign().

27 { return assign(); }
iterator assign(const T &t=T())
Definition: EZMgrFL.h:30
template<class T>
iterator EZMgrFL< T >::resize ( )
inline
template<class T>
size_type EZMgrFL< T >::size ( void  ) const
inline

Definition at line 43 of file EZMgrFL.h.

References EZMgrFL< T >::m_vec.

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

43 { return m_vec.size(); }
VecType m_vec
Definition: EZMgrFL.h:54
template<class T>
size_type EZMgrFL< T >::subSize ( ) const
inline
template<class T>
size_type EZMgrFL< T >::vecSize ( ) const
inline

Definition at line 45 of file EZMgrFL.h.

References EZMgrFL< T >::EZMgrFL(), EZMgrFL< T >::m_vec, and EZMgrFL< T >::operator=().

45 { return m_vec.size(); }
VecType m_vec
Definition: EZMgrFL.h:54

Member Data Documentation

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

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

Definition at line 52 of file EZMgrFL.h.

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