/[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

revision 800 by gross, Tue Aug 8 11:23:18 2006 UTC revision 983 by gross, Tue Feb 20 02:49:08 2007 UTC
# Line 171  class DataTagged : public DataAbstract { Line 171  class DataTagged : public DataAbstract {
171    virtual    virtual
172    std::string    std::string
173    toString() const;    toString() const;
174     /**
175         \brief
176         dumps the object into a netCDF file
177      */
178      ESCRIPT_DLL_API
179      virtual
180      void
181      dump(const std::string fileName) const;
182    
183    /**    /**
184       \brief       \brief
# Line 306  class DataTagged : public DataAbstract { Line 314  class DataTagged : public DataAbstract {
314                 int dataPointNo);                 int dataPointNo);
315    
316    /**    /**
317         \brief
318         getData
319    
320         Description:
321         Return pointer to the data
322        T
323      */
324      ESCRIPT_DLL_API
325      const DataArrayView::ValueType::ElementType*
326      DataTagged::getData() const;
327    
328      /**
329       \brief       \brief
330       getTagLookup       getTagLookup
331    
# Line 410  class DataTagged : public DataAbstract { Line 430  class DataTagged : public DataAbstract {
430    
431    /**    /**
432       \brief       \brief
      reshapeDataPoint  
   
      Description:  
      Reshape each data-point in this object to the given shape, only  
      if current data-points are scalars. An exception is thrown if  
      the current data-points have rank other than 0.  
      The original values of the data-points are used for all values  
      of the new data-points.  
     T  
   */  
   ESCRIPT_DLL_API  
   void  
   reshapeDataPoint(const DataArrayView::ShapeType& shape);  
   
   /**  
      \brief  
433       Archive the underlying data values to the file referenced       Archive the underlying data values to the file referenced
434       by ofstream. A count of the number of values expected to be written       by ofstream. A count of the number of values expected to be written
435       is provided as a cross-check.       is provided as a cross-check.
# Line 484  class DataTagged : public DataAbstract { Line 488  class DataTagged : public DataAbstract {
488    
489    /**    /**
490       \brief       \brief
491       swaps components axis_offset and axis_offset+1       swaps components axis0 and axis1
492    
493       \param ev - Output - swapped components       \param ev - Output - swapped components
494    
495    */    */
496    ESCRIPT_DLL_API    ESCRIPT_DLL_API
497    virtual void    virtual void
498    swap(DataAbstract* ev, int axis_offset);    swapaxes(DataAbstract* ev, int axis0, int axis1);
499    
500    /**    /**
501       \brief       \brief
# Line 574  DataTagged::getDefaultValue() const Line 578  DataTagged::getDefaultValue() const
578  }  }
579    
580  inline  inline
581    const DataArrayView::ValueType::ElementType*
582    DataTagged::getData() const
583    {
584       return &(m_data[0]);
585    }
586    
587    inline
588  const DataTagged::DataMapType&  const DataTagged::DataMapType&
589  DataTagged::getTagLookup() const  DataTagged::getTagLookup() const
590  {  {

Legend:
Removed from v.800  
changed lines
  Added in v.983

  ViewVC Help
Powered by ViewVC 1.1.26