/[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 1772 by jfenwick, Wed Sep 3 04:56:50 2008 UTC revision 1773 by jfenwick, Tue Sep 9 02:52:26 2008 UTC
# Line 16  Line 16 
16  #include "DataEmpty.h"  #include "DataEmpty.h"
17  #include "DataException.h"  #include "DataException.h"
18    
19    
20    namespace {
21    
22    
23    // This function is inlined to prevent the compiler complaining about missing return statements
24    // in methods where it is called.
25    // inline
26    void
27    throwStandardException(const std::string& functionName)
28    {
29      throw escript::DataException("Error - "+functionName+" function call invalid for DataEmpty.");
30    }
31    
32    
33    }
34    
35  namespace escript {  namespace escript {
36    
37  DataEmpty::DataEmpty() :  DataEmpty::DataEmpty() :
# Line 70  DataEmpty::setSlice(const DataAbstract* Line 86  DataEmpty::setSlice(const DataAbstract*
86    throwStandardException("setSlice");    throwStandardException("setSlice");
87  }  }
88    
89  void  
 DataEmpty::throwStandardException(const std::string& functionName) const  
 {  
   throw DataException("Error - "+functionName+" function call invalid for DataEmpty.");  
 }  
90    
91  DataTypes::ValueType&  DataTypes::ValueType&
92  DataEmpty::getVector()  DataEmpty::getVector()

Legend:
Removed from v.1772  
changed lines
  Added in v.1773

  ViewVC Help
Powered by ViewVC 1.1.26