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)
 
virtual ~VIterator ()=default
 
- Public Member Functions inherited from Iterator< Item >
virtual ~Iterator ()=default
 

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 85 of file DQMStoreStats.h.

Constructor & Destructor Documentation

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

Definition at line 88 of file DQMStoreStats.h.

88 :vector_(aVector),index(0) {;}
unsigned int index
const std::vector< Item > * vector_
template<class Item>
virtual VIterator< Item >::~VIterator ( )
virtualdefault

Member Function Documentation

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

Implements Iterator< Item >.

Definition at line 101 of file DQMStoreStats.h.

References diffTreeTool::index.

Referenced by DQMStoreStats::calcIgProfDump().

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

Implements Iterator< Item >.

Definition at line 90 of file DQMStoreStats.h.

References diffTreeTool::index.

Referenced by DQMStoreStats::calcIgProfDump().

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

Definition at line 93 of file DQMStoreStats.h.

References diffTreeTool::index.

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

Implements Iterator< Item >.

Definition at line 95 of file DQMStoreStats.h.

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

Referenced by DQMStoreStats::calcIgProfDump().

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

Implements Iterator< Item >.

Definition at line 91 of file DQMStoreStats.h.

References diffTreeTool::index.

Referenced by DQMStoreStats::calcIgProfDump().

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

Definition at line 92 of file DQMStoreStats.h.

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

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

Member Data Documentation

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

Definition at line 108 of file DQMStoreStats.h.

Referenced by BeautifulSoup.PageElement::insert().

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

Definition at line 107 of file DQMStoreStats.h.