CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Types | Public Member Functions | Private 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)
 
iterator reserve ()
 
iterator resize ()
 
size_type size () const
 
size_type subSize () const
 
size_type vecSize () const
 
virtual ~EZMgrFL ()
 

Private Member Functions

 EZMgrFL ()
 
 EZMgrFL (const EZMgrFL &)
 
EZMgrFLoperator= (const 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 14 of file EZMgrFL.h.

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

Definition at line 16 of file EZMgrFL.h.

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

Definition at line 13 of file EZMgrFL.h.

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

Definition at line 15 of file EZMgrFL.h.

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

Definition at line 18 of file EZMgrFL.h.

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

Definition at line 17 of file EZMgrFL.h.

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

Definition at line 12 of file EZMgrFL.h.

Constructor & Destructor Documentation

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

Definition at line 20 of file EZMgrFL.h.

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

21  : m_vecSize ( vecSize ) ,
22  m_subSize ( subSize )
23  {
24  m_vec.resize(0);
25  assert( subSize > 0 ) ;
26  assert( vecSize > 0 ) ;
27  assert( 0 == m_vec.capacity() ) ;
28  }
assert(m_qm.get())
size_type vecSize() const
Definition: EZMgrFL.h:53
size_type subSize() const
Definition: EZMgrFL.h:50
const size_type m_subSize
Definition: EZMgrFL.h:62
const size_type m_vecSize
Definition: EZMgrFL.h:61
VecType m_vec
Definition: EZMgrFL.h:63
template<class T >
virtual EZMgrFL< T >::~EZMgrFL ( )
inlinevirtual

Definition at line 30 of file EZMgrFL.h.

30 {}
template<class T >
EZMgrFL< T >::EZMgrFL ( )
private
template<class T >
EZMgrFL< T >::EZMgrFL ( const EZMgrFL< T > &  )
private

Member Function Documentation

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

Definition at line 35 of file EZMgrFL.h.

References assert(), i, EZMgrFL< T >::m_subSize, EZMgrFL< T >::m_vec, EZMgrFL< T >::m_vecSize, and lumiQTWidget::t.

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

36  {
37  assert( ( m_vec.size() + m_subSize ) <= m_vecSize ) ;
38  if( 0 == m_vec.capacity() )
39  {
40  m_vec.reserve( m_vecSize ) ;
41  assert( m_vecSize == m_vec.capacity() ) ;
42  }
43  for( size_type i ( 0 ) ; i != m_subSize ; ++i )
44  {
45  m_vec.push_back( t ) ;
46  }
47  return ( m_vec.end() - m_subSize ) ;
48  }
int i
Definition: DBlmapReader.cc:9
VecType::size_type size_type
Definition: EZMgrFL.h:18
assert(m_qm.get())
const size_type m_subSize
Definition: EZMgrFL.h:62
const size_type m_vecSize
Definition: EZMgrFL.h:61
VecType m_vec
Definition: EZMgrFL.h:63
template<class T >
EZMgrFL& EZMgrFL< T >::operator= ( const EZMgrFL< T > &  )
private
template<class T >
iterator EZMgrFL< T >::reserve ( )
inline

Definition at line 32 of file EZMgrFL.h.

References EZMgrFL< T >::assign().

32 { return assign() ; }
iterator assign(const T &t=T())
Definition: EZMgrFL.h:35
template<class T >
iterator EZMgrFL< T >::resize ( )
inline

Definition at line 33 of file EZMgrFL.h.

References EZMgrFL< T >::assign().

Referenced by Vispa.Gui.TextDialog.TextDialog::__init__().

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

Definition at line 51 of file EZMgrFL.h.

References EZMgrFL< T >::m_vec.

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

Definition at line 53 of file EZMgrFL.h.

References EZMgrFL< T >::m_vec.

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

53 { return m_vec.size() ; }
VecType m_vec
Definition: EZMgrFL.h:63

Member Data Documentation

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

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

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