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

Item CurrentItem () const override
 
void First () override
 
virtual int getIndex ()
 
bool IsDone () const override
 
void Next () override
 
virtual int size ()
 
 VIterator (const std::vector< Item > *aVector)
 
 ~VIterator () override=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 ()=default
 

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.

89 :vector_(aVector),index(0) {}
unsigned int index
const std::vector< Item > * vector_
template<class Item>
VIterator< Item >::~VIterator ( )
overridedefault

Member Function Documentation

template<class Item>
Item VIterator< Item >::CurrentItem ( ) const
inlineoverridevirtual

Implements Iterator< Item >.

Definition at line 102 of file DQMStoreStats.h.

Referenced by DQMStoreStats::calcIgProfDump().

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

Implements Iterator< Item >.

Definition at line 91 of file DQMStoreStats.h.

Referenced by DQMStoreStats::calcIgProfDump().

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

Definition at line 94 of file DQMStoreStats.h.

94 { return (int)index;}
unsigned int index
template<class Item>
bool VIterator< Item >::IsDone ( ) const
inlineoverridevirtual

Implements Iterator< Item >.

Definition at line 96 of file DQMStoreStats.h.

References funct::true.

Referenced by DQMStoreStats::calcIgProfDump().

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

Implements Iterator< Item >.

Definition at line 92 of file DQMStoreStats.h.

Referenced by DQMStoreStats::calcIgProfDump().

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

Definition at line 93 of file DQMStoreStats.h.

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

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

Member Data Documentation

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

Definition at line 109 of file DQMStoreStats.h.

Referenced by BeautifulSoup.PageElement::insert().

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

Definition at line 108 of file DQMStoreStats.h.