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

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

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

revision 1802 by jfenwick, Wed Sep 17 06:33:18 2008 UTC revision 1803 by jfenwick, Wed Sep 24 06:20:29 2008 UTC
# Line 20  Line 20 
20  namespace {  namespace {
21    
22    
23  // This function is inlined to prevent the compiler complaining about missing return statements    inline
24  // in methods where it is called.    void
25  // inline    throwStandardException(const std::string& functionName)
26  void    {
27  throwStandardException(const std::string& functionName)      throw escript::DataException("Error - "+functionName+" function call invalid for DataEmpty.");
28  {    }
   throw escript::DataException("Error - "+functionName+" function call invalid for DataEmpty.");  
 }  
29    
30    
31  escript::DataTypes::ValueType dummy;        escript::DataTypes::ValueType dummy;  
32    
33  }  }
34    
35  namespace escript {  namespace escript {
36    
37  DataEmpty::DataEmpty() :  DataEmpty::DataEmpty() :
38    DataAbstract(FunctionSpace(),DataTypes::scalarShape)    DataAbstract(FunctionSpace(),DataTypes::scalarShape, true)
39  {  {
40  //  resetPointDataView();  
41  }  }
42    
43  DataEmpty::~DataEmpty()  DataEmpty::~DataEmpty()
# Line 67  DataEmpty::getPointOffset(int sampleNo, Line 65  DataEmpty::getPointOffset(int sampleNo,
65    return 0;    return 0;
66  }  }
67    
 // DataArrayView  
 // DataEmpty::getDataPoint(int sampleNo,  
 //                         int dataPointNo)  
 // {  
 //   throwStandardException("getDataPoint");  
 //   return getPointDataView();  
 // }  
   
68  DataTypes::ValueType::size_type  DataTypes::ValueType::size_type
69  DataEmpty::getLength() const  DataEmpty::getLength() const
70  {  {
# Line 112  DataEmpty::getVector() const Line 102  DataEmpty::getVector() const
102  }  }
103    
104    
105    void
106    DataEmpty::dump(const std::string fileName) const
107    {
108        throw DataException("Error - Cannot dump() a DataEmpty object.");
109    }
110    
111  }  // end of namespace  }  // end of namespace

Legend:
Removed from v.1802  
changed lines
  Added in v.1803

  ViewVC Help
Powered by ViewVC 1.1.26