CMS 3D CMS Logo

Public Member Functions | Private Attributes

VIterator< Item > Class Template Reference

#include <DQMStoreStats.h>

Inheritance diagram for VIterator< Item >:
Iterator< Item >

List of all members.

Public Member Functions

virtual Item CurrentItem () const
virtual void First ()
virtual int getIndex ()
virtual bool IsDone () const
virtual void Next ()
virtual int size ()
 VIterator (const std::vector< Item > *aVector)

Private Attributes

unsigned int index
const std::vector< Item > * vector_

Detailed Description

template<class Item>
class VIterator< Item >

Definition at line 86 of file DQMStoreStats.h.


Constructor & Destructor Documentation

template<class Item>
VIterator< Item >::VIterator ( const std::vector< Item > *  aVector) [inline]

Definition at line 89 of file DQMStoreStats.h.

:vector_(aVector),index(0) {;} 

Member Function Documentation

template<class Item>
virtual Item VIterator< Item >::CurrentItem ( ) const [inline, virtual]

Implements Iterator< Item >.

Definition at line 102 of file DQMStoreStats.h.

References VIterator< Item >::index, and VIterator< Item >::vector_.

Referenced by DQMStoreStats::calcIgProfDump().

    {
      return vector_->operator[](index) ;
    }
template<class Item>
virtual void VIterator< Item >::First ( ) [inline, virtual]

Implements Iterator< Item >.

Definition at line 91 of file DQMStoreStats.h.

References VIterator< Item >::index.

Referenced by DQMStoreStats::calcIgProfDump().

{index=0;}
template<class Item>
virtual int VIterator< Item >::getIndex ( ) [inline, virtual]

Definition at line 94 of file DQMStoreStats.h.

References VIterator< Item >::index.

{ return (int)index;}
template<class Item>
virtual bool VIterator< Item >::IsDone ( ) const [inline, virtual]

Implements Iterator< Item >.

Definition at line 96 of file DQMStoreStats.h.

References VIterator< Item >::index, funct::true, and VIterator< Item >::vector_.

Referenced by DQMStoreStats::calcIgProfDump().

    {
      if(index < (unsigned int)vector_->size()) return false ;
      return true ;
    }
template<class Item>
virtual void VIterator< Item >::Next ( ) [inline, virtual]

Implements Iterator< Item >.

Definition at line 92 of file DQMStoreStats.h.

References VIterator< Item >::index.

Referenced by DQMStoreStats::calcIgProfDump().

{ ++index;}
template<class Item>
virtual int VIterator< Item >::size ( void  ) [inline, virtual]

Definition at line 93 of file DQMStoreStats.h.

References VIterator< Item >::vector_.

{ return vector_->size();}

Member Data Documentation

template<class Item>
unsigned int VIterator< Item >::index [private]
template<class Item>
const std::vector<Item>* VIterator< Item >::vector_ [private]