CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
VIterator< Item > Class Template Reference
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 120 of file DQMStoreStats.cc.

Constructor & Destructor Documentation

◆ VIterator()

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

Definition at line 122 of file DQMStoreStats.cc.

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

◆ ~VIterator()

template<class Item>
VIterator< Item >::~VIterator ( )
overridedefault

Member Function Documentation

◆ CurrentItem()

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

Implements Iterator< Item >.

Definition at line 135 of file DQMStoreStats.cc.

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

Referenced by DQMStoreStats::calcIgProfDump().

135 { return vector_->operator[](index); }
unsigned int index
const std::vector< Item > * vector_

◆ First()

template<class Item>
void VIterator< Item >::First ( )
inlineoverridevirtual

Implements Iterator< Item >.

Definition at line 124 of file DQMStoreStats.cc.

References VIterator< Item >::index.

Referenced by DQMStoreStats::calcIgProfDump().

124 { index = 0; }
unsigned int index

◆ getIndex()

template<class Item>
virtual int VIterator< Item >::getIndex ( )
inlinevirtual

Definition at line 127 of file DQMStoreStats.cc.

References VIterator< Item >::index.

127 { return (int)index; }
unsigned int index

◆ IsDone()

template<class Item>
bool VIterator< Item >::IsDone ( ) const
inlineoverridevirtual

Implements Iterator< Item >.

Definition at line 129 of file DQMStoreStats.cc.

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

Referenced by DQMStoreStats::calcIgProfDump().

129  {
130  if (index < (unsigned int)vector_->size())
131  return false;
132  return true;
133  }
unsigned int index
const std::vector< Item > * vector_

◆ Next()

template<class Item>
void VIterator< Item >::Next ( )
inlineoverridevirtual

Implements Iterator< Item >.

Definition at line 125 of file DQMStoreStats.cc.

References VIterator< Item >::index.

Referenced by DQMStoreStats::calcIgProfDump().

125 { ++index; }
unsigned int index

◆ size()

template<class Item>
virtual int VIterator< Item >::size ( void  )
inlinevirtual

Definition at line 126 of file DQMStoreStats.cc.

References VIterator< Item >::vector_.

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

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

Member Data Documentation

◆ index

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

Definition at line 139 of file DQMStoreStats.cc.

Referenced by edmTracerCompactLogViewer.EDModuleTransitionParser::_postJson(), edmTracerCompactLogViewer.ESModuleTransitionParser::_postJson(), edmModuleAllocMonitorAnalyze.EDModuleTransitionParser::_postJsonInfo(), edmModuleAllocMonitorAnalyze.ESModuleTransitionParser::_postJsonInfo(), edmModuleAllocMonitorAnalyze.EDModuleTransitionParser::_postJsonVis(), edmModuleAllocMonitorAnalyze.ESModuleTransitionParser::_postJsonVis(), edmTracerCompactLogViewer.EDModuleTransitionParser::_preJson(), edmTracerCompactLogViewer.ESModuleTransitionParser::_preJson(), edmModuleAllocMonitorAnalyze.EDModuleTransitionParser::_preJsonInfo(), edmModuleAllocMonitorAnalyze.ESModuleTransitionParser::_preJsonInfo(), edmModuleAllocMonitorAnalyze.EDModuleTransitionParser::_preJsonVis(), edmModuleAllocMonitorAnalyze.ESModuleTransitionParser::_preJsonVis(), VIterator< Item >::CurrentItem(), VIterator< Item >::First(), VIterator< Item >::getIndex(), VIterator< Item >::IsDone(), edmTracerCompactLogViewer.PostSourceTransitionParser::jsonInfo(), edmModuleAllocMonitorAnalyze.PostFrameworkTransitionParser::jsonInfo(), edmModuleAllocMonitorAnalyze.PreSourceTransitionParser::jsonInfo(), edmTracerCompactLogViewer.PostEDModulePrefetchingParser::jsonInfo(), edmTracerCompactLogViewer.PostEDModuleAcquireParser::jsonInfo(), edmModuleAllocMonitorAnalyze.PostSourceTransitionParser::jsonInfo(), edmModuleAllocMonitorAnalyze.PreEventReadFromSourceParser::jsonInfo(), edmModuleAllocMonitorAnalyze.PostEventReadFromSourceParser::jsonInfo(), edmModuleAllocMonitorAnalyze.PreFrameworkTransitionParser::jsonVisInfo(), edmModuleAllocMonitorAnalyze.PostFrameworkTransitionParser::jsonVisInfo(), edmModuleAllocMonitorAnalyze.PostSourceTransitionParser::jsonVisInfo(), edmModuleAllocMonitorAnalyze.PostEDModuleAcquireParser::jsonVisInfo(), VIterator< Item >::Next(), edmTracerCompactLogViewer.EDModuleTransitionParser::textPrefix(), edmTracerCompactLogViewer.ESModuleTransitionParser::textPrefix(), edmModuleAllocMonitorAnalyze.EDModuleTransitionParser::textPrefix(), and edmModuleAllocMonitorAnalyze.ESModuleTransitionParser::textPrefix().

◆ vector_

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