/[escript]/branches/intelc_win32/escript/src/DataEmpty.h
ViewVC logotype

Diff of /branches/intelc_win32/escript/src/DataEmpty.h

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

trunk/escript/src/DataEmpty.h revision 734 by elspeth, Wed Mar 22 02:12:00 2006 UTC branches/intelc_win32/escript/src/DataEmpty.h revision 742 by woo409, Sat Jun 24 11:27:16 2006 UTC
# Line 13  Line 13 
13    
14  #if !defined escript_DataEmpty_20040726_H  #if !defined escript_DataEmpty_20040726_H
15  #define escript_DataEmpty_20040726_H  #define escript_DataEmpty_20040726_H
16    #include "system_dep.h"
17    
18  #include "DataAbstract.h"  #include "DataAbstract.h"
19    
# Line 38  class DataEmpty : public DataAbstract { Line 39  class DataEmpty : public DataAbstract {
39       Default constructor for DataEmpty.       Default constructor for DataEmpty.
40    
41    */    */
42      ESCRIPT_DLL_API
43    DataEmpty();    DataEmpty();
44    
45    /**    /**
46       \brief       \brief
47       Destructor for DataEmpty.       Destructor for DataEmpty.
48    */    */
49      ESCRIPT_DLL_API
50    virtual    virtual
51    ~DataEmpty();    ~DataEmpty();
52    
# Line 51  class DataEmpty : public DataAbstract { Line 54  class DataEmpty : public DataAbstract {
54       \brief       \brief
55       Return a textual representation of the Data object.       Return a textual representation of the Data object.
56    */    */
57      ESCRIPT_DLL_API
58    virtual    virtual
59    std::string    std::string
60    toString() const;    toString() const;
# Line 63  class DataEmpty : public DataAbstract { Line 67  class DataEmpty : public DataAbstract {
67       \param sampleNo - Input - Sample number.       \param sampleNo - Input - Sample number.
68       \param dataPointNo - Input - data-point number.       \param dataPointNo - Input - data-point number.
69     */     */
70      ESCRIPT_DLL_API
71    virtual    virtual
72    DataArrayView::ValueType::size_type    DataArrayView::ValueType::size_type
73    getPointOffset(int sampleNo,    getPointOffset(int sampleNo,
# Line 76  class DataEmpty : public DataAbstract { Line 81  class DataEmpty : public DataAbstract {
81       \param sampleNo - Input - Sample number.       \param sampleNo - Input - Sample number.
82       \param dataPointNo - Input - data-point number.       \param dataPointNo - Input - data-point number.
83    */    */
84      ESCRIPT_DLL_API
85    virtual    virtual
86    DataArrayView    DataArrayView
87    getDataPoint(int sampleNo,    getDataPoint(int sampleNo,
# Line 86  class DataEmpty : public DataAbstract { Line 92  class DataEmpty : public DataAbstract {
92       Return the number of doubles stored for the Data object.       Return the number of doubles stored for the Data object.
93       As this is an empty Data object, this method will always return 0.       As this is an empty Data object, this method will always return 0.
94    */    */
95      ESCRIPT_DLL_API
96    virtual    virtual
97    ValueType::size_type    ValueType::size_type
98    getLength() const;    getLength() const;
# Line 97  class DataEmpty : public DataAbstract { Line 104  class DataEmpty : public DataAbstract {
104       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
105       data to slice from. An implementation is required by parent DataAbstract class.       data to slice from. An implementation is required by parent DataAbstract class.
106    */    */
107      ESCRIPT_DLL_API
108    virtual    virtual
109    DataAbstract*    DataAbstract*
110    getSlice(const DataArrayView::RegionType& region) const;    getSlice(const DataArrayView::RegionType& region) const;
# Line 110  class DataEmpty : public DataAbstract { Line 118  class DataEmpty : public DataAbstract {
118       \param value Input - Data to copy from       \param value Input - Data to copy from
119       \param region Input - Region to copy.       \param region Input - Region to copy.
120    */    */
121      ESCRIPT_DLL_API
122    virtual    virtual
123    void    void
124    setSlice(const DataAbstract* value,    setSlice(const DataAbstract* value,
# Line 121  class DataEmpty : public DataAbstract { Line 130  class DataEmpty : public DataAbstract {
130       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
131       data to reshape. An implementation is required by parent DataAbstract class.       data to reshape. An implementation is required by parent DataAbstract class.
132    */    */
133      ESCRIPT_DLL_API
134    virtual    virtual
135    void    void
136    reshapeDataPoint(const DataArrayView::ShapeType& shape);    reshapeDataPoint(const DataArrayView::ShapeType& shape);

Legend:
Removed from v.734  
changed lines
  Added in v.742

  ViewVC Help
Powered by ViewVC 1.1.26