BankIter< BANK > Class Template Reference

#include <BankIter.h>

List of all members.

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.
BankIterRewind ()

Protected Member Functions

 BankIter (const BankIter &)
BankIteroperator= (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.

Detailed Description

template<typename BANK>
class BankIter< BANK >

Definition at line 14 of file BankIter.h.


Member Typedef Documentation

template<typename BANK >
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.


Constructor & Destructor Documentation

template<typename BANK >
BankIter< BANK >::BankIter (  )  [inline]

C'tors /D'tors.

Definition at line 24 of file BankIter.h.

00024 {};

template<typename BANK >
virtual BankIter< BANK >::~BankIter (  )  [inline, virtual]

Definition at line 25 of file BankIter.h.

00025 {};

template<typename BANK >
BankIter< BANK >::BankIter ( const BankIter< BANK > &   )  [protected]

TODO: probably it is better ho have a criteria object. What shoild the logic of this be?


Member Function Documentation

template<typename BANK >
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.

template<typename BANK >
TTree* BankIter< BANK >::GetTree (  )  [protected]

Get the appropriate tree for the.

template<typename BANK >
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.

00008 {
00009   return new BANK;
00010 }

template<typename BANK >
BankIter& BankIter< BANK >::operator= ( const BankIter< BANK > &   )  [protected]
template<typename BANK >
BankIter< BANK > & BankIter< BANK >::Rewind (  )  [inline]

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.

00016 {
00017   return *this;
00018 }


Member Data Documentation

template<typename BANK >
const BankSelection BankIter< BANK >::fCriteria [private]

The match criteria the BankIterator adheres to.

Definition at line 58 of file BankIter.h.

template<typename BANK >
TTree* BankIter< BANK >::fTree [private]

The TTree this iterator iterates over.

Definition at line 61 of file BankIter.h.


The documentation for this class was generated from the following files:

Generated on 15 Jun 2016 for AlcapDAQ by  doxygen 1.6.1