CMS 3D CMS Logo

Public Types | Public Member Functions | Private Attributes

edmNew::DetSetVector< T >::FastFiller Class Reference

#include <DetSetVectorNew.h>

List of all members.

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 110 of file DetSetVectorNew.h.


Member Typedef Documentation

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

Definition at line 114 of file DetSetVectorNew.h.

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

Definition at line 113 of file DetSetVectorNew.h.

Definition at line 115 of file DetSetVectorNew.h.

Definition at line 112 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 117 of file DetSetVectorNew.h.

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

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

Definition at line 122 of file DetSetVectorNew.h.

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

                                                                                                 : 
        v(iv), item(it), saveEmpty(isaveEmpty) {
        if (v.filling) dstvdetails::errorFilling();
        v.filling=true;
      }
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 162 of file DetSetVectorNew.h.

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

{ 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 156 of file DetSetVectorNew.h.

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

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