Changeset 2808 in Sophya for trunk/SophyaLib/HiStats/datatable.cc
- Timestamp:
- Jun 14, 2005, 1:25:05 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaLib/HiStats/datatable.cc
r2699 r2808 11 11 This class can be used to organize data in table (row-column) form. 12 12 Each column holds homogeneous data (same data type), while different 13 columns can be used for different data types (integer, float, string ...) 13 columns can be used for different data types 14 (integer, float, string ...). 15 The whole data set is kept in memory. 14 16 \sa SOPHYA::MuTyV 15 17 \sa SOPHYA::BaseDataTable 16 \sa SOPHYA:: ObjFileIO<DataTable>18 \sa SOPHYA::SegDataBlock 17 19 18 20 \code … … 43 45 } 44 46 45 //! copy constructor - shares the data 47 //! copy constructor 48 /*! 49 The copy constructur shares the data if \b share=true. 50 Otherwise, the Clone() method is called to make a complete copy. 51 */ 46 52 DataTable::DataTable(DataTable const & a, bool share) 47 53 : BaseDataTable(a.SegmentSize()) … … 53 59 if (a.mInfo) mInfo = new DVList(*(a.mInfo)); 54 60 } 55 61 //! Copy the table structure from \b a and shares the data (columns content) 56 62 void DataTable::Share(DataTable const & a) 57 63 { … … 85 91 } 86 92 93 //! Copy the table structure from \b a and duplicate (copy) the data (columns content) 87 94 void DataTable::Clone(DataTable const & a) 88 95 { … … 115 122 } 116 123 } 117 124 //! Reset (/clear) the table content and structure 118 125 void DataTable::Clear() 119 126 { … … 151 158 152 159 160 /*! 161 Implements the action defined in the BaseDataTable interface. 162 In the current implementation, throws an exception (ParmError) 163 if the table contains some data already. 164 */ 153 165 sa_size_t DataTable::AddColumn(FieldType ft, string const & cnom) 154 166 {
Note:
See TracChangeset
for help on using the changeset viewer.