/[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 474 by jgs, Mon Jan 30 04:23:44 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 "DataArray.h"
22  #include "escript/Data/DataArrayView.h"  #include "DataArrayView.h"
23    
24  #include <vector>  #include <vector>
25  #include <map>  #include <map>
# Line 155  class DataTagged : public DataAbstract { Line 155  class DataTagged : public DataAbstract {
155    
156    /**    /**
157       \brief       \brief
158         Return the tag number associated with the given data-point number.
159      */
160      virtual
161      int
162      getTagNumber(int dpno);
163    
164      /**
165         \brief
166       getPointOffset       getPointOffset
167    
168       Description:       Description:
# Line 349  class DataTagged : public DataAbstract { Line 357  class DataTagged : public DataAbstract {
357    void    void
358    reshapeDataPoint(const DataArrayView::ShapeType& shape);    reshapeDataPoint(const DataArrayView::ShapeType& shape);
359    
360      /**
361        \brief
362        Archive the underlying data values to the file referenced
363        by ofstream. A count of the number of values expected to be written
364        is provided as a cross-check.
365    
366        The return value indicates success (0) or otherwise (1).
367      */
368      int
369      archiveData(std::ofstream& archiveFile,
370                  const DataArrayView::ValueType::size_type noValues) const;
371    
372      /**
373        \brief
374        Extract the number of values specified by noValues from the file
375        referenced by ifstream to the underlying data structure.
376    
377        The return value indicates success (0) or otherwise (1).
378      */
379      int
380      extractData(std::ifstream& archiveFile,
381                  const DataArrayView::ValueType::size_type noValues);
382    
383   protected:   protected:
384    
385   private:   private:

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

  ViewVC Help
Powered by ViewVC 1.1.26