/[escript]/branches/arrexp_2137_win_merge/escript/src/DataC.cpp
ViewVC logotype

Diff of /branches/arrexp_2137_win_merge/escript/src/DataC.cpp

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

revision 2221 by jfenwick, Wed Jan 14 00:23:39 2009 UTC revision 2222 by jfenwick, Tue Jan 20 04:52:39 2009 UTC
# Line 166  double* getSampleDataRW(struct escriptDa Line 166  double* getSampleDataRW(struct escriptDa
166    }    }
167  }  }
168    
169  double* getSampleDataFast(struct escriptDataC* data, int sampleNo)  const double* getSampleDataROFast(struct escriptDataC* data, int sampleNo, void* buffer)
170    {
171      escript::Data* temp=(escript::Data*)(data->m_dataPtr);
172      return temp->getSampleDataRO(sampleNo, reinterpret_cast<escript::DataTypes::ValueType*>(buffer));
173    }
174    
175    double* getSampleDataRWFast(struct escriptDataC* data, int sampleNo)
176  {  {
177    escript::Data* temp=(escript::Data*)(data->m_dataPtr);    escript::Data* temp=(escript::Data*)(data->m_dataPtr);
178    return temp->getSampleDataRW(sampleNo);    return temp->getSampleDataRW(sampleNo);
# Line 191  void freeSampleBuffer(void* buffer) Line 197  void freeSampleBuffer(void* buffer)
197    }    }
198  }  }
199    
200    void requireWrite(escriptDataC* data)
201    {
202      if (data == (struct escriptDataC*)0) {
203           return;
204      } else {
205          ((escript::Data*)(data->m_dataPtr))->requireWrite();
206      }
207    }

Legend:
Removed from v.2221  
changed lines
  Added in v.2222

  ViewVC Help
Powered by ViewVC 1.1.26