StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StDbFieldIIterator.cxx
1 #include "StDbFieldIIterator.h"
2 #include "StDbFieldI.h"
3 #include <cassert>
4 
5 using namespace TxLogging;
6 using namespace StDbField;
7 using namespace std;
8 
9 //_______________________________________________________________________
10 StDbField::Iterator& StDbField::Iterator::operator++() {++fField;return *this;}
11 //_______________________________________________________________________
12 StDbField::Iterator& StDbField::Iterator::operator++(int) {fField++;return *this;}
13 //_______________________________________________________________________
14 StDbFieldI* StDbField::Iterator::operator*() {return *fField;}
15 //_______________________________________________________________________
16 const StDbFieldI* StDbField::Iterator::operator*() const {return *fField;}
17 //_______________________________________________________________________
18 StDbFieldI* StDbField::Iterator::next()
19 {
20  assert((fField!=fFieldEnd ) && "No item to iterate");
21  StDbFieldI* nxt = *fField;
22  operator++();
23  return nxt;
24 }
25