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

Adaptation au changement de int par sa_size_t ds la classe interface NTuple NTupInterface - Reza 21/4/2005

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaLib/NTools/generaldata.cc

    r2615 r2683  
    869869  Retourne le nombre de ligne = NData() (pour interface NTuple)
    870870*/
    871 uint_4 GeneralFitData::NbLines() const
     871sa_size_t GeneralFitData::NbLines() const
    872872{
    873873return(NData());
     
    886886  (pour interface NTuple)
    887887*/
    888 uint_4 GeneralFitData::NbColumns() const
     888sa_size_t GeneralFitData::NbColumns() const
    889889{
    890890return(2*NVar()+3);
     
    892892
    893893//! Pour interface NTuple
    894 r_8 * GeneralFitData::GetLineD(int n) const
     894r_8 * GeneralFitData::GetLineD(sa_size_t n) const
    895895{
    896896return(GetVec(n,NULL));
     
    898898
    899899//! Pour interface NTuple
    900 r_8 GeneralFitData::GetCell(int n, int k) const
     900r_8 GeneralFitData::GetCell(sa_size_t n, sa_size_t k) const
    901901{
    902902if(k<0 || k>=2*NVar()+3) return 0.;
     
    906906
    907907//! Pour interface NTuple
    908 r_8 GeneralFitData::GetCell(int n, string const & nom) const
    909 {
    910 int k = ColumnIndex(nom);
     908r_8 GeneralFitData::GetCell(sa_size_t n, string const & nom) const
     909{
     910sa_size_t k = ColumnIndex(nom);
    911911return(GetCell(n,k));
    912912}
     
    915915  Retourne le minimum et le maximum de la variable `k' (pour interface NTuple).
    916916*/
    917 void GeneralFitData::GetMinMax(int k, double& min, double& max)  const
     917void GeneralFitData::GetMinMax(sa_size_t k, double& min, double& max)  const
    918918{
    919919int var;
     
    931931void GeneralFitData::GetMinMax(string const & nom, double& min, double& max)   const
    932932{
    933 int k = ColumnIndex(nom);
     933sa_size_t k = ColumnIndex(nom);
    934934GetMinMax(k,min,max);
    935935}
    936936
    937937//! Pour interface NTuple
    938 int GeneralFitData::ColumnIndex(string const & nom)  const
     938sa_size_t GeneralFitData::ColumnIndex(string const & nom)  const
    939939{
    940940char str[64]; int k = -1;
     
    950950
    951951//! Pour interface NTuple
    952 string GeneralFitData::ColumnName(int k) const
     952string GeneralFitData::ColumnName(sa_size_t k) const
    953953{
    954954if(k==2*NVar())                return string("y");
Note: See TracChangeset for help on using the changeset viewer.