Changeset 2891 in Sophya


Ignore:
Timestamp:
Jan 9, 2006, 6:35:53 PM (20 years ago)
Author:
ansari
Message:

Corrections AddRow() au lieu de AddLine ds swppfdtable.h .cc - Reza 9/01/2006

Location:
trunk/SophyaLib/HiStats
Files:
3 edited

Legend:

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

    r2853 r2891  
    306306//! Adds a row (or line) to the table with input data as DataTableRow object
    307307/*!
    308   The internal MuTyV array of the object contains the date and the
     308  The internal MuTyV array of the object contains the data and the
    309309  MuTyV class conversion operators are used to match against each
    310310  cell data type.
  • trunk/SophyaLib/HiStats/swppfdtable.cc

    r2849 r2891  
    4242   dt.AddDoubleColumn("X0X0pX1X1_d");
    4343   // Fill the table
    44    MuTyV x[5];
     44   r_8 x[5];
    4545   for(int i=0; i<63; i++) {
    4646     x[0] = (i%9)-4.;  x[1] = (i/9)-3.;  x[2] = x[0]*x[0]+x[1]*x[1];
    47      dt.AddLine(x);
     47     dt.AddRow(x);
    4848   }
    4949   // Printing table info
     
    346346}
    347347
    348 //! Adds a line (or row to the table) with r_8* input data.
     348//! Adds a row (or line to the table) with r_8* input data.
    349349/*!
    350350  The min/max values for each column is updated, in addition
    351   to the actions performed by the base class AddLine()
    352 */
    353 sa_size_t SwPPFDataTable::AddLine(const r_8* data)
     351  to the actions performed by the base class AddRow()
     352*/
     353sa_size_t SwPPFDataTable::AddRow(const r_8* data)
    354354{
    355355  // On est oblige de calculer les min-max lors du remplissage
     
    361361    mMinMaxNEnt[k]++;
    362362  }
    363   return BaseDataTable::AddLine(data);
    364 }
    365 
    366 //! Adds a line (or row to the table) with input data as an array of MuTyV
     363  return BaseDataTable::AddRow(data);
     364}
     365
     366//! Adds a row (or line to the table) with input data as an array of MuTyV
    367367/*!
    368368  The min/max values for each column is updated, in addition
    369369  to the actions performed by the base class AddLine()
    370370*/
    371 sa_size_t SwPPFDataTable::AddLine(const MuTyV * data)
     371sa_size_t SwPPFDataTable::AddRow(const MuTyV * data)
    372372{
    373373  // On est oblige de calculer les min-max lors du remplissage
     
    379379    mMinMaxNEnt[k]++;
    380380  }
    381   return BaseDataTable::AddLine(data);
    382 }
    383 
     381  return BaseDataTable::AddRow(data);
     382}
     383
  • trunk/SophyaLib/HiStats/swppfdtable.h

    r2827 r2891  
    2626  virtual sa_size_t AddColumn(FieldType ft, string const & cnom);
    2727
    28   // Filling data structures (adding lines)
    29   virtual sa_size_t AddLine(const r_8* data);
    30   virtual sa_size_t AddLine(const MuTyV * data);
     28  // Filling data structures (adding lines/rows)
     29  virtual sa_size_t AddRow(const r_8* data);
     30  virtual sa_size_t AddRow(const MuTyV * data);
    3131
     32  //! Equal (copy) operator - Copies the data and the structure if necessary from \b a   
     33  inline  SwPPFDataTable& operator = (BaseDataTable const& a)
     34  { CopyMerge(a, true) ; return *this ; }
    3235  //! Equal (copy) operator - Copies the structure and shares the data \b a   
    33   inline SwPPFDataTable& operator = (SwPPFDataTable const& a)
     36  inline SwPPFDataTable&  operator = (SwPPFDataTable const& a)
    3437  { Clear(); Share(a); return *this ; }
    3538
Note: See TracChangeset for help on using the changeset viewer.