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

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

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

revision 2520 by jfenwick, Mon Jul 6 00:43:08 2009 UTC revision 2521 by jfenwick, Tue Jul 7 00:08:58 2009 UTC
# Line 242  public: Line 242  public:
242    size_t    size_t
243    getSampleBufferSize() const;    getSampleBufferSize() const;
244    
   /**  
   \brief Compute the value of the expression for the given sample.  
   \return Vector which stores the value of the subexpression for the given sample.  
   \param v A vector to store intermediate results.  
   \param offset Index in v to begin storing results.  
   \param sampleNo Sample number to evaluate.  
   \param roffset (output parameter) the offset in the return vector where the result begins.  
   
   The return value will be an existing vector so do not deallocate it.  
   */  
   ESCRIPT_DLL_API  
   const ValueType*  
   resolveSample(ValueType& v,  size_t offset, int sampleNo, size_t& roffset);  
   
245     /**     /**
246    \brief Compute the value of the expression for the given sample.    \brief Compute the value of the expression for the given sample.
247    \return Vector which stores the value of the subexpression for the given sample.    \return Vector which stores the value of the subexpression for the given sample.
# Line 395  private: Line 381  private:
381  #endif  #endif
382    
383    /**    /**
384      \brief Compute the value of the expression for the given sample - using the vector buffer approach.
385      \return Vector which stores the value of the subexpression for the given sample.
386      \param v A vector to store intermediate results.
387      \param offset Index in v to begin storing results.
388      \param sampleNo Sample number to evaluate.
389      \param roffset (output parameter) the offset in the return vector where the result begins.
390    
391      The return value will be an existing vector so do not deallocate it.
392      */
393      ESCRIPT_DLL_API
394      const ValueType*
395      resolveVectorSample(ValueType& v,  size_t offset, int sampleNo, size_t& roffset);
396    
397    
398      /**
399    \brief Compute the value of the expression (unary operation) for the given sample.    \brief Compute the value of the expression (unary operation) for the given sample.
400    \return Vector which stores the value of the subexpression for the given sample.    \return Vector which stores the value of the subexpression for the given sample.
401    \param v A vector to store intermediate results.    \param v A vector to store intermediate results.

Legend:
Removed from v.2520  
changed lines
  Added in v.2521

  ViewVC Help
Powered by ViewVC 1.1.26