FreeHEP API
Version current

hep.io.hbook
Class Tuple

java.lang.Object
  extended byhep.io.hbook.HbookObject
      extended byhep.io.hbook.CompositeHbookObject
          extended byhep.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.

Source Code:
Tuple.java

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 current

Copyright © 2000-2004 FreeHEP, All Rights Reserved.