/[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 2270 by jfenwick, Wed Dec 17 23:51:23 2008 UTC revision 2271 by jfenwick, Mon Feb 16 05:08:29 2009 UTC
# Line 22  Line 22 
22  #include <functional>  #include <functional>
23    
24  #include "LocalOps.h"       // for tensor_binary_op  #include "LocalOps.h"       // for tensor_binary_op
25    #include "BufferGroup.h"
26    
27  namespace escript {  namespace escript {
28    
# Line 217  public: Line 218  public:
218    size_t    size_t
219    getMaxSampleSize() const;    getMaxSampleSize() const;
220    
221      /**
222        \return the size of the buffer required to evaulate a sample for this object
223      */
224      ESCRIPT_DLL_API
225      size_t
226      getSampleBufferSize() const;
227    
228      /**
229      \brief Compute the value of the expression for the given sample.
230      \return Vector which stores the value of the subexpression for the given sample.
231      \param v A vector to store intermediate results.
232      \param offset Index in v to begin storing results.
233      \param sampleNo Sample number to evaluate.
234      \param roffset (output parameter) the offset in the return vector where the result begins.
235    
236      The return value will be an existing vector so do not deallocate it.
237      */
238      ESCRIPT_DLL_API
239      const ValueType*
240      resolveSample(ValueType& v,  size_t offset, int sampleNo, size_t& roffset);
241    
242       /**
243      \brief Compute the value of the expression for the given sample.
244      \return Vector which stores the value of the subexpression for the given sample.
245      \param v A BufferGroup to store intermediate results.
246      \param sampleNo Sample number to evaluate.
247      \param roffset (output parameter) the offset in the return vector where the result begins.
248    
249      The return value will be an existing vector so do not deallocate it.
250      */
251      ESCRIPT_DLL_API
252      const ValueType*
253      resolveSample(BufferGroup& bg, int sampleNo, size_t& roffset);
254    
255      /**
256      \brief if resolve() was called would it produce expanded data.
257      */
258      ESCRIPT_DLL_API
259      bool
260      actsExpanded() const;
261    
262    /**    /**
263       \brief Produces an IDENTITY DataLazy containing zero.       \brief Produces an IDENTITY DataLazy containing zero.
# Line 285  private: Line 326  private:
326    makeIdentity(const DataReady_ptr& p);    makeIdentity(const DataReady_ptr& p);
327    
328    /**    /**
   \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.  
   */  
   const ValueType*  
   resolveSample(ValueType& v,  size_t offset ,int sampleNo, size_t& roffset);  
   
   /**  
329    \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.
330    \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.
331    \param v A vector to store intermediate results.    \param v A vector to store intermediate results.

Legend:
Removed from v.2270  
changed lines
  Added in v.2271

  ViewVC Help
Powered by ViewVC 1.1.26