/[escript]/branches/arrayview_from_1695_trunk/escript/src/DataEmpty.cpp
ViewVC logotype

Diff of /branches/arrayview_from_1695_trunk/escript/src/DataEmpty.cpp

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

revision 1746 by jfenwick, Mon Aug 11 06:29:54 2008 UTC revision 1747 by jfenwick, Wed Sep 3 04:56:50 2008 UTC
# Line 19  Line 19 
19  namespace escript {  namespace escript {
20    
21  DataEmpty::DataEmpty() :  DataEmpty::DataEmpty() :
22    DataAbstract(FunctionSpace())    DataAbstract(FunctionSpace(),DataTypes::scalarShape)
23  {  {
24    resetPointDataView();  //  resetPointDataView();
25  }  }
26    
27  DataEmpty::~DataEmpty()  DataEmpty::~DataEmpty()
# Line 42  DataEmpty::getPointOffset(int sampleNo, Line 42  DataEmpty::getPointOffset(int sampleNo,
42    return 0;    return 0;
43  }  }
44    
45  DataArrayView  // DataArrayView
46  DataEmpty::getDataPoint(int sampleNo,  // DataEmpty::getDataPoint(int sampleNo,
47                          int dataPointNo)  //                         int dataPointNo)
48  {  // {
49    throwStandardException("getDataPoint");  //   throwStandardException("getDataPoint");
50    return getPointDataView();  //   return getPointDataView();
51  }  // }
52    
53  DataTypes::ValueType::size_type  DataTypes::ValueType::size_type
54  DataEmpty::getLength() const  DataEmpty::getLength() const
# Line 76  DataEmpty::throwStandardException(const Line 76  DataEmpty::throwStandardException(const
76    throw DataException("Error - "+functionName+" function call invalid for DataEmpty.");    throw DataException("Error - "+functionName+" function call invalid for DataEmpty.");
77  }  }
78    
79    DataTypes::ValueType&
80    DataEmpty::getVector()
81    {
82      throwStandardException("getVector");
83    }
84    
85    const DataTypes::ValueType&
86    DataEmpty::getVector() const
87    {
88      throwStandardException("getVector");
89    }
90    
91    
92    
93  }  // end of namespace  }  // end of namespace

Legend:
Removed from v.1746  
changed lines
  Added in v.1747

  ViewVC Help
Powered by ViewVC 1.1.26