CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 39 of file SmallWORMDict.h.

Member Typedef Documentation

Definition at line 40 of file SmallWORMDict.h.

Constructor & Destructor Documentation

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

Definition at line 41 of file SmallWORMDict.h.

41 : v(0){}
SmallWORMDict const * v
Definition: SmallWORMDict.h:57
cond::SmallWORMDict::IterHelp::IterHelp ( SmallWORMDict const &  iv)
inline

Definition at line 42 of file SmallWORMDict.h.

42 : v(&iv){}
SmallWORMDict const * v
Definition: SmallWORMDict.h:57

Member Function Documentation

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

Definition at line 49 of file SmallWORMDict.h.

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

Referenced by operator()().

51  {
52  f.b = b; f.l=l; f.ind=ind;
53  return f;
54  }
double b
Definition: hdecay.h:120
result_type const& cond::SmallWORMDict::IterHelp::operator() ( int  i) const
inline

Definition at line 44 of file SmallWORMDict.h.

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

44  {
45  int k = (0==i) ? 0 : v->m_index[i-1];
46  return frame(&v->m_data[k], v->m_index[i]-k, i);
47  }
int i
Definition: DBlmapReader.cc:9
SmallWORMDict const * v
Definition: SmallWORMDict.h:57
std::vector< unsigned int > m_index
Definition: SmallWORMDict.h:97
Frame const & frame(char const *b, unsigned int l, unsigned int ind) const
Definition: SmallWORMDict.h:49
std::vector< char > m_data
Definition: SmallWORMDict.h:96

Member Data Documentation

Frame cond::SmallWORMDict::IterHelp::f
mutableprivate
SmallWORMDict const* cond::SmallWORMDict::IterHelp::v
private

Definition at line 57 of file SmallWORMDict.h.

Referenced by operator()().