CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 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

constexpr edm::DataFrame::DataFrame ( )
inline

Definition at line 23 of file DataFrame.h.

23 : m_id(0), m_data(nullptr), m_size(0) {}
data_type const * m_data
Definition: DataFrame.h:52
id_type m_id
Definition: DataFrame.h:51
size_type m_size
Definition: DataFrame.h:53
constexpr edm::DataFrame::DataFrame ( id_type  i,
data_type const *  idata,
size_type  isize 
)
inline

Definition at line 24 of file DataFrame.h.

25  : m_id(i), m_data(idata), m_size(isize) {}
data_type const * m_data
Definition: DataFrame.h:52
id_type m_id
Definition: DataFrame.h:51
size_type m_size
Definition: DataFrame.h:53
edm::DataFrame::DataFrame ( DataFrameContainer const &  icont,
size_type  i 
)
inline

Definition at line 190 of file DataFrameContainer.h.

191  : m_id(icont.id(i)), m_data(icont.frame(i)), m_size(icont.stride()) {}
data_type const * m_data
Definition: DataFrame.h:52
id_type m_id
Definition: DataFrame.h:51
size_type m_size
Definition: DataFrame.h:53

Member Function Documentation

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

Definition at line 37 of file DataFrame.h.

References m_data.

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

Definition at line 49 of file DataFrame.h.

References m_data.

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

49 { return const_cast<data_type *>(m_data); }
data_type const * m_data
Definition: DataFrame.h:52
unsigned short data_type
Definition: DataFrame.h:19
constexpr iterator edm::DataFrame::end ( void  )
inline
constexpr const_iterator edm::DataFrame::end ( void  ) const
inline

Definition at line 39 of file DataFrame.h.

References m_data, and m_size.

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

39 { return m_data + m_size; }
data_type const * m_data
Definition: DataFrame.h:52
size_type m_size
Definition: DataFrame.h:53
constexpr id_type edm::DataFrame::id ( ) const
inline
constexpr data_type& edm::DataFrame::operator[] ( size_type  i)
inline

Definition at line 29 of file DataFrame.h.

References data(), and mps_fire::i.

29 { return data()[i]; }
constexpr data_type * data()
Definition: DataFrame.h:49
constexpr data_type edm::DataFrame::operator[] ( size_type  i) const
inline

Definition at line 31 of file DataFrame.h.

References mps_fire::i, and m_data.

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

Definition at line 193 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()().

193  {
194  m_id = icont.id(i);
195  m_data = icont.frame(i);
196  m_size = icont.stride();
197  }
data_type const * m_data
Definition: DataFrame.h:52
id_type m_id
Definition: DataFrame.h:51
size_type m_size
Definition: DataFrame.h:53
constexpr size_type edm::DataFrame::size ( void  ) const
inline

Friends And Related Function Documentation

friend class ::TestDataFrame
friend

Definition at line 47 of file DataFrame.h.

Member Data Documentation

data_type const* edm::DataFrame::m_data
private

Definition at line 52 of file DataFrame.h.

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

id_type edm::DataFrame::m_id
private

Definition at line 51 of file DataFrame.h.

Referenced by id(), and set().

size_type edm::DataFrame::m_size
private

Definition at line 53 of file DataFrame.h.

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