CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Private Attributes
cond::SmallWORMDict::IterHelp Struct Reference

#include <SmallWORMDict.h>

Public Types

typedef Frame result_type
 

Public Member Functions

Frame const & frame (char const *b, unsigned int l, unsigned int ind) const
 
 IterHelp ()
 
 IterHelp (SmallWORMDict const &iv)
 
result_type const & operator() (int i) const
 

Private Attributes

Frame f
 
SmallWORMDict const * v
 

Detailed Description

Definition at line 40 of file SmallWORMDict.h.

Member Typedef Documentation

◆ result_type

Definition at line 41 of file SmallWORMDict.h.

Constructor & Destructor Documentation

◆ IterHelp() [1/2]

cond::SmallWORMDict::IterHelp::IterHelp ( )
inline

Definition at line 42 of file SmallWORMDict.h.

42 : v(nullptr) {}

◆ IterHelp() [2/2]

cond::SmallWORMDict::IterHelp::IterHelp ( SmallWORMDict const &  iv)
inline

Definition at line 43 of file SmallWORMDict.h.

43 : v(&iv) {}

Member Function Documentation

◆ frame()

Frame const& cond::SmallWORMDict::IterHelp::frame ( char const *  b,
unsigned int  l,
unsigned int  ind 
) const
inline

Definition at line 50 of file SmallWORMDict.h.

50  {
51  f.b = b;
52  f.l = l;
53  f.ind = ind;
54  return f;
55  }

References cond::SmallWORMDict::Frame::b, b, f, cond::SmallWORMDict::Frame::ind, cond::SmallWORMDict::Frame::l, and cmsLHEtoEOSManager::l.

Referenced by operator()().

◆ operator()()

result_type const& cond::SmallWORMDict::IterHelp::operator() ( int  i) const
inline

Definition at line 45 of file SmallWORMDict.h.

45  {
46  int k = (0 == i) ? 0 : v->m_index[i - 1];
47  return frame(&v->m_data[k], v->m_index[i] - k, i);
48  }

References frame(), mps_fire::i, dqmdumpme::k, cond::SmallWORMDict::m_data, cond::SmallWORMDict::m_index, and v.

Member Data Documentation

◆ f

Frame cond::SmallWORMDict::IterHelp::f
mutableprivate

◆ v

SmallWORMDict const* cond::SmallWORMDict::IterHelp::v
private

Definition at line 58 of file SmallWORMDict.h.

Referenced by operator()().

cond::SmallWORMDict::m_index
std::vector< unsigned int > m_index
Definition: SmallWORMDict.h:95
mps_fire.i
i
Definition: mps_fire.py:355
cond::SmallWORMDict::Frame::b
char const * b
Definition: SmallWORMDict.h:35
cond::SmallWORMDict::IterHelp::frame
Frame const & frame(char const *b, unsigned int l, unsigned int ind) const
Definition: SmallWORMDict.h:50
dqmdumpme.k
k
Definition: dqmdumpme.py:60
b
double b
Definition: hdecay.h:118
cond::SmallWORMDict::IterHelp::v
SmallWORMDict const * v
Definition: SmallWORMDict.h:58
cond::SmallWORMDict::m_data
std::vector< char > m_data
Definition: SmallWORMDict.h:94
cmsLHEtoEOSManager.l
l
Definition: cmsLHEtoEOSManager.py:193
cond::SmallWORMDict::Frame::ind
unsigned int ind
Definition: SmallWORMDict.h:37
cond::SmallWORMDict::IterHelp::f
Frame f
Definition: SmallWORMDict.h:59
cond::SmallWORMDict::Frame::l
unsigned int l
Definition: SmallWORMDict.h:36