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

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

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

revision 1799 by jfenwick, Wed Sep 17 06:33:18 2008 UTC revision 2742 by jfenwick, Thu Nov 12 06:03:37 2009 UTC
# Line 1  Line 1 
1    
 /* $Id$ */  
   
2  /*******************************************************  /*******************************************************
3   *  *
4   *           Copyright 2003-2007 by ACceSS MNRF  * Copyright (c) 2003-2009 by University of Queensland
5   *       Copyright 2007 by University of Queensland  * Earth Systems Science Computational Center (ESSCC)
6   *  * http://www.uq.edu.au/esscc
7   *                http://esscc.uq.edu.au  *
8   *        Primary Business: Queensland, Australia  * Primary Business: Queensland, Australia
9   *  Licensed under the Open Software License version 3.0  * Licensed under the Open Software License version 3.0
10   *     http://www.opensource.org/licenses/osl-3.0.php  * http://www.opensource.org/licenses/osl-3.0.php
11   *  *
12   *******************************************************/  *******************************************************/
13    
14    
15  #if !defined escript_DataEmpty_20040726_H  #if !defined escript_DataEmpty_20040726_H
16  #define escript_DataEmpty_20040726_H  #define escript_DataEmpty_20040726_H
17  #include "system_dep.h"  #include "system_dep.h"
18    
19  #include "DataAbstract.h"  #include "DataReady.h"
20    
21  namespace escript {  namespace escript {
22    
# Line 29  namespace escript { Line 28  namespace escript {
28     Implements the DataAbstract interface for an empty Data object.     Implements the DataAbstract interface for an empty Data object.
29  */  */
30    
31  class DataEmpty : public DataAbstract {  class DataEmpty : public DataReady {
32    typedef DataReady parent;
33   public:   public:
34    
35    /**    /**
# Line 84  class DataEmpty : public DataAbstract { Line 83  class DataEmpty : public DataAbstract {
83    getPointOffset(int sampleNo,    getPointOffset(int sampleNo,
84                   int dataPointNo) const;                   int dataPointNo) const;
85    
86  //  /**    ESCRIPT_DLL_API
87  /*     \brief    virtual
88       Return a view into the data for the data point specified.    DataTypes::ValueType::size_type
89       NB: This will throw an exception as obviously an empty Data object contains no    getPointOffset(int sampleNo,
90       data points. An implementation is required by parent DataAbstract class.                   int dataPointNo);
      \param sampleNo - Input - Sample number.  
      \param dataPointNo - Input - data-point number.*/  
 //  */  
 //   ESCRIPT_DLL_API  
 //   virtual  
 //   DataArrayView  
 //   getDataPoint(int sampleNo,  
 //                int dataPointNo);  
91    
92    /**    /**
93       \brief       \brief
# Line 135  class DataEmpty : public DataAbstract { Line 126  class DataEmpty : public DataAbstract {
126    setSlice(const DataAbstract* value,    setSlice(const DataAbstract* value,
127             const DataTypes::RegionType& region);             const DataTypes::RegionType& region);
128    
129      /**
130        \brief invert square matricies
131        \param out - Where to store the results
132      */
133      ESCRIPT_DLL_API
134      void
135      matrixInverse(DataAbstract* out) const;
136    
137      void
138      dump(const std::string fileName) const;
139    
140   protected:   protected:
141    
142   /**   /**
# Line 142  class DataEmpty : public DataAbstract { Line 144  class DataEmpty : public DataAbstract {
144    */    */
145    ESCRIPT_DLL_API    ESCRIPT_DLL_API
146    virtual DataTypes::ValueType&    virtual DataTypes::ValueType&
147    getVector();    getVectorRW();
148    
149    
150    ESCRIPT_DLL_API    ESCRIPT_DLL_API
151    virtual const DataTypes::ValueType&    virtual const DataTypes::ValueType&
152    getVector() const;    getVectorRO() const;
153    
154    
155   private:   private:
156    

Legend:
Removed from v.1799  
changed lines
  Added in v.2742

  ViewVC Help
Powered by ViewVC 1.1.26