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 Attributes
edmNew::DetSetVector< T >::FastFiller Class Reference

#include <DetSetVectorNew.h>

Public Types

typedef DetSetVector< T >::id_type id_type
 
typedef DetSetVector< T >::id_type key_type
 
typedef DetSetVector< T >
::size_type 
size_type
 
typedef DetSetVector< T >
::data_type 
value_type
 

Public Member Functions

void abort ()
 
data_typeback ()
 
DataIter begin ()
 
bool empty () const
 
DataIter end ()
 
 FastFiller (DetSetVector< T > &iv, id_type id, bool isaveEmpty=false)
 
 FastFiller (DetSetVector< T > &iv, typename DetSetVector< T >::Item &it, bool isaveEmpty=false)
 
id_type id () const
 
data_typeoperator[] (size_type i)
 
void push_back (data_type const &d)
 
void reserve (size_type s)
 
void resize (size_type s)
 
size_type size () const
 
 ~FastFiller ()
 

Private Attributes

DetSetVector< T >::Itemitem
 
bool saveEmpty
 
DetSetVector< T > & v
 

Detailed Description

template<typename T>
class edmNew::DetSetVector< T >::FastFiller

Definition at line 111 of file DetSetVectorNew.h.

Member Typedef Documentation

template<typename T>
typedef DetSetVector<T>::id_type edmNew::DetSetVector< T >::FastFiller::id_type

Definition at line 115 of file DetSetVectorNew.h.

template<typename T>
typedef DetSetVector<T>::id_type edmNew::DetSetVector< T >::FastFiller::key_type

Definition at line 114 of file DetSetVectorNew.h.

Definition at line 116 of file DetSetVectorNew.h.

Definition at line 113 of file DetSetVectorNew.h.

Constructor & Destructor Documentation

template<typename T>
edmNew::DetSetVector< T >::FastFiller::FastFiller ( DetSetVector< T > &  iv,
id_type  id,
bool  isaveEmpty = false 
)
inline

Definition at line 118 of file DetSetVectorNew.h.

References edmNew::dstvdetails::errorFilling(), and edmNew::DetSetVector< T >::FastFiller::v.

118  :
119  v(iv), item(v.push_back(id)), saveEmpty(isaveEmpty) {
120  if (v.filling) dstvdetails::errorFilling();
121  v.filling=true;
122  }
DetSetVector< T >::Item & item
template<typename T>
edmNew::DetSetVector< T >::FastFiller::FastFiller ( DetSetVector< T > &  iv,
typename DetSetVector< T >::Item it,
bool  isaveEmpty = false 
)
inline

Definition at line 123 of file DetSetVectorNew.h.

References edmNew::dstvdetails::errorFilling(), and edmNew::DetSetVector< T >::FastFiller::v.

123  :
124  v(iv), item(it), saveEmpty(isaveEmpty) {
125  if (v.filling) dstvdetails::errorFilling();
126  v.filling=true;
127  }
DetSetVector< T >::Item & item
template<typename T>
edmNew::DetSetVector< T >::FastFiller::~FastFiller ( )
inline

Member Function Documentation

template<typename T>
void edmNew::DetSetVector< T >::FastFiller::abort ( )
inline
template<typename T>
data_type& edmNew::DetSetVector< T >::FastFiller::back ( )
inline

Definition at line 163 of file DetSetVectorNew.h.

References edmNew::DetSetVector< T >::FastFiller::v.

Referenced by OldThreeThresholdAlgorithm::clusterizeDetUnit_().

163 { return v.m_data.back();}
template<typename T>
DataIter edmNew::DetSetVector< T >::FastFiller::begin ( void  )
inline
template<typename T>
bool edmNew::DetSetVector< T >::FastFiller::empty ( ) const
inline
template<typename T>
DataIter edmNew::DetSetVector< T >::FastFiller::end ( void  )
inline

Definition at line 157 of file DetSetVectorNew.h.

References edmNew::DetSetVector< T >::FastFiller::v.

Referenced by Types.LuminosityBlockRange::cppID(), and Types.EventRange::cppID().

157 { return v.m_data.end();}
template<typename T>
id_type edmNew::DetSetVector< T >::FastFiller::id ( void  ) const
inline
template<typename T>
data_type& edmNew::DetSetVector< T >::FastFiller::operator[] ( size_type  i)
inline
template<typename T>
void edmNew::DetSetVector< T >::FastFiller::push_back ( data_type const &  d)
inline
template<typename T>
void edmNew::DetSetVector< T >::FastFiller::reserve ( size_type  s)
inline
template<typename T>
void edmNew::DetSetVector< T >::FastFiller::resize ( size_type  s)
inline
template<typename T>
size_type edmNew::DetSetVector< T >::FastFiller::size ( void  ) const
inline

Member Data Documentation

template<typename T>
DetSetVector<T>::Item& edmNew::DetSetVector< T >::FastFiller::item
private
template<typename T>
bool edmNew::DetSetVector< T >::FastFiller::saveEmpty
private
template<typename T>
DetSetVector<T>& edmNew::DetSetVector< T >::FastFiller::v
private