CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 113 of file DQMStoreStats.h.

Constructor & Destructor Documentation

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

Definition at line 115 of file DQMStoreStats.h.

115 : 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 128 of file DQMStoreStats.h.

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

Referenced by DQMStoreStats::calcIgProfDump().

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

Implements Iterator< Item >.

Definition at line 117 of file DQMStoreStats.h.

References VIterator< Item >::index.

Referenced by DQMStoreStats::calcIgProfDump().

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

Definition at line 120 of file DQMStoreStats.h.

References VIterator< Item >::index.

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

Implements Iterator< Item >.

Definition at line 122 of file DQMStoreStats.h.

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

Referenced by DQMStoreStats::calcIgProfDump().

122  {
123  if (index < (unsigned int)vector_->size())
124  return false;
125  return true;
126  }
unsigned int index
const std::vector< Item > * vector_
template<class Item>
void VIterator< Item >::Next ( )
inlineoverridevirtual

Implements Iterator< Item >.

Definition at line 118 of file DQMStoreStats.h.

References VIterator< Item >::index.

Referenced by DQMStoreStats::calcIgProfDump().

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

Definition at line 119 of file DQMStoreStats.h.

References VIterator< Item >::vector_.

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

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

Member Data Documentation

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