CMS 3D CMS Logo

List of all members | Public Member Functions | Protected Attributes
VFATFrameCollection::Iterator Class Reference

the VFATFrameCollection interator More...

#include <VFATFrameCollection.h>

Public Member Functions

const VFATFrameData ()
 returns the frame data of the current element More...
 
bool IsEnd ()
 returns whether the iterator points over the end of the collection More...
 
 Iterator (const VFATFrameCollection *c=nullptr)
 constructor, automatically sets the iterator to the beginning More...
 
void Next ()
 shifts the iterator More...
 
TotemFramePosition Position ()
 returns the DAQ position of the current element More...
 

Protected Attributes

const VFATFrameCollectioncollection
 the pointer to the collection More...
 
value_type value
 interator value More...
 

Detailed Description

the VFATFrameCollection interator

Definition at line 47 of file VFATFrameCollection.h.

Constructor & Destructor Documentation

VFATFrameCollection::Iterator::Iterator ( const VFATFrameCollection c = nullptr)
inline

constructor, automatically sets the iterator to the beginning

Definition at line 57 of file VFATFrameCollection.h.

References VFATFrameCollection::BeginIterator().

57  : collection(c)
virtual value_type BeginIterator() const =0
returns the beginning of the collection
Definition: value.py:1
const VFATFrameCollection * collection
the pointer to the collection

Member Function Documentation

const VFATFrame* VFATFrameCollection::Iterator::Data ( )
inline

returns the frame data of the current element

Definition at line 65 of file VFATFrameCollection.h.

66  { return value.second; }
Definition: value.py:1
bool VFATFrameCollection::Iterator::IsEnd ( )
inline

returns whether the iterator points over the end of the collection

Definition at line 73 of file VFATFrameCollection.h.

References VFATFrameCollection::BeginIterator(), VFATFrameCollection::IsEndIterator(), and VFATFrameCollection::NextIterator().

Referenced by RawToDigiConverter::runCommon().

74  { return collection->IsEndIterator(value); }
virtual bool IsEndIterator(const value_type &) const =0
checks whether the iterator points over the end of the collection
Definition: value.py:1
const VFATFrameCollection * collection
the pointer to the collection
void VFATFrameCollection::Iterator::Next ( )
inline

shifts the iterator

Definition at line 69 of file VFATFrameCollection.h.

References VFATFrameCollection::NextIterator().

virtual value_type NextIterator(const value_type &) const =0
shifts the iterator
Definition: value.py:1
const VFATFrameCollection * collection
the pointer to the collection
TotemFramePosition VFATFrameCollection::Iterator::Position ( )
inline

returns the DAQ position of the current element

Definition at line 61 of file VFATFrameCollection.h.

62  { return value.first; }
Definition: value.py:1

Member Data Documentation

const VFATFrameCollection* VFATFrameCollection::Iterator::collection
protected

the pointer to the collection

Definition at line 53 of file VFATFrameCollection.h.

value_type VFATFrameCollection::Iterator::value
protected