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

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

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

revision 1388 by trankine, Fri Jan 11 07:45:58 2008 UTC revision 1796 by jfenwick, Wed Sep 17 01:45:46 2008 UTC
# Line 71  class DataEmpty : public DataAbstract { Line 71  class DataEmpty : public DataAbstract {
71     */     */
72    ESCRIPT_DLL_API    ESCRIPT_DLL_API
73    virtual    virtual
74    DataArrayView::ValueType::size_type    DataTypes::ValueType::size_type
75    getPointOffset(int sampleNo,    getPointOffset(int sampleNo,
76                   int dataPointNo) const;                   int dataPointNo) const;
77    
78    /**  //  /**
79       \brief  /*     \brief
80       Return a view into the data for the data point specified.       Return a view into the data for the data point specified.
81       NB: This will throw an exception as obviously an empty Data object contains no       NB: This will throw an exception as obviously an empty Data object contains no
82       data points. An implementation is required by parent DataAbstract class.       data points. An implementation is required by parent DataAbstract class.
83       \param sampleNo - Input - Sample number.       \param sampleNo - Input - Sample number.
84       \param dataPointNo - Input - data-point number.       \param dataPointNo - Input - data-point number.*/
85    */  //  */
86    ESCRIPT_DLL_API  //   ESCRIPT_DLL_API
87    virtual  //   virtual
88    DataArrayView  //   DataArrayView
89    getDataPoint(int sampleNo,  //   getDataPoint(int sampleNo,
90                 int dataPointNo);  //                int dataPointNo);
91    
92    /**    /**
93       \brief       \brief
# Line 109  class DataEmpty : public DataAbstract { Line 109  class DataEmpty : public DataAbstract {
109    ESCRIPT_DLL_API    ESCRIPT_DLL_API
110    virtual    virtual
111    DataAbstract*    DataAbstract*
112    getSlice(const DataArrayView::RegionType& region) const;    getSlice(const DataTypes::RegionType& region) const;
113    
114    /**    /**
115       \brief       \brief
# Line 124  class DataEmpty : public DataAbstract { Line 124  class DataEmpty : public DataAbstract {
124    virtual    virtual
125    void    void
126    setSlice(const DataAbstract* value,    setSlice(const DataAbstract* value,
127             const DataArrayView::RegionType& region);             const DataTypes::RegionType& region);
128    
129   protected:   protected:
130    
131     /**
132        \brief Provide access to underlying storage. Internal use only!
133      */
134      ESCRIPT_DLL_API
135      virtual DataTypes::ValueType&
136      getVector();
137    
138      ESCRIPT_DLL_API
139      virtual const DataTypes::ValueType&
140      getVector() const;
141    
142   private:   private:
143    
144    /**  //  /**
145       \brief  /*     \brief
146       Throw a standard exception. This function is called if an attempt       Throw a standard exception. This function is called if an attempt
147       is made to use functions of DataEmpty that are not valid.       is made to use functions of DataEmpty that are not valid.*/
148    */  //  */
149    void  //   void
150    throwStandardException(const std::string& functionName) const;  //   throwStandardException(const std::string& functionName) const;
151    
152  };  };
153    

Legend:
Removed from v.1388  
changed lines
  Added in v.1796

  ViewVC Help
Powered by ViewVC 1.1.26