#include <BankIter.h>
Public Member Functions | |
BankIter () | |
C'tors /D'tors. | |
virtual | ~BankIter () |
int | Count () const |
Returns true if the Iterator match criteria have been fixed. | |
const BANK * | Next () |
Fix the match criteria of banks this Iterator will return. | |
BankIter & | Rewind () |
Protected Member Functions | |
BankIter (const BankIter &) | |
BankIter & | operator= (const BankIter &) |
TTree * | GetTree () |
Get the appropriate tree for the. | |
Private Types | |
typedef IDs::source | SourceID |
Private Attributes | |
const BankSelection | fCriteria |
The match criteria the BankIterator adheres to. | |
TTree * | fTree |
The TTree this iterator iterates over. |
Definition at line 14 of file BankIter.h.
typedef IDs::source BankIter< BANK >::SourceID [private] |
This class provides sequential access to various banks stored by the EventNavigator. As far as we are concerned here a bank is something like a PulseIslandList == vector<TPulseIsland*>
Definition at line 19 of file BankIter.h.
Definition at line 25 of file BankIter.h.
TODO: probably it is better ho have a criteria object. What shoild the logic of this be?
int BankIter< BANK >::Count | ( | ) | const |
Returns true if the Iterator match criteria have been fixed.
Return the number of matching banks according to the current criteria. This is not necessarily cheap.
TTree* BankIter< BANK >::GetTree | ( | ) | [protected] |
Get the appropriate tree for the.
const BANK * BankIter< BANK >::Next | ( | ) | [inline] |
Fix the match criteria of banks this Iterator will return.
Get the next Bank that fufills out filter criteria Side Effects: Lock()s this Iterator.
Definition at line 7 of file BankIter.tpl.
BankIter& BankIter< BANK >::operator= | ( | const BankIter< BANK > & | ) | [protected] |
Go back to start, and return self. So to get the first element do someBankIter.Rewind().Next(). Side Effects: Lock()s this Iterator.
Definition at line 15 of file BankIter.tpl.
const BankSelection BankIter< BANK >::fCriteria [private] |
The match criteria the BankIterator adheres to.
Definition at line 58 of file BankIter.h.
The TTree this iterator iterates over.
Definition at line 61 of file BankIter.h.