CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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=NULL)
 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 = NULL)
inline

constructor, automatically sets the iterator to the beginning

Definition at line 57 of file VFATFrameCollection.h.

References VFATFrameCollection::BeginIterator(), collection, and value.

57  : collection(c)
virtual value_type BeginIterator() const =0
returns the beginning of the collection
value_type value
interator value
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.

References value.

66  { return value.second; }
value_type value
interator value
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 collection, VFATFrameCollection::IsEndIterator(), and value.

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
value_type value
interator value
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 collection, VFATFrameCollection::NextIterator(), and value.

value_type value
interator value
virtual value_type NextIterator(const value_type &) const =0
shifts the iterator
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.

References value.

62  { return value.first; }
value_type value
interator value

Member Data Documentation

const VFATFrameCollection* VFATFrameCollection::Iterator::collection
protected

the pointer to the collection

Definition at line 53 of file VFATFrameCollection.h.

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

value_type VFATFrameCollection::Iterator::value
protected