hep.io.hbook
Class Tuple

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


Field Summary
 
Fields inherited from class hep.io.hbook.CompositeHbookObject
type
 
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)


Copyright © 2000-2007 FreeHEP. All Rights Reserved.