CMS 3D CMS Logo

edm::TransientDataFrame< SIZE > Class Template Reference

#include <DataFormats/Common/interface/TransientDataFrame.h>

List of all members.

Public Types

typedef DataFrame::data_type data_type
typedef DataFrame::id_type id_type

Public Member Functions

id_type id () const
data_typeoperator[] (size_t i)
data_type operator[] (size_t i) const
int size () const
 TransientDataFrame (DataFrame const &iframe)
 TransientDataFrame (id_type i)
 TransientDataFrame ()

Private Attributes

data_type m_data [SIZE]
id_type m_id


Detailed Description

template<unsigned int SIZE>
class edm::TransientDataFrame< SIZE >

Definition at line 16 of file TransientDataFrame.h.


Member Typedef Documentation

template<unsigned int SIZE>
typedef DataFrame::data_type edm::TransientDataFrame< SIZE >::data_type

Definition at line 19 of file TransientDataFrame.h.

template<unsigned int SIZE>
typedef DataFrame::id_type edm::TransientDataFrame< SIZE >::id_type

Definition at line 20 of file TransientDataFrame.h.


Constructor & Destructor Documentation

template<unsigned int SIZE>
edm::TransientDataFrame< SIZE >::TransientDataFrame (  )  [inline]

Definition at line 22 of file TransientDataFrame.h.

00022 {}

template<unsigned int SIZE>
edm::TransientDataFrame< SIZE >::TransientDataFrame ( id_type  i  )  [inline]

Definition at line 23 of file TransientDataFrame.h.

00023 : m_id(i) {}

template<unsigned int SIZE>
edm::TransientDataFrame< SIZE >::TransientDataFrame ( DataFrame const &  iframe  )  [inline]

Definition at line 24 of file TransientDataFrame.h.

References edm::DataFrame::begin(), edmNew::copy(), edm::TransientDataFrame< SIZE >::m_data, and p.

00024                                                  : 
00025       m_id(iframe.id())
00026     {
00027       data_type const * p = iframe.begin();
00028       std::copy(p,p+SIZE,m_data);
00029     }


Member Function Documentation

template<unsigned int SIZE>
id_type edm::TransientDataFrame< SIZE >::id ( void   )  const [inline]

Definition at line 41 of file TransientDataFrame.h.

References edm::TransientDataFrame< SIZE >::m_id.

00041 { return m_id; }

template<unsigned int SIZE>
data_type& edm::TransientDataFrame< SIZE >::operator[] ( size_t  i  )  [inline]

Definition at line 37 of file TransientDataFrame.h.

References edm::TransientDataFrame< SIZE >::m_data.

00037                                      {
00038       return m_data[i];
00039     } 

template<unsigned int SIZE>
data_type edm::TransientDataFrame< SIZE >::operator[] ( size_t  i  )  const [inline]

Definition at line 33 of file TransientDataFrame.h.

References edm::TransientDataFrame< SIZE >::m_data.

00033                                          {
00034       return m_data[i];
00035     } 

template<unsigned int SIZE>
int edm::TransientDataFrame< SIZE >::size ( void   )  const [inline]

Definition at line 31 of file TransientDataFrame.h.

00031 { return SIZE;}


Member Data Documentation

template<unsigned int SIZE>
data_type edm::TransientDataFrame< SIZE >::m_data[SIZE] [private]

Definition at line 45 of file TransientDataFrame.h.

Referenced by edm::TransientDataFrame< SIZE >::operator[](), and edm::TransientDataFrame< SIZE >::TransientDataFrame().

template<unsigned int SIZE>
id_type edm::TransientDataFrame< SIZE >::m_id [private]

Definition at line 44 of file TransientDataFrame.h.

Referenced by edm::TransientDataFrame< SIZE >::id().


The documentation for this class was generated from the following file:
Generated on Tue Jun 9 18:44:26 2009 for CMSSW by  doxygen 1.5.4