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

IntFunIterator Class Reference

#include <IntFunIterator.h>

Inheritance diagram for IntFunIterator:

Inheritance graph
[legend]
Collaboration diagram for IntFunIterator:

Collaboration graph
[legend]
List of all members.

Detailed Description

A FillIterator from an IntFun object.

An IntFunIterator is a FillIterator that uses an IntFun object to know how many objects (tracks, jets, D* candidates) there are to iterate over.

Author: Benno List, Jenny Böhme

Date
2005/06/09 16:42:59
Author
rweber

Changelog:

Definition at line 33 of file IntFunIterator.h.

Public Member Functions

 IntFunIterator (const IntFun &intFun_)
 Constructor.

 IntFunIterator (const IntFun &intFun_, const std::string &name_)
virtual int operator() () const
 Returns iterator value, starting at 0; "-1" means "invalid".

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.


Protected Member Functions

virtual ~IntFunIterator ()
 Protected destructor ensures creation on the heap.


Protected Attributes

const IntFunintFun
 The intFun.

int index
 The current index value.


Constructor & Destructor Documentation

IntFunIterator::IntFunIterator const IntFun intFun_  )  [inline]
 

Constructor.

Parameters:
intFun_  The IntFun object

Definition at line 36 of file IntFunIterator.h.

References IntFun::getIterator(), NamedO::getName(), index, and intFun.

IntFunIterator::IntFunIterator const IntFun intFun_,
const std::string &  name_
[inline]
 

Parameters:
intFun_  The IntFun object
name_  The object's name

Definition at line 45 of file IntFunIterator.h.

References IntFun::getIterator(), index, and intFun.


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