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

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

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

revision 1312 by ksteube, Mon Sep 24 06:18:44 2007 UTC revision 1325 by matt, Mon Oct 1 06:28:24 2007 UTC
# Line 18  Line 18 
18  #include "system_dep.h"  #include "system_dep.h"
19    
20  #include "DataArrayView.h"  #include "DataArrayView.h"
 #include "DataArray.h"  
21  #include "FunctionSpace.h"  #include "FunctionSpace.h"
22    
23  #include <boost/scoped_ptr.hpp>  #include <boost/scoped_ptr.hpp>
# Line 32  namespace escript { Line 31  namespace escript {
31  /**  /**
32     \brief     \brief
33     DataAbstract provides an abstract interface for the class of containers     DataAbstract provides an abstract interface for the class of containers
34     which hold ESyS data.     which hold ESyS data.
35    
36     Description:     Description:
37     DataAbstract provides an abstract interface for the class of containers     DataAbstract provides an abstract interface for the class of containers
# Line 106  class DataAbstract { Line 105  class DataAbstract {
105    
106    /**    /**
107       \brief       \brief
108       Return the DataArrayView of the point data. This essentially contains       Return the DataArrayView of the point data. This essentially contains
109       the shape information for each data point although it also may be used       the shape information for each data point although it also may be used
110       to manipulate the point data.       to manipulate the point data.
111    */    */
# Line 187  class DataAbstract { Line 186  class DataAbstract {
186    ESCRIPT_DLL_API    ESCRIPT_DLL_API
187    bool    bool
188    validSampleNo(int sampleNo) const;    validSampleNo(int sampleNo) const;
189    
190    /**    /**
191       \brief       \brief
192       Return a view into the data for the data point specified.       Return a view into the data for the data point specified.
193       NOTE: Construction of the DataArrayView is a relatively expensive       NOTE: Construction of the DataArrayView is a relatively expensive
194       operation.       operation.
195    
196       \param sampleNo - Input - the sample number.       \param sampleNo - Input - the sample number.
# Line 240  class DataAbstract { Line 239  class DataAbstract {
239    /**    /**
240       \brief       \brief
241       setTaggedValue       setTaggedValue
242                                                                                                                                      
243       Description:       Description:
244       Assign the given value to the given tag.       Assign the given value to the given tag.
245    
# Line 471  class DataAbstract { Line 470  class DataAbstract {
470    
471  inline  inline
472  bool  bool
473  DataAbstract::validSamplePointNo(int samplePointNo) const  DataAbstract::validSamplePointNo(int samplePointNo) const
474  {  {
475    return ((0 <= samplePointNo) && (samplePointNo < m_noDataPointsPerSample));    return ((0 <= samplePointNo) && (samplePointNo < m_noDataPointsPerSample));
476  }  }
# Line 492  DataAbstract::getSampleData(ValueType::s Line 491  DataAbstract::getSampleData(ValueType::s
491    
492  inline  inline
493  int  int
494  DataAbstract::getNumDPPSample() const  DataAbstract::getNumDPPSample() const
495  {  {
496    return m_noDataPointsPerSample;    return m_noDataPointsPerSample;
497  }  }

Legend:
Removed from v.1312  
changed lines
  Added in v.1325

  ViewVC Help
Powered by ViewVC 1.1.26