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

JBLH1IntFun< H1SomePtr > Class Template Reference

#include <H1Funs.h>

Inheritance diagram for JBLH1IntFun< H1SomePtr >:

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

Collaboration graph
[legend]
List of all members.

Detailed Description

template<class H1SomePtr>
class JBLH1IntFun< H1SomePtr >

A IntFun 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.

An optional index can be used if one wants to access a single element of a fixed size array, such as for subtriggers.

Definition at line 233 of file H1Funs.h.

Public Member Functions

 JBLH1IntFun (const char *branchname_, int index_=-1)
 Constructor from a branch name.

 JBLH1IntFun (const H1SomePtr &ptr_, int index_=-1)
 Constructor from an existing pointer.

int operator() () const
 Returns the value of the variable.

JBLH1IntFun< H1SomePtr > & operator[] (int index_)
 Returns a version with a fixed index.

JBLH1IntFunIter< H1SomePtr > & operator[] (const FillIterator &iter_)
 Returns a version with an iterator.

FloatFunFloat () const
 Returns a FloatFun object.


Protected Member Functions

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


Private Attributes

H1SomePtr ptr
 The H1 pointer.

int index
 The optional index.


Constructor & Destructor Documentation

template<class H1SomePtr>
JBLH1IntFun< H1SomePtr >::JBLH1IntFun const char *  branchname_,
int  index_ = -1
[inline, explicit]
 

Constructor from a branch name.

Parameters:
branchname_  The branch name
index_  An optional index

Definition at line 236 of file H1Funs.h.

References JBLH1IntFun< H1SomePtr >::index, JBLH1IntFun< H1SomePtr >::ptr, and NamedO::str().

template<class H1SomePtr>
JBLH1IntFun< H1SomePtr >::JBLH1IntFun const H1SomePtr &  ptr_,
int  index_ = -1
[inline, explicit]
 

Constructor from an existing pointer.

Parameters:
ptr_  The branch pointer
index_  An optional index

Definition at line 244 of file H1Funs.h.

References JBLH1IntFun< H1SomePtr >::index, JBLH1IntFun< H1SomePtr >::ptr, and NamedO::str().


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