CMS 3D CMS Logo

Public Types | Public Member Functions | Private Member Functions | Private Attributes

edmNew::DetSet< T > Class Template Reference

#include <DetSetNew.h>

List of all members.

Public Types

typedef data_type const * const_iterator
typedef DetSetVector< TContainer
typedef T data_type
typedef unsigned int id_type
typedef data_typeiterator
typedef id_type key_type
typedef unsigned int size_type
typedef data_type value_type

Public Member Functions

iterator begin ()
const_iterator begin () const
id_type detId () const
 DetSet (id_type i, data_type const *idata, size_type isize)
 DetSet ()
 DetSet (Container const &icont, typename Container::Item const &item)
bool empty () const
iterator end ()
const_iterator end () const
id_type id () const
data_typeoperator[] (size_type i)
data_type operator[] (size_type i) const
void set (Container const &icont, typename Container::Item const &item)
size_type size () const

Private Member Functions

data_type const * data () const
data_typedata ()

Private Attributes

data_type const * m_data
id_type m_id
size_type m_size

Detailed Description

template<typename T>
class edmNew::DetSet< T >

Definition at line 17 of file DetSetNew.h.


Member Typedef Documentation

template<typename T>
typedef data_type const* edmNew::DetSet< T >::const_iterator

Definition at line 25 of file DetSetNew.h.

template<typename T>
typedef DetSetVector<T> edmNew::DetSet< T >::Container

Definition at line 19 of file DetSetNew.h.

template<typename T>
typedef T edmNew::DetSet< T >::data_type

Definition at line 22 of file DetSetNew.h.

template<typename T>
typedef unsigned int edmNew::DetSet< T >::id_type

Definition at line 21 of file DetSetNew.h.

template<typename T>
typedef data_type* edmNew::DetSet< T >::iterator

Definition at line 24 of file DetSetNew.h.

template<typename T>
typedef id_type edmNew::DetSet< T >::key_type

Definition at line 28 of file DetSetNew.h.

template<typename T>
typedef unsigned int edmNew::DetSet< T >::size_type

Definition at line 20 of file DetSetNew.h.

template<typename T>
typedef data_type edmNew::DetSet< T >::value_type

Definition at line 27 of file DetSetNew.h.


Constructor & Destructor Documentation

template<typename T>
edmNew::DetSet< T >::DetSet ( ) [inline]

Definition at line 32 of file DetSetNew.h.

: m_id(0), m_data(0), m_size(0){}
template<typename T>
edmNew::DetSet< T >::DetSet ( id_type  i,
data_type const *  idata,
size_type  isize 
) [inline]

Definition at line 34 of file DetSetNew.h.

                                                                :
      m_id(i), m_data(idata), m_size(isize) {}
template<typename T>
edmNew::DetSet< T >::DetSet ( Container const &  icont,
typename Container::Item const &  item 
) [inline]

Member Function Documentation

template<typename T>
iterator edmNew::DetSet< T >::begin ( void  ) [inline]
template<typename T>
const_iterator edmNew::DetSet< T >::begin ( void  ) const [inline]

Definition at line 62 of file DetSetNew.h.

{ return data();}
template<typename T>
data_type* edmNew::DetSet< T >::data ( ) [inline, private]

Definition at line 85 of file DetSetNew.h.

                      {
      return const_cast<data_type *>(m_data);
    }
template<typename T>
data_type const* edmNew::DetSet< T >::data ( ) const [inline, private]
template<typename T>
id_type edmNew::DetSet< T >::detId ( ) const [inline]
template<typename T>
bool edmNew::DetSet< T >::empty ( ) const [inline]
template<typename T>
iterator edmNew::DetSet< T >::end ( void  ) [inline]
template<typename T>
const_iterator edmNew::DetSet< T >::end ( void  ) const [inline]

Definition at line 65 of file DetSetNew.h.

{ return data()+m_size;}
template<typename T>
id_type edmNew::DetSet< T >::id ( void  ) const [inline]

Definition at line 69 of file DetSetNew.h.

Referenced by edmNew::dstvdetails::ToRM< B >::operator()().

{ return m_id;}
template<typename T>
data_type edmNew::DetSet< T >::operator[] ( size_type  i) const [inline]

Definition at line 51 of file DetSetNew.h.

                                            {
      return data()[i];
    }
template<typename T>
data_type& edmNew::DetSet< T >::operator[] ( size_type  i) [inline]

Definition at line 46 of file DetSetNew.h.

                                        {
      return data()[i];
    }
template<typename T>
void edmNew::DetSet< T >::set ( Container const &  icont,
typename Container::Item const &  item 
) [inline]
template<typename T>
size_type edmNew::DetSet< T >::size ( void  ) const [inline]

Member Data Documentation

template<typename T>
data_type const* edmNew::DetSet< T >::m_data [private]

Definition at line 90 of file DetSetNew.h.

Referenced by edmNew::DetSet< SiPixelCluster >::data().

template<typename T>
id_type edmNew::DetSet< T >::m_id [private]
template<typename T>
size_type edmNew::DetSet< T >::m_size [private]