/[escript]/branches/trilinos_from_5897/escriptcore/src/DataConstant.h
ViewVC logotype

Diff of /branches/trilinos_from_5897/escriptcore/src/DataConstant.h

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

revision 2004 by ksteube, Thu Sep 25 23:11:13 2008 UTC revision 2005 by jfenwick, Mon Nov 10 01:21:39 2008 UTC
# Line 16  Line 16 
16  #define escript_DataConstant_20040323_H  #define escript_DataConstant_20040323_H
17  #include "system_dep.h"  #include "system_dep.h"
18    
19  #include "DataAbstract.h"  #include "DataReady.h"
20    
21  #include <boost/python/numeric.hpp>  #include <boost/python/numeric.hpp>
22    
# Line 31  namespace escript { Line 31  namespace escript {
31     DataConstant stores a single data point which represents the entire     DataConstant stores a single data point which represents the entire
32     function space.     function space.
33  */  */
34  class DataConstant : public DataAbstract  {  class DataConstant : public DataReady  {
35    typedef DataReady parent;
36   public:   public:
37    
38    /**    /**
# Line 97  class DataConstant : public DataAbstract Line 97  class DataConstant : public DataAbstract
97                 const DataTypes::ShapeType &shape,                 const DataTypes::ShapeType &shape,
98                 const DataTypes::ValueType &data);                 const DataTypes::ValueType &data);
99    
100    
101      ESCRIPT_DLL_API
102      bool
103      isConstant() const
104      {
105        return true;
106      };
107    
108    
109    /**    /**
110       \brief       \brief
111       Write the data as a string.       Write the data as a string.
# Line 147  class DataConstant : public DataAbstract Line 156  class DataConstant : public DataAbstract
156    getPointOffset(int sampleNo,    getPointOffset(int sampleNo,
157                   int dataPointNo) const;                   int dataPointNo) const;
158    
159      ESCRIPT_DLL_API
160      virtual
161      DataTypes::ValueType::size_type
162      getPointOffset(int sampleNo,
163                     int dataPointNo);
164    
165  //  /**  //  /**
166  /*     \brief  /*     \brief
167       Return a view into the data for the data point specified.       Return a view into the data for the data point specified.

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

  ViewVC Help
Powered by ViewVC 1.1.26