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 const data_typeconst_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 ()
 
 DataFrame (DataFrameContainer const &icont, size_type i)
 
constexpr DataFrame (id_type i, data_type const *idata, size_type isize)
 
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

const data_typem_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

◆ const_iterator

Definition at line 21 of file DataFrame.h.

◆ data_type

typedef unsigned short edm::DataFrame::data_type

Definition at line 19 of file DataFrame.h.

◆ id_type

typedef unsigned int edm::DataFrame::id_type

Definition at line 18 of file DataFrame.h.

◆ iterator

Definition at line 20 of file DataFrame.h.

◆ size_type

typedef unsigned int edm::DataFrame::size_type

Definition at line 17 of file DataFrame.h.

Constructor & Destructor Documentation

◆ DataFrame() [1/3]

constexpr edm::DataFrame::DataFrame ( )
inlineconstexpr

Definition at line 23 of file DataFrame.h.

23 : m_id(0), m_data(nullptr), m_size(0) {}

◆ DataFrame() [2/3]

constexpr edm::DataFrame::DataFrame ( id_type  i,
data_type const *  idata,
size_type  isize 
)
inlineconstexpr

Definition at line 24 of file DataFrame.h.

25  : m_id(i), m_data(idata), m_size(isize) {}

◆ DataFrame() [3/3]

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()) {}

Member Function Documentation

◆ begin() [1/2]

constexpr iterator edm::DataFrame::begin ( void  )
inlineconstexpr

◆ begin() [2/2]

constexpr const_iterator edm::DataFrame::begin ( void  ) const
inlineconstexpr

Definition at line 37 of file DataFrame.h.

37 { return m_data; }

References m_data.

◆ data()

constexpr data_type* edm::DataFrame::data ( )
inlineconstexprprivate

Definition at line 49 of file DataFrame.h.

49 { return const_cast<data_type *>(m_data); }

References m_data.

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

◆ end() [1/2]

constexpr iterator edm::DataFrame::end ( void  )
inlineconstexpr

◆ end() [2/2]

constexpr const_iterator edm::DataFrame::end ( void  ) const
inlineconstexpr

Definition at line 39 of file DataFrame.h.

39 { return m_data + m_size; }

References m_data, and m_size.

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

◆ id()

constexpr id_type edm::DataFrame::id ( ) const
inlineconstexpr

◆ operator[]() [1/2]

constexpr data_type& edm::DataFrame::operator[] ( size_type  i)
inlineconstexpr

Definition at line 29 of file DataFrame.h.

29 { return data()[i]; }

References data(), and mps_fire::i.

◆ operator[]() [2/2]

constexpr data_type edm::DataFrame::operator[] ( size_type  i) const
inlineconstexpr

Definition at line 31 of file DataFrame.h.

31 { return m_data[i]; }

References mps_fire::i, and m_data.

◆ set()

void edm::DataFrame::set ( DataFrameContainer const &  icont,
size_type  i 
)
inline

Definition at line 193 of file DataFrameContainer.h.

193  {
194  m_id = icont.id(i);
195  m_data = icont.frame(i);
196  m_size = icont.stride();
197  }

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

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

◆ size()

constexpr size_type edm::DataFrame::size ( void  ) const
inlineconstexpr

Friends And Related Function Documentation

◆ ::TestDataFrame

friend class ::TestDataFrame
friend

Definition at line 47 of file DataFrame.h.

Member Data Documentation

◆ m_data

const data_type* edm::DataFrame::m_data
private

Definition at line 52 of file DataFrame.h.

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

◆ m_id

id_type edm::DataFrame::m_id
private

Definition at line 51 of file DataFrame.h.

Referenced by id(), and set().

◆ m_size

size_type edm::DataFrame::m_size
private

Definition at line 53 of file DataFrame.h.

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

mps_fire.i
i
Definition: mps_fire.py:428
edm::DataFrame::data
constexpr data_type * data()
Definition: DataFrame.h:49
edm::DataFrame::m_data
const data_type * m_data
Definition: DataFrame.h:52
edm::DataFrame::m_id
id_type m_id
Definition: DataFrame.h:51
edm::DataFrame::m_size
size_type m_size
Definition: DataFrame.h:53