/[escript]/branches/arrexp_2137_win/escript/src/DataReady.h
ViewVC logotype

Diff of /branches/arrexp_2137_win/escript/src/DataReady.h

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

revision 2211 by jfenwick, Fri Jan 9 01:28:32 2009 UTC revision 2212 by jfenwick, Wed Jan 14 00:15:00 2009 UTC
# Line 65  public: Line 65  public:
65    virtual const DataTypes::ValueType&    virtual const DataTypes::ValueType&
66    getVector() const=0;    getVector() const=0;
67    
68      ESCRIPT_DLL_API
69      virtual const DataTypes::ValueType&
70      getVectorRO() const=0;
71    
72    
73    /**    /**
74       \brief       \brief
75       Copy the specified region from the given object.       Copy the specified region from the given object.
# Line 102  inline Line 107  inline
107  DataAbstract::ValueType::value_type*  DataAbstract::ValueType::value_type*
108  DataReady::getSampleData(ValueType::size_type sampleNo)  DataReady::getSampleData(ValueType::size_type sampleNo)
109  {  {
110  //   return &(m_pointDataView->getData(getPointOffset(sampleNo,0)));    return &(getVector()[getPointOffset(sampleNo,0)]);        // exclusive write checks will be done in getVector()
   return &(getVector()[getPointOffset(sampleNo,0)]);  
111  }  }
112    
113    
# Line 116  DataReady::getDataAtOffset(DataTypes::Va Line 120  DataReady::getDataAtOffset(DataTypes::Va
120    
121  inline  inline
122  DataTypes::ValueType::reference  DataTypes::ValueType::reference
123  DataReady::getDataAtOffset(DataTypes::ValueType::size_type i)  DataReady::getDataAtOffset(DataTypes::ValueType::size_type i)   // exclusive write checks will be done in getVector()
124  {  {
125     return getVector()[i];     return getVector()[i];
126  }  }

Legend:
Removed from v.2211  
changed lines
  Added in v.2212

  ViewVC Help
Powered by ViewVC 1.1.26