/[escript]/trunk/escript/src/DataTagged.h
ViewVC logotype

Diff of /trunk/escript/src/DataTagged.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

trunk/esys2/escript/src/Data/DataTagged.h revision 121 by jgs, Fri May 6 04:26:16 2005 UTC trunk/escript/src/DataTagged.h revision 480 by jgs, Wed Feb 1 05:15:12 2006 UTC
# Line 17  Line 17 
17  #if !defined escript_DataTagged_20040615_H  #if !defined escript_DataTagged_20040615_H
18  #define escript_DataTagged_20040615_H  #define escript_DataTagged_20040615_H
19    
20  #include "escript/Data/DataAbstract.h"  #include "DataAbstract.h"
21  #include "escript/Data/DataArray.h"  #include "DataArrayView.h"
 #include "escript/Data/DataArrayView.h"  
22    
23  #include <vector>  #include <vector>
24  #include <map>  #include <map>
# Line 155  class DataTagged : public DataAbstract { Line 154  class DataTagged : public DataAbstract {
154    
155    /**    /**
156       \brief       \brief
157         Return the tag number associated with the given data-point number.
158      */
159      virtual
160      int
161      getTagNumber(int dpno);
162    
163      /**
164         \brief
165       getPointOffset       getPointOffset
166    
167       Description:       Description:
# Line 349  class DataTagged : public DataAbstract { Line 356  class DataTagged : public DataAbstract {
356    void    void
357    reshapeDataPoint(const DataArrayView::ShapeType& shape);    reshapeDataPoint(const DataArrayView::ShapeType& shape);
358    
359      /**
360        \brief
361        Archive the underlying data values to the file referenced
362        by ofstream. A count of the number of values expected to be written
363        is provided as a cross-check.
364    
365        The return value indicates success (0) or otherwise (1).
366      */
367      int
368      archiveData(std::ofstream& archiveFile,
369                  const DataArrayView::ValueType::size_type noValues) const;
370    
371      /**
372        \brief
373        Extract the number of values specified by noValues from the file
374        referenced by ifstream to the underlying data structure.
375    
376        The return value indicates success (0) or otherwise (1).
377      */
378      int
379      extractData(std::ifstream& archiveFile,
380                  const DataArrayView::ValueType::size_type noValues);
381    
382   protected:   protected:
383    
384   private:   private:

Legend:
Removed from v.121  
changed lines
  Added in v.480

  ViewVC Help
Powered by ViewVC 1.1.26