CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Private Member Functions | Private Attributes | Friends
edm::DataFrame Class Reference

#include <DataFrame.h>

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

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

Private Member Functions

constexpr data_typedata ()
 

Private Attributes

data_type const * m_data
 
id_type m_id
 
size_type m_size
 

Friends

class ::TestDataFrame
 

Detailed Description

Definition at line 15 of file DataFrame.h.

Member Typedef Documentation

Definition at line 22 of file DataFrame.h.

typedef unsigned short edm::DataFrame::data_type

Definition at line 20 of file DataFrame.h.

typedef unsigned int edm::DataFrame::id_type

Definition at line 19 of file DataFrame.h.

Definition at line 21 of file DataFrame.h.

typedef unsigned int edm::DataFrame::size_type

Definition at line 18 of file DataFrame.h.

Constructor & Destructor Documentation

constexpr edm::DataFrame::DataFrame ( )
inline

Definition at line 26 of file DataFrame.h.

References constexpr.

Referenced by DataFrame().

26 : m_id(0), m_data(nullptr), m_size(0){}
data_type const * m_data
Definition: DataFrame.h:75
id_type m_id
Definition: DataFrame.h:74
size_type m_size
Definition: DataFrame.h:76
constexpr edm::DataFrame::DataFrame ( id_type  i,
data_type const *  idata,
size_type  isize 
)
inline

Definition at line 28 of file DataFrame.h.

References constexpr, DataFrame(), and mps_fire::i.

28  :
29  m_id(i), m_data(idata), m_size(isize) {}
data_type const * m_data
Definition: DataFrame.h:75
id_type m_id
Definition: DataFrame.h:74
size_type m_size
Definition: DataFrame.h:76
edm::DataFrame::DataFrame ( DataFrameContainer const &  icont,
size_type  i 
)
inline

Definition at line 211 of file DataFrameContainer.h.

212  :
213  m_id(icont.id(i)), m_data(icont.frame(i)), m_size(icont.stride()){}
data_type const * m_data
Definition: DataFrame.h:75
id_type m_id
Definition: DataFrame.h:74
size_type m_size
Definition: DataFrame.h:76

Member Function Documentation

constexpr iterator edm::DataFrame::begin ( void  )
inline
constexpr const_iterator edm::DataFrame::begin ( void  ) const
inline

Definition at line 54 of file DataFrame.h.

References constexpr, and m_data.

54 { return m_data;}
data_type const * m_data
Definition: DataFrame.h:75
constexpr data_type* edm::DataFrame::data ( )
inlineprivate

Definition at line 70 of file DataFrame.h.

References m_data.

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

70  {
71  return const_cast<data_type *>(m_data);
72  }
data_type const * m_data
Definition: DataFrame.h:75
unsigned short data_type
Definition: DataFrame.h:20
constexpr iterator edm::DataFrame::end ( void  )
inline
constexpr const_iterator edm::DataFrame::end ( void  ) const
inline

Definition at line 57 of file DataFrame.h.

References constexpr, m_data, and m_size.

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

57 { return m_data+m_size;}
data_type const * m_data
Definition: DataFrame.h:75
size_type m_size
Definition: DataFrame.h:76
constexpr id_type edm::DataFrame::id ( ) const
inline

Definition at line 61 of file DataFrame.h.

References constexpr, and m_id.

Referenced by QIE11DataFrame::detid(), QIE10DataFrame::detid(), EcalDataFrame::id(), QIE11DataFrame::id(), and QIE10DataFrame::id().

61 { return m_id;}
id_type m_id
Definition: DataFrame.h:74
constexpr data_type& edm::DataFrame::operator[] ( size_type  i)
inline

Definition at line 38 of file DataFrame.h.

References constexpr, data(), and mps_fire::i.

38  {
39  return data()[i];
40  }
constexpr data_type * data()
Definition: DataFrame.h:70
constexpr data_type edm::DataFrame::operator[] ( size_type  i) const
inline

Definition at line 43 of file DataFrame.h.

References constexpr, mps_fire::i, and m_data.

43  {
44  return m_data[i];
45  }
data_type const * m_data
Definition: DataFrame.h:75
void edm::DataFrame::set ( DataFrameContainer const &  icont,
size_type  i 
)
inline

Definition at line 216 of file DataFrameContainer.h.

References edm::DataFrameContainer::frame(), edm::DataFrameContainer::id(), m_data, m_id, m_size, and edm::DataFrameContainer::stride().

Referenced by edm::DataFrameContainer::IterHelp::operator()().

217  {
218  m_id=icont.id(i);
219  m_data=icont.frame(i);
220  m_size=icont.stride();
221  }
data_type const * m_data
Definition: DataFrame.h:75
id_type m_id
Definition: DataFrame.h:74
size_type m_size
Definition: DataFrame.h:76
constexpr size_type edm::DataFrame::size ( void  ) const
inline

Friends And Related Function Documentation

friend class ::TestDataFrame
friend

Definition at line 68 of file DataFrame.h.

Member Data Documentation

data_type const* edm::DataFrame::m_data
private

Definition at line 75 of file DataFrame.h.

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

id_type edm::DataFrame::m_id
private

Definition at line 74 of file DataFrame.h.

Referenced by id(), and set().

size_type edm::DataFrame::m_size
private

Definition at line 76 of file DataFrame.h.

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