CMS 3D CMS Logo

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

edm::DataFrame Class Reference

#include <DataFrame.h>

List of all members.

Public Types

typedef data_type const * const_iterator
typedef unsigned short data_type
typedef unsigned int id_type
typedef data_typeiterator
typedef unsigned int size_type

Public Member Functions

iterator begin ()
const_iterator begin () const
 DataFrame (id_type i, data_type const *idata, size_type isize)
 DataFrame ()
 DataFrame (DataFrameContainer const &icont, size_type i)
iterator end ()
const_iterator end () const
id_type id () const
data_typeoperator[] (size_type i)
data_type operator[] (size_type i) const
void set (DataFrameContainer const &icont, size_type i)
size_type size () const

Private Member Functions

data_typedata ()

Private Attributes

data_type const * m_data
id_type m_id
size_type m_size

Detailed Description

Definition at line 14 of file DataFrame.h.


Member Typedef Documentation

Definition at line 21 of file DataFrame.h.

typedef unsigned short edm::DataFrame::data_type

Definition at line 19 of file DataFrame.h.

typedef unsigned int edm::DataFrame::id_type

Definition at line 18 of file DataFrame.h.

Definition at line 20 of file DataFrame.h.

typedef unsigned int edm::DataFrame::size_type

Definition at line 17 of file DataFrame.h.


Constructor & Destructor Documentation

edm::DataFrame::DataFrame ( ) [inline]

Definition at line 25 of file DataFrame.h.

: m_id(0), m_data(0), m_size(0){}
edm::DataFrame::DataFrame ( id_type  i,
data_type const *  idata,
size_type  isize 
) [inline]

Definition at line 27 of file DataFrame.h.

                                                                   :
      m_id(i), m_data(idata), m_size(isize) {}
edm::DataFrame::DataFrame ( DataFrameContainer const &  icont,
size_type  i 
) [inline]

Definition at line 198 of file DataFrameContainer.h.

                                    :
    m_id(icont.id(i)), m_data(icont.frame(i)), m_size(icont.stride()){}

Member Function Documentation

iterator edm::DataFrame::begin ( void  ) [inline]
const_iterator edm::DataFrame::begin ( void  ) const [inline]

Definition at line 53 of file DataFrame.h.

References m_data.

{ return m_data;}
data_type* edm::DataFrame::data ( ) [inline, private]

Definition at line 66 of file DataFrame.h.

References m_data.

Referenced by begin(), end(), and operator[]().

                       {
      return const_cast<data_type *>(m_data);
    }
iterator edm::DataFrame::end ( void  ) [inline]

Definition at line 50 of file DataFrame.h.

References data(), and m_size.

Referenced by EcalTBReadout::readOut().

{ return data()+m_size;}
const_iterator edm::DataFrame::end ( void  ) const [inline]

Definition at line 56 of file DataFrame.h.

References m_data, and m_size.

{ return m_data+m_size;}
id_type edm::DataFrame::id ( void  ) const [inline]

Definition at line 60 of file DataFrame.h.

References m_id.

Referenced by EcalDataFrame::id().

{ return m_id;}
data_type edm::DataFrame::operator[] ( size_type  i) const [inline]

Definition at line 42 of file DataFrame.h.

References i, and m_data.

                                            {
      return m_data[i];
    }
data_type& edm::DataFrame::operator[] ( size_type  i) [inline]

Definition at line 37 of file DataFrame.h.

References data(), and i.

                                        {
      return data()[i];
    }
void edm::DataFrame::set ( DataFrameContainer const &  icont,
size_type  i 
) [inline]
size_type edm::DataFrame::size ( void  ) const [inline]

Member Data Documentation

Definition at line 71 of file DataFrame.h.

Referenced by begin(), data(), end(), operator[](), and set().

Definition at line 70 of file DataFrame.h.

Referenced by id(), and set().

Definition at line 72 of file DataFrame.h.

Referenced by end(), set(), and size().