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

JBLH1IntFunIter< H1SomePtr > Class Template Reference

#include <H1Funs.h>

Inheritance diagram for JBLH1IntFunIter< H1SomePtr >:

Inheritance graph
[legend]
Collaboration diagram for JBLH1IntFunIter< H1SomePtr >:

Collaboration graph
[legend]
List of all members.

Detailed Description

template<class H1SomePtr>
class JBLH1IntFunIter< H1SomePtr >

A IntFun using an iterator that returns a variable from an H1Tree.

The template argument H1SomePtr is the H1 Pointer type that has to be used to retrieve the value, such as H1IntPtr or H1ShortPtr.

Definition at line 176 of file H1Funs.h.

Public Member Functions

 JBLH1IntFunIter (const char *branchname_, const FillIterator &iter_)
 Constructor from a branch name.

 JBLH1IntFunIter (const H1SomePtr &ptr_, const FillIterator &iter_)
 Constructor from an existing pointer.

int operator() () const
 Returns the value of the variable, using the iterator.

virtual const FillIteratorgetIterator () const
 Returns pointer to iterator.


Protected Member Functions

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


Private Attributes

const H1SomePtr & ptr
 The H1 pointer.

const FillIteratoriter
 The iterator.


Constructor & Destructor Documentation

template<class H1SomePtr>
JBLH1IntFunIter< H1SomePtr >::JBLH1IntFunIter const char *  branchname_,
const FillIterator iter_
[inline]
 

Constructor from a branch name.

Parameters:
branchname_  The branch name
iter_  The iterator

Definition at line 179 of file H1Funs.h.

References NamedO::getName(), JBLH1IntFunIter< H1SomePtr >::iter, and JBLH1IntFunIter< H1SomePtr >::ptr.

template<class H1SomePtr>
JBLH1IntFunIter< H1SomePtr >::JBLH1IntFunIter const H1SomePtr &  ptr_,
const FillIterator iter_
[inline]
 

Constructor from an existing pointer.

Parameters:
ptr_  The branch pointer
iter_  The iterator

Definition at line 190 of file H1Funs.h.

References NamedO::getName(), JBLH1IntFunIter< H1SomePtr >::iter, and JBLH1IntFunIter< H1SomePtr >::ptr.


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