CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
VIterator< Item > Class Template Reference

#include <DQMStoreStats.h>

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

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_
 

Additional Inherited Members

- Protected Member Functions inherited from Iterator< Item >
 Iterator ()
 

Detailed Description

template<class Item>
class VIterator< Item >

Definition at line 84 of file DQMStoreStats.h.

Constructor & Destructor Documentation

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

Definition at line 87 of file DQMStoreStats.h.

87 :vector_(aVector),index(0) {;}
unsigned int index
const std::vector< Item > * vector_

Member Function Documentation

template<class Item>
virtual Item VIterator< Item >::CurrentItem ( ) const
inlinevirtual

Implements Iterator< Item >.

Definition at line 100 of file DQMStoreStats.h.

References diffTreeTool::index.

Referenced by DQMStoreStats::calcIgProfDump().

101  {
102  return vector_->operator[](index) ;
103  }
unsigned int index
const std::vector< Item > * vector_
template<class Item>
virtual void VIterator< Item >::First ( )
inlinevirtual

Implements Iterator< Item >.

Definition at line 89 of file DQMStoreStats.h.

References diffTreeTool::index.

Referenced by DQMStoreStats::calcIgProfDump().

89 {index=0;}
unsigned int index
template<class Item>
virtual int VIterator< Item >::getIndex ( )
inlinevirtual

Definition at line 92 of file DQMStoreStats.h.

References diffTreeTool::index.

92 { return (int)index;}
unsigned int index
template<class Item>
virtual bool VIterator< Item >::IsDone ( ) const
inlinevirtual

Implements Iterator< Item >.

Definition at line 94 of file DQMStoreStats.h.

References diffTreeTool::index, and funct::true.

Referenced by DQMStoreStats::calcIgProfDump().

95  {
96  if(index < (unsigned int)vector_->size()) return false ;
97  return true ;
98  }
unsigned int index
const std::vector< Item > * vector_
template<class Item>
virtual void VIterator< Item >::Next ( )
inlinevirtual

Implements Iterator< Item >.

Definition at line 90 of file DQMStoreStats.h.

References diffTreeTool::index.

Referenced by DQMStoreStats::calcIgProfDump().

90 { ++index;}
unsigned int index
template<class Item>
virtual int VIterator< Item >::size ( void  )
inlinevirtual

Definition at line 91 of file DQMStoreStats.h.

Referenced by ntupleDataFormat._Collection::__iter__(), and ntupleDataFormat._Collection::__len__().

91 { return vector_->size();}
const std::vector< Item > * vector_

Member Data Documentation

template<class Item>
unsigned int VIterator< Item >::index
private

Definition at line 107 of file DQMStoreStats.h.

Referenced by BeautifulSoup.PageElement::insert().

template<class Item>
const std::vector<Item>* VIterator< Item >::vector_
private

Definition at line 106 of file DQMStoreStats.h.