Changeset 2682 in Sophya for trunk/SophyaLib/HiStats/ntupintf.cc
- Timestamp:
- Apr 21, 2005, 6:03:54 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaLib/HiStats/ntupintf.cc
r2615 r2682 4 4 #include <stdlib.h> 5 5 #include <stdio.h> 6 #include "pexceptions.h" 6 7 7 8 /*! … … 73 74 //! Retuns the number of lines (rows) of the data set 74 75 /* --Methode-- */ 75 uint_4NTupleInterface::NbLines() const76 sa_size_t NTupleInterface::NbLines() const 76 77 { 77 78 return(0); … … 80 81 //! Retuns the number of columns of the data set 81 82 /* --Methode-- */ 82 uint_4NTupleInterface::NbColumns() const83 sa_size_t NTupleInterface::NbColumns() const 83 84 { 84 85 return(0); … … 91 92 */ 92 93 /* --Methode-- */ 93 r_8 * NTupleInterface::GetLineD( int ) const94 r_8 * NTupleInterface::GetLineD(sa_size_t ) const 94 95 { 95 return(NULL);96 throw NotAvailableOperation("NTupleInterface::GetLineD(sa_size_t ) must be redefined in derived classes"); 96 97 } 97 98 … … 102 103 */ 103 104 /* --Methode-- */ 104 r_8 NTupleInterface::GetCell( int , int ) const105 r_8 NTupleInterface::GetCell(sa_size_t , sa_size_t ) const 105 106 { 106 107 return(0.); … … 113 114 */ 114 115 /* --Methode-- */ 115 r_8 NTupleInterface::GetCell( int n, string const & nom) const116 r_8 NTupleInterface::GetCell(sa_size_t n, string const & nom) const 116 117 { 117 118 return(GetCell(n, ColumnIndex(nom))); … … 123 124 converted to a string. 124 125 */ 125 string NTupleInterface::GetCelltoString( int n, int k) const126 string NTupleInterface::GetCelltoString(sa_size_t n, sa_size_t k) const 126 127 { 127 128 char strg[64]; … … 136 137 converted to a string. 137 138 */ 138 string NTupleInterface::GetCelltoString( int n, string const & nom) const139 string NTupleInterface::GetCelltoString(sa_size_t n, string const & nom) const 139 140 { 140 141 return(GetCelltoString(n, ColumnIndex(nom))); … … 143 144 //! Returns the minimum and maximum values for a given column 144 145 /* --Methode-- */ 145 void NTupleInterface::GetMinMax( int , double& min, double& max) const146 void NTupleInterface::GetMinMax(sa_size_t , double& min, double& max) const 146 147 { 147 148 min = max = 0.; … … 150 151 /* --Methode-- */ 151 152 //! Returns the minimum and maximum values for a given named column 152 void NTupleInterface::GetMinMax(string const & , double& min, double& max) const153 void NTupleInterface::GetMinMax(string const & nom, double& min, double& max) const 153 154 { 154 min = max = 0.;155 GetMinMax(ColumnIndex(nom), min, max); 155 156 } 156 157 157 158 /* --Methode-- */ 158 159 //! Returns the column index given the column name 159 int NTupleInterface::ColumnIndex(string const & nom) const160 sa_size_t NTupleInterface::ColumnIndex(string const & nom) const 160 161 { 161 162 return(-1); … … 164 165 /* --Methode-- */ 165 166 //! Returns the column name corresponding to a column index. 166 string NTupleInterface::ColumnName( int k) const167 string NTupleInterface::ColumnName(sa_size_t k) const 167 168 { 168 169 return(""); … … 182 183 183 184 /* --Methode-- */ 184 string NTupleInterface::LineToString( int ) const185 string NTupleInterface::LineToString(sa_size_t ) const 185 186 { 186 187 return("");
Note:
See TracChangeset
for help on using the changeset viewer.