CMS 3D CMS Logo

Public Types | Public Member Functions | Private Attributes

cond::SmallWORMDict::IterHelp Struct Reference

#include <SmallWORMDict.h>

List of all members.

Public Types

typedef Frame result_type

Public Member Functions

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

Private Attributes

Frame f
SmallWORMDict const * v

Detailed Description

Definition at line 37 of file SmallWORMDict.h.


Member Typedef Documentation

Definition at line 38 of file SmallWORMDict.h.


Constructor & Destructor Documentation

cond::SmallWORMDict::IterHelp::IterHelp ( ) [inline]

Definition at line 39 of file SmallWORMDict.h.

: v(0){}
cond::SmallWORMDict::IterHelp::IterHelp ( SmallWORMDict const &  iv) [inline]

Definition at line 40 of file SmallWORMDict.h.

: v(&iv){}

Member Function Documentation

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

Definition at line 47 of file SmallWORMDict.h.

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

Referenced by operator()().

                                                  { 
        f.b = b; f.l=l; f.ind=ind;
        return f;
      }
result_type const& cond::SmallWORMDict::IterHelp::operator() ( int  i) const [inline]

Definition at line 42 of file SmallWORMDict.h.

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

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

Member Data Documentation

Definition at line 56 of file SmallWORMDict.h.

Referenced by frame().

Definition at line 55 of file SmallWORMDict.h.

Referenced by operator()().