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

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

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

revision 109 by jgs, Wed Dec 15 07:08:39 2004 UTC revision 110 by jgs, Mon Feb 14 04:14:42 2005 UTC
# Line 178  class DataExpanded : public DataAbstract Line 178  class DataExpanded : public DataAbstract
178    setSlice(const DataAbstract* value,    setSlice(const DataAbstract* value,
179             const DataArrayView::RegionType& region);             const DataArrayView::RegionType& region);
180    
181      /**
182         \brief
183         Assign the given value to the data-point associated with the given
184         reference number.
185    
186         A reference number corresponds to a sample, and thus to all data-points
187         in that sample. If there is more than one data-point per sample number
188         in this Data object, an exception will be thrown. If the given reference
189         number does not correspond to any sample in this Data object, an exception
190         will be thrown.
191    
192         If the given value is a different shape to this Data object, an exception
193         will be thrown.
194    
195         \param ref - Input - reference number which determines data-point to assign to.
196         \param value - Input - Value to assign to data-point associated with
197                                the given reference number.
198      */
199      virtual
200      void
201      setRefValue(int ref,
202                  const DataArray& value);
203    
204      /**
205         \brief
206         Return the value of the data-point associated with the given
207         reference number.
208    
209         A reference number corresponds to a sample, and thus to all data-points
210         in that sample. If there is more than one data-point per sample number
211         in this Data object, an exception will be thrown. If the given reference
212         number does not correspond to any sample in this Data object, an exception
213         will be thrown.
214    
215         If the given value is a different shape to this Data object, an exception
216         will be thrown.
217    
218         \param ref - Input - reference number which determines data-point to read from.
219         \param value - Output - Object to receive data-points associated with
220                                the given reference number.
221      */
222      virtual
223      void
224      getRefValue(int ref,
225                  DataArray& value);
226    
227   protected:   protected:
228    
229   private:   private:

Legend:
Removed from v.109  
changed lines
  Added in v.110

  ViewVC Help
Powered by ViewVC 1.1.26