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

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

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

revision 2004 by jfenwick, Wed Oct 29 05:48:53 2008 UTC revision 2005 by jfenwick, Mon Nov 10 01:21:39 2008 UTC
# Line 14  Line 14 
14    
15  #include "DataAbstract.h"  #include "DataAbstract.h"
16  #include "DataException.h"  #include "DataException.h"
17    #include "DataLazy.h"
18    
19  using namespace std;  using namespace std;
20    
# Line 49  const_DataAbstract_ptr DataAbstract::get Line 50  const_DataAbstract_ptr DataAbstract::get
50    }    }
51  }  }
52    
53    bool
54    DataAbstract::isLazy() const
55    {
56        return (dynamic_cast<const DataLazy*>(this)!=0);
57    }
58    
59    
60    
61  DataAbstract::DataAbstract(const FunctionSpace& what, const ShapeType& shape, bool isDataEmpty):  DataAbstract::DataAbstract(const FunctionSpace& what, const ShapeType& shape, bool isDataEmpty):
# Line 203  DataAbstract::reorderByReferenceIDs(int Line 210  DataAbstract::reorderByReferenceIDs(int
210  }  }
211    
212    
213  DataTypes::ValueType&  // DataTypes::ValueType&
214  DataAbstract::getVector()  // DataAbstract::getVector()
215  {  // {
216     throw DataException("Error - DataAbstract:: does not have a DataVector.");  //    throw DataException("Error - DataAbstract:: does not have a DataVector.");
217  }  // }
218    //
219  const DataTypes::ValueType&  // const DataTypes::ValueType&
220  DataAbstract::getVector() const  // DataAbstract::getVector() const
221  {  // {
222     throw DataException("Error - DataAbstract:: does not have a DataVector.");  //    throw DataException("Error - DataAbstract:: does not have a DataVector.");
223  }  // }
224    
225    
226    

Legend:
Removed from v.2004  
changed lines
  Added in v.2005

  ViewVC Help
Powered by ViewVC 1.1.26