Changeset 2682 in Sophya for trunk/SophyaLib/HiStats/ntupintf.cc


Ignore:
Timestamp:
Apr 21, 2005, 6:03:54 PM (20 years ago)
Author:
ansari
Message:

remplacement de int par sa_size_t ds la classe interface NTuple (gestion de tres grand NTuple > 109 entrees - Reza 21/4/2005

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaLib/HiStats/ntupintf.cc

    r2615 r2682  
    44#include <stdlib.h>
    55#include <stdio.h>
     6#include "pexceptions.h"
    67
    78/*!
     
    7374//! Retuns the number of lines (rows) of the data set
    7475/* --Methode-- */
    75 uint_4 NTupleInterface::NbLines() const
     76sa_size_t NTupleInterface::NbLines() const
    7677{
    7778return(0);
     
    8081//! Retuns the number of columns of the data set
    8182/* --Methode-- */
    82 uint_4 NTupleInterface::NbColumns() const
     83sa_size_t NTupleInterface::NbColumns() const
    8384{
    8485return(0);
     
    9192*/
    9293/* --Methode-- */
    93 r_8 * NTupleInterface::GetLineD(int ) const
     94r_8 * NTupleInterface::GetLineD(sa_size_t ) const
    9495{
    95 return(NULL);
     96  throw NotAvailableOperation("NTupleInterface::GetLineD(sa_size_t ) must be redefined in derived classes");
    9697}
    9798
     
    102103*/
    103104/* --Methode-- */
    104 r_8 NTupleInterface::GetCell(int , int ) const
     105r_8 NTupleInterface::GetCell(sa_size_t , sa_size_t ) const
    105106{
    106107return(0.);
     
    113114*/
    114115/* --Methode-- */
    115 r_8 NTupleInterface::GetCell(int n, string const & nom) const
     116r_8 NTupleInterface::GetCell(sa_size_t n, string const & nom) const
    116117{
    117118return(GetCell(n, ColumnIndex(nom)));
     
    123124    converted to a string.
    124125*/
    125 string NTupleInterface::GetCelltoString(int n, int k) const
     126string NTupleInterface::GetCelltoString(sa_size_t n, sa_size_t k) const
    126127{
    127128char strg[64];
     
    136137    converted to a string.
    137138*/
    138 string NTupleInterface::GetCelltoString(int n, string const & nom) const
     139string NTupleInterface::GetCelltoString(sa_size_t n, string const & nom) const
    139140{
    140141return(GetCelltoString(n, ColumnIndex(nom)));
     
    143144//! Returns the minimum and maximum values for a given column
    144145/* --Methode-- */
    145 void NTupleInterface::GetMinMax(int , double& min, double& max)   const
     146void NTupleInterface::GetMinMax(sa_size_t , double& min, double& max)   const
    146147{
    147148min = max = 0.;
     
    150151/* --Methode-- */
    151152//! Returns the minimum and maximum values for a given named column
    152 void NTupleInterface::GetMinMax(string const & , double& min, double& max)   const
     153void NTupleInterface::GetMinMax(string const & nom, double& min, double& max)   const
    153154{
    154 min = max = 0.;
     155  GetMinMax(ColumnIndex(nom), min, max);
    155156}
    156157
    157158/* --Methode-- */
    158159//! Returns the column index given the column name
    159 int NTupleInterface::ColumnIndex(string const & nom)  const
     160sa_size_t NTupleInterface::ColumnIndex(string const & nom)  const
    160161{
    161162return(-1);
     
    164165/* --Methode-- */
    165166//! Returns the column name corresponding to a column index.
    166 string NTupleInterface::ColumnName(int k) const
     167string NTupleInterface::ColumnName(sa_size_t k) const
    167168{
    168169return("");
     
    182183
    183184/* --Methode-- */
    184 string NTupleInterface::LineToString(int ) const
     185string NTupleInterface::LineToString(sa_size_t ) const
    185186{
    186187return("");
Note: See TracChangeset for help on using the changeset viewer.