#include <H1BankFuns.h>
Inheritance diagram for JBLH1SomeBankIterator< H1SomeBankPtr, H1SomeRow >:
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 JBLH1BankFloatFunInt & | GetFloatFromInt (int column) |
Returns an JBLH1BankFloatFunInt that represents the value of a int-valued column as Float_FF. | |
virtual JBLH1BankIntFun & | GetInt (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 by name.
Definition at line 253 of file H1BankFuns.h. References JBLH1SomeBankIterator< H1SomeBankPtr, H1SomeRow >::index, and JBLH1SomeBankIterator< H1SomeBankPtr, H1SomeRow >::ptr. |
|
Constructor from H1BankPtr.
Definition at line 262 of file H1BankFuns.h. References JBLH1SomeBankIterator< H1SomeBankPtr, H1SomeRow >::index, and JBLH1SomeBankIterator< H1SomeBankPtr, H1SomeRow >::ptr. |
|
Returns an JBLH1BankFloatFun that represents the value of a Float_FF-valued column.
Definition at line 287 of file H1BankFuns.h. References JBLH1SomeBankIterator< H1SomeBankPtr, H1SomeRow >::ptr. |
|
Returns a FloatFun that represents the value of an access method.
Definition at line 296 of file H1BankFuns.h. References JBLH1SomeBankIterator< H1SomeBankPtr, H1SomeRow >::ptr. |
|
Returns an JBLH1BankFloatFunInt that represents the value of a int-valued column as Float_FF.
Definition at line 302 of file H1BankFuns.h. References JBLH1SomeBankIterator< H1SomeBankPtr, H1SomeRow >::ptr. |
|
Returns an JBLH1BankInttFun that represents the value of a int-valued column.
Definition at line 307 of file H1BankFuns.h. References JBLH1SomeBankIterator< H1SomeBankPtr, H1SomeRow >::ptr. |