Changeset 2808 in Sophya for trunk/SophyaLib/HiStats/basedtable.h


Ignore:
Timestamp:
Jun 14, 2005, 1:25:05 PM (20 years ago)
Author:
ansari
Message:

MAJ documentation - Reza 14/6/2005

File:
1 edited

Legend:

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

    r2732 r2808  
    1818
    1919namespace SOPHYA {
     20//! Interface definition for classes handling data in a table.
    2021class BaseDataTable : public AnyDataObj , public NTupleInterface {
    2122public:
     
    3334  virtual           ~BaseDataTable();
    3435 
     36  //! Adds a column holding integer, named \b cnom
    3537  inline sa_size_t  AddIntegerColumn(const char * cnom)
    3638  { return AddColumn(IntegerField, cnom); }
     39  //! Adds a column holding integer, named \b cnom
    3740  inline sa_size_t  AddIntegerColumn(string const & cnom)
    3841  { return AddColumn(IntegerField, cnom); }
     42  //! Adds a column holding long integer, named \b cnom
    3943  inline sa_size_t  AddLongColumn(const char * cnom)
    4044  { return AddColumn(LongField, cnom); }
     45  //! Adds a column holding long integer, named \b cnom
    4146  inline sa_size_t  AddLongColumn(string const & cnom)
    4247  { return AddColumn(LongField, cnom); }
     48  //! Adds a column holding floating values (r_4), named \b cnom
    4349  inline sa_size_t  AddFloatColumn(const char * cnom)
    4450  { return AddColumn(FloatField, cnom); }
     51  //! Adds a column holding floating values (r_4), named \b cnom
    4552  inline sa_size_t  AddFloatColumn(string const & cnom)
    4653  { return AddColumn(FloatField, cnom); }
     54  //! Adds a column holding double values (r_8), named \b cnom
    4755  inline sa_size_t  AddDoubleColumn(const char * cnom)
    4856  { return AddColumn(DoubleField, cnom); }
     57  //! Adds a column holding double values (r_8), named \b cnom
    4958  inline sa_size_t  AddDoubleColumn(string const & cnom)
    5059  { return AddColumn(DoubleField, cnom); }
     60  //! Adds a column holding character strings, named \b cnom
    5161  inline sa_size_t  AddStringColumn(const char * cnom)
    5262  { return AddColumn(StringField, cnom); }
     63  //! Adds a column holding character strings, named \b cnom
    5364  inline sa_size_t  AddStringColumn(string const & cnom)
    5465  { return AddColumn(StringField, cnom); }
     
    6980
    7081  // Acces to various counts and parameters
     82  //! Return the number of lines (rows) in the table)
    7183  inline sa_size_t  NEntry() const { return mNEnt ; }
     84  //! Return the number of columns in the tables (number of cells in a row) 
    7285  inline sa_size_t  NVar() const   { return mNames.size() ; }
     86  //! Return the number of columns in the tables (number of cells in a row) 
    7387  inline sa_size_t  NVars() const   { return mNames.size() ; }
     88  //! Return the segment size (SegDBInterface objects corresponding to columns) 
    7489  inline sa_size_t  SegmentSize() const   { return mSegSz ; }
     90  //! Return the number of segments (SegDBInterface objects corresponding to columns) 
    7591  inline sa_size_t  NbSegments() const   { return mNSeg ; }
    7692
     
    7894  virtual sa_size_t AddLine(const r_8* data);
    7995  virtual sa_size_t AddLine(const MuTyV * data);
    80  
     96
     97  //! Alias for AddLine()
    8198  inline sa_size_t  Fill(const r_8* data)
    8299  { return AddLine(data); }
     100  //! Alias for AddLine()
    83101  inline sa_size_t  Fill(const MuTyV * data);
    84102     
    85103  virtual sa_size_t Extend();
    86104
    87   // Getting a given line (record) information
     105  //! Return the information stored in line \b n of the table
    88106  virtual MuTyV *   GetLine(sa_size_t n) const ;
    89  
     107
     108  //! Return the index for column name \b nom 
    90109  sa_size_t         IndexNom(char const* nom) const ;
     110  //! Return the index for column name \b nom 
    91111  inline sa_size_t  IndexNom(string const & nom) const
    92112  { return IndexNom(nom.c_str()); }
     113  //! Return the column name for column index \b k
    93114  string            NomIndex(sa_size_t k) const ;
    94115
     
    107128  virtual void Clear() = 0;
    108129
    109   // ---- ASCII I/O
     130  //! Prints the table content - NOT YET IMPLEMENTED !
    110131  void              Print(int num, int nmax=1) const ;
    111132 
     133//! Prints table definition and number of entries
    112134  void              Show(ostream& os) const ;
     135  //! Prints table definition and number of entries on the standard output stream \b cout
    113136  inline void       Show() const { Show(cout) ; }
    114137 
     
    144167  mutable r_8 *  mVarD;    // Pour retourner une ligne de la table
    145168  mutable MuTyV *  mVarMTV;    // Pour retourner une ligne de la table en MuTyV
    146  
     169
     170  //! \cond   Pour pas inclure ds la documentation doxygen
    147171  typedef struct {
    148172    string nom;
     
    150174    sa_size_t ser;
    151175  } colst;
     176  //! \endcond 
    152177  std::vector<colst> mNames;
    153178
Note: See TracChangeset for help on using the changeset viewer.