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 45 of file VFATFrameCollection.h.

Constructor & Destructor Documentation

◆ Iterator()

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

constructor, automatically sets the iterator to the beginning

Definition at line 55 of file VFATFrameCollection.h.

References VFATFrameCollection::BeginIterator(), and collection.

55  : collection(c) {
56  if (collection)
58  }
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

◆ Data()

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

returns the frame data of the current element

Definition at line 64 of file VFATFrameCollection.h.

64 { return value.second; }
Definition: value.py:1

◆ IsEnd()

bool VFATFrameCollection::Iterator::IsEnd ( )
inline

returns whether the iterator points over the end of the collection

Definition at line 70 of file VFATFrameCollection.h.

References collection, and VFATFrameCollection::IsEndIterator().

Referenced by RawToDigiConverter::runCommon().

70 { 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

◆ Next()

void VFATFrameCollection::Iterator::Next ( )
inline

shifts the iterator

Definition at line 67 of file VFATFrameCollection.h.

References collection, and VFATFrameCollection::NextIterator().

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

◆ Position()

TotemFramePosition VFATFrameCollection::Iterator::Position ( )
inline

returns the DAQ position of the current element

Definition at line 61 of file VFATFrameCollection.h.

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

Member Data Documentation

◆ collection

const VFATFrameCollection* VFATFrameCollection::Iterator::collection
protected

the pointer to the collection

Definition at line 51 of file VFATFrameCollection.h.

Referenced by IsEnd(), Iterator(), and Next().

◆ value

value_type VFATFrameCollection::Iterator::value
protected