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

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

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

revision 121 by jgs, Fri May 6 04:26:16 2005 UTC revision 149 by jgs, Thu Sep 1 03:31:39 2005 UTC
# Line 22  Line 22 
22  #include "escript/Data/FunctionSpace.h"  #include "escript/Data/FunctionSpace.h"
23    
24  #include <iostream>  #include <iostream>
25    #include <fstream>
26  #include <boost/scoped_ptr.hpp>  #include <boost/scoped_ptr.hpp>
27  #include <functional>  #include <functional>
28  #include <string>  #include <string>
# Line 269  class DataAbstract { Line 270  class DataAbstract {
270    setTaggedValue(int tagKey,    setTaggedValue(int tagKey,
271                   const DataArrayView& value);                   const DataArrayView& value);
272    
273      /**
274        \brief
275        Archive the underlying data values to the file referenced
276        by ofstream. A count of the number of values expected to be written
277        is provided as a cross-check.
278    
279        The return value indicates success (0) or otherwise (1).
280      */
281      virtual
282      int
283      archiveData(std::ofstream& archiveFile,
284                  const ValueType::size_type noValues) const;
285    
286      /**
287        \brief
288        Extract the number of values specified by noValues from the file
289        referenced by ifstream to the underlying data structure.
290    
291        The return value indicates success (0) or otherwise (1).
292      */
293      virtual
294      int
295      extractData(std::ifstream& archiveFile,
296                  const ValueType::size_type noValues);
297    
298      /**
299         \brief
300         Copy the numarray object to the data points in this object.
301    
302         Description:
303         Copy the numarray object to the data points in this object.
304    
305         \param value Input - new values for the data points
306      */
307      virtual void
308      copyAll(const boost::python::numeric::array& value);
309    
310      /**
311         \brief
312         Return the tag number associated with the given data-point number.
313    
314         If the object cannot be referenced by tag numbers, an exception
315         will be thrown.
316      */
317      virtual
318      int
319      getTagNumber(int dpno);
320    
321   protected:   protected:
322    
323    /**    /**

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

  ViewVC Help
Powered by ViewVC 1.1.26