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

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

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

revision 119 by jgs, Tue Apr 12 04:45:05 2005 UTC revision 126 by jgs, Fri Jul 22 03:53:08 2005 UTC
# Line 100  class DataExpanded : public DataAbstract Line 100  class DataExpanded : public DataAbstract
100       Alternative Constructor for DataExpanded objects.       Alternative Constructor for DataExpanded objects.
101       \param what - Input - A description of what this data object represents.       \param what - Input - A description of what this data object represents.
102       \param shape - Input - the shape of each data-point.       \param shape - Input - the shape of each data-point.
103       \param data - the data values for each data-point.       \param data - the array of data values for the data-points.
104    */    */
105    DataExpanded(const FunctionSpace& what,    DataExpanded(const FunctionSpace& what,
106                 const DataArrayView::ShapeType &shape,                 const DataArrayView::ShapeType &shape,
# Line 260  class DataExpanded : public DataAbstract Line 260  class DataExpanded : public DataAbstract
260    getRefValue(int ref,    getRefValue(int ref,
261                DataArray& value);                DataArray& value);
262    
263      /**
264        \brief
265        Archive the underlying data values to the file referenced
266        by ofstream. A count of the number of values expected to be written
267        is provided as a cross-check.
268    
269        The return value indicates success (0) or otherwise (1).
270      */
271      int
272      archiveData(std::ofstream& archiveFile,
273                  const DataArrayView::ValueType::size_type noValues) const;
274    
275      /**
276        \brief
277        Extract the number of values specified by noValues from the file
278        referenced by ifstream to the underlying data structure.
279    
280        The return value indicates success (0) or otherwise (1).
281      */
282      int
283      extractData(std::ifstream& archiveFile,
284                  const DataArrayView::ValueType::size_type noValues);
285    
286   protected:   protected:
287    
288   private:   private:
# Line 286  class DataExpanded : public DataAbstract Line 309  class DataExpanded : public DataAbstract
309    
310    /**    /**
311       \brief       \brief
312       Copy the given data point to all data points in this object.       Copy the given data point value to all data points in this object.
313    
314       Description:       Description:
315       Copy the given data point to all data points in this object.       Copy the given data point to all data points in this object.
# Line 296  class DataExpanded : public DataAbstract Line 319  class DataExpanded : public DataAbstract
319    void    void
320    copy(const DataArrayView& value);    copy(const DataArrayView& value);
321    
322      /**
323         \brief
324         Copy the given data point value given a numarray object to all data points in this object.
325    
326         Description:
327         Copy the given data point value given a numarray object to all data points in this object.
328    
329         \param value Input - A single data point value.
330      */
331    void    void
332    copy(const boost::python::numeric::array& value);    copy(const boost::python::numeric::array& value);
333    
334      /**
335         \brief
336         Copy the numarray object to the data points in this object.
337    
338         Description:
339         Copy the numarray object to the data points in this object.
340    
341         \param value Input - new values for the data points
342      */
343      void
344      copyAll(const boost::python::numeric::array& value);
345    
346    //    //
347    // The main data storage array, a 2D array of data blocks.    // The main data storage array, a 2D array of data blocks.
348    // noSamples * noDataPointsPerSample    // noSamples * noDataPointsPerSample

Legend:
Removed from v.119  
changed lines
  Added in v.126

  ViewVC Help
Powered by ViewVC 1.1.26