/[escript]/branches/schroedinger/escript/src/DataTagged.cpp
ViewVC logotype

Diff of /branches/schroedinger/escript/src/DataTagged.cpp

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

revision 1863 by jfenwick, Wed Oct 8 00:28:28 2008 UTC revision 1864 by jfenwick, Thu Oct 9 03:09:30 2008 UTC
# Line 31  using namespace std; Line 31  using namespace std;
31  namespace escript {  namespace escript {
32    
33  DataTagged::DataTagged()  DataTagged::DataTagged()
34    : DataAbstract(FunctionSpace(),DataTypes::scalarShape)    : parent(FunctionSpace(),DataTypes::scalarShape)
35  {  {
36    // default constructor    // default constructor
37    
# Line 69  DataTagged::DataTagged(const FunctionSpa Line 69  DataTagged::DataTagged(const FunctionSpa
69                         const DataTypes::ShapeType &shape,                         const DataTypes::ShapeType &shape,
70                         const int tags[],                         const int tags[],
71                         const ValueType& data)                         const ValueType& data)
72    : DataAbstract(what,shape)    : parent(what,shape)
73  {  {
74    // alternative constructor    // alternative constructor
75    // not unit_tested tested yet    // not unit_tested tested yet
# Line 103  DataTagged::DataTagged(const FunctionSpa Line 103  DataTagged::DataTagged(const FunctionSpa
103                         const DataTypes::ShapeType &shape,                         const DataTypes::ShapeType &shape,
104                         const TagListType& tags,                         const TagListType& tags,
105                         const ValueType& data)                         const ValueType& data)
106    : DataAbstract(what,shape)    : parent(what,shape)
107  {  {
108    // alternative constructor    // alternative constructor
109    
# Line 145  DataTagged::DataTagged(const FunctionSpa Line 145  DataTagged::DataTagged(const FunctionSpa
145    
146    
147  DataTagged::DataTagged(const DataTagged& other)  DataTagged::DataTagged(const DataTagged& other)
148    : DataAbstract(other.getFunctionSpace(),other.getShape()),    : parent(other.getFunctionSpace(),other.getShape()),
149    m_data(other.m_data),    m_data(other.m_data),
150    m_offsetLookup(other.m_offsetLookup)    m_offsetLookup(other.m_offsetLookup)
151  {  {
# Line 157  DataTagged::DataTagged(const DataTagged& Line 157  DataTagged::DataTagged(const DataTagged&
157  }  }
158    
159  DataTagged::DataTagged(const DataConstant& other)  DataTagged::DataTagged(const DataConstant& other)
160    : DataAbstract(other.getFunctionSpace(),other.getShape())    : parent(other.getFunctionSpace(),other.getShape())
161  {  {
162    // copy constructor    // copy constructor
163    
# Line 185  DataTagged::DataTagged(const FunctionSpa Line 185  DataTagged::DataTagged(const FunctionSpa
185               const DataTypes::ShapeType& shape,               const DataTypes::ShapeType& shape,
186           const DataTypes::ValueType& defaultvalue,           const DataTypes::ValueType& defaultvalue,
187               const DataTagged* tagsource)               const DataTagged* tagsource)
188   : DataAbstract(what,shape)   : parent(what,shape)
189  {  {
190  // This constructor has not been unit tested yet  // This constructor has not been unit tested yet
191    
# Line 237  DataTagged::getSlice(const DataTypes::Re Line 237  DataTagged::getSlice(const DataTypes::Re
237    
238  DataTagged::DataTagged(const DataTagged& other,  DataTagged::DataTagged(const DataTagged& other,
239                 const DataTypes::RegionType& region)                 const DataTypes::RegionType& region)
240    : DataAbstract(other.getFunctionSpace(),DataTypes::getResultSliceShape(region))    : parent(other.getFunctionSpace(),DataTypes::getResultSliceShape(region))
241  {  {
242    // slice constructor    // slice constructor
243    

Legend:
Removed from v.1863  
changed lines
  Added in v.1864

  ViewVC Help
Powered by ViewVC 1.1.26