FreeHEP API
Version v1.2.2

hep.io.hbook
Class Tuple

java.lang.Object
  |
  +--hep.io.hbook.HbookObject
        |
        +--hep.io.hbook.CompositeHbookObject
              |
              +--hep.io.hbook.Tuple
Direct Known Subclasses:
ColumnwiseTuple, RowwiseTuple

public abstract class Tuple
extends CompositeHbookObject

A base class for all tuples read from an hbook file.


Method Summary
 int getCurrentRow()
          Get the current row.
 int getRows()
          Get the number of rows in the tuple.
 void setCurrentRow(int row)
          Set the current row.
 
Methods inherited from class hep.io.hbook.CompositeHbookObject
getChild, getChild, getChildren, getIndex, nChildren, toString
 
Methods inherited from class hep.io.hbook.HbookObject
getName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getRows

public int getRows()
Get the number of rows in the tuple.

Returns:
The number of rows

getCurrentRow

public int getCurrentRow()
Get the current row.

Returns:
The current row, in the range 1 to nRows

setCurrentRow

public void setCurrentRow(int row)
Set the current row.

Parameters:
row - The new current row (1-nRows)

FreeHEP API
Version v1.2.2

Copyright © 2000-2003 FreeHEP, All Rights Reserved.