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

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

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

trunk/esys2/escript/src/Data/DataConstant.h revision 102 by jgs, Wed Dec 15 07:08:39 2004 UTC trunk/escript/src/Data/DataConstant.h revision 155 by jgs, Wed Nov 9 02:02:19 2005 UTC
# Line 82  class DataConstant : public DataAbstract Line 82  class DataConstant : public DataAbstract
82    
83    /**    /**
84       \brief       \brief
85         Alternative constructor for DataConstant objects.
86    
87         Description:
88         Alternative Constructor for DataConstant objects.
89         \param what - Input - A description of what this data object represents.
90         \param shape - Input - the shape of each data-point.
91         \param data - the data values for each data-point.
92      */
93      DataConstant(const FunctionSpace& what,
94                   const DataArrayView::ShapeType &shape,
95                   const DataArrayView::ValueType &data);
96    
97      /**
98         \brief
99       Write the data as a string.       Write the data as a string.
100    */    */
101    std::string    std::string
# Line 117  class DataConstant : public DataAbstract Line 131  class DataConstant : public DataAbstract
131       Return the number of doubles stored for the Data object.       Return the number of doubles stored for the Data object.
132    */    */
133    virtual    virtual
134    ValueType::size_type    DataArrayView::ValueType::size_type
135    getLength() const;    getLength() const;
136    
137    /**    /**
# Line 151  class DataConstant : public DataAbstract Line 165  class DataConstant : public DataAbstract
165    void    void
166    reshapeDataPoint(const DataArrayView::ShapeType& shape);    reshapeDataPoint(const DataArrayView::ShapeType& shape);
167    
168      /**
169        \brief
170        Archive the underlying data values to the file referenced
171        by ofstream. A count of the number of values expected to be written
172        is provided as a cross-check.
173    
174        The return value indicates success (0) or otherwise (1).
175      */
176      int
177      archiveData(std::ofstream& archiveFile,
178                  const DataArrayView::ValueType::size_type noValues) const;
179    
180      /**
181        \brief
182        Extract the number of values specified by noValues from the file
183        referenced by ifstream to the underlying data structure.
184    
185        The return value indicates success (0) or otherwise (1).
186      */
187      int
188      extractData(std::ifstream& archiveFile,
189                  const DataArrayView::ValueType::size_type noValues);
190    
191   protected:   protected:
192    
193   private:   private:

Legend:
Removed from v.102  
changed lines
  Added in v.155

  ViewVC Help
Powered by ViewVC 1.1.26