Main Page | Class Hierarchy | Alphabetical List | Compound List | File List | Compound Members | File Members | Related Pages

JBLH1SomeBankIterator< H1SomeBankPtr, H1SomeRow > Class Template Reference

#include <H1BankFuns.h>

Inheritance diagram for JBLH1SomeBankIterator< H1SomeBankPtr, H1SomeRow >:

Inheritance graph
[legend]
Collaboration diagram for JBLH1SomeBankIterator< H1SomeBankPtr, H1SomeRow >:

Collaboration graph
[legend]
List of all members.

Detailed Description

template<class H1SomeBankPtr = H1BankPtr, class H1SomeRow = H1Row>
class JBLH1SomeBankIterator< H1SomeBankPtr, H1SomeRow >

A FillIterator for an H1 bank.

An JBLH1BankIterator iteratoes over the number of entries of an H1 bank.

Special methods are provided to generate FloatFun and IntFun objects that can be used to access the values of individual columns: GetFloat, GetFloatFromInt and GetInt return such function objects.

Definition at line 241 of file H1BankFuns.h.

Public Member Functions

 JBLH1SomeBankIterator ()
 Default constructor.

 JBLH1SomeBankIterator (const char *name_)
 Constructor by name.

 JBLH1SomeBankIterator (const H1SomeBankPtr &ptr_)
 Constructor from H1BankPtr.

virtual int operator() () const
 Returns iterator value, starting at 0.

virtual bool next ()
 Increments iterator; returns false if iterator cannot be incremented.

virtual bool reset ()
 Resets iterator; returns false if iterator value range is empty.

virtual bool isValid () const
 Returns whether current value of iterator is valid.

virtual JBLH1BankFloatFun & GetFloat (int column, const char *attribname=0)
 Returns an JBLH1BankFloatFun that represents the value of a Float_FF-valued column.

template<class TM> JBLH1SomeBankFloatFun< H1SomeBankPtr,
H1SomeRow, TM > & 
GetFloat (TM(H1SomeRow::*ptr_mem)() const, const char *attribname=0)
 Returns a FloatFun that represents the value of an access method.

virtual JBLH1BankFloatFunIntGetFloatFromInt (int column)
 Returns an JBLH1BankFloatFunInt that represents the value of a int-valued column as Float_FF.

virtual JBLH1BankIntFunGetInt (int column)
 Returns an JBLH1BankInttFun that represents the value of a int-valued column.


Protected Member Functions

virtual ~JBLH1SomeBankIterator ()
 Protected virtual destructor to ensure creation on the heap.


Private Attributes

const H1SomeBankPtr & ptr
 The pointer to the H1 bank.

int index
 The index, i.e. the row number.


Constructor & Destructor Documentation

template<class H1SomeBankPtr = H1BankPtr, class H1SomeRow = H1Row>
JBLH1SomeBankIterator< H1SomeBankPtr, H1SomeRow >::JBLH1SomeBankIterator const char *  name_  )  [inline, explicit]
 

Constructor by name.

Parameters:
name_  The bank name

Definition at line 253 of file H1BankFuns.h.

References JBLH1SomeBankIterator< H1SomeBankPtr, H1SomeRow >::index, and JBLH1SomeBankIterator< H1SomeBankPtr, H1SomeRow >::ptr.

template<class H1SomeBankPtr = H1BankPtr, class H1SomeRow = H1Row>
JBLH1SomeBankIterator< H1SomeBankPtr, H1SomeRow >::JBLH1SomeBankIterator const H1SomeBankPtr &  ptr_  )  [inline, explicit]
 

Constructor from H1BankPtr.

Parameters:
ptr_  The bank pointer

Definition at line 262 of file H1BankFuns.h.

References JBLH1SomeBankIterator< H1SomeBankPtr, H1SomeRow >::index, and JBLH1SomeBankIterator< H1SomeBankPtr, H1SomeRow >::ptr.


Member Function Documentation

template<class H1SomeBankPtr = H1BankPtr, class H1SomeRow = H1Row>
virtual JBLH1BankFloatFun& JBLH1SomeBankIterator< H1SomeBankPtr, H1SomeRow >::GetFloat int  column,
const char *  attribname = 0
[inline, virtual]
 

Returns an JBLH1BankFloatFun that represents the value of a Float_FF-valued column.

Parameters:
column  The column
attribname  Optional attribute name

Definition at line 287 of file H1BankFuns.h.

References JBLH1SomeBankIterator< H1SomeBankPtr, H1SomeRow >::ptr.

template<class H1SomeBankPtr = H1BankPtr, class H1SomeRow = H1Row>
template<class TM>
JBLH1SomeBankFloatFun<H1SomeBankPtr, H1SomeRow, TM>& JBLH1SomeBankIterator< H1SomeBankPtr, H1SomeRow >::GetFloat TM(H1SomeRow::*  ptr_mem)() const,
const char *  attribname = 0
[inline]
 

Returns a FloatFun that represents the value of an access method.

Parameters:
ptr_mem  The access method
attribname  Optional attribute name

Definition at line 296 of file H1BankFuns.h.

References JBLH1SomeBankIterator< H1SomeBankPtr, H1SomeRow >::ptr.

template<class H1SomeBankPtr = H1BankPtr, class H1SomeRow = H1Row>
virtual JBLH1BankFloatFunInt& JBLH1SomeBankIterator< H1SomeBankPtr, H1SomeRow >::GetFloatFromInt int  column  )  [inline, virtual]
 

Returns an JBLH1BankFloatFunInt that represents the value of a int-valued column as Float_FF.

Parameters:
column  The column

Definition at line 302 of file H1BankFuns.h.

References JBLH1SomeBankIterator< H1SomeBankPtr, H1SomeRow >::ptr.

template<class H1SomeBankPtr = H1BankPtr, class H1SomeRow = H1Row>
virtual JBLH1BankIntFun& JBLH1SomeBankIterator< H1SomeBankPtr, H1SomeRow >::GetInt int  column  )  [inline, virtual]
 

Returns an JBLH1BankInttFun that represents the value of a int-valued column.

Parameters:
column  The column

Definition at line 307 of file H1BankFuns.h.

References JBLH1SomeBankIterator< H1SomeBankPtr, H1SomeRow >::ptr.


The documentation for this class was generated from the following file:
Generated on Thu Oct 26 12:54:48 2006 for SFH by doxygen 1.3.2