/[escript]/branches/schroedinger/escript/src/DataLazy.h
ViewVC logotype

Diff of /branches/schroedinger/escript/src/DataLazy.h

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

revision 1888 by jfenwick, Wed Oct 15 04:00:21 2008 UTC revision 1889 by jfenwick, Thu Oct 16 05:57:09 2008 UTC
# Line 94  public: Line 94  public:
94    DataLazy(DataAbstract_ptr left, ES_optype op);    DataLazy(DataAbstract_ptr left, ES_optype op);
95    
96    
97    /*
98    ESCRIPT_DLL_API    ESCRIPT_DLL_API
99    DataLazy(DataLazy_ptr left, DataLazy_ptr right, ES_optype op);    DataLazy(DataLazy_ptr left, DataLazy_ptr right, ES_optype op);*/
100    
101    ESCRIPT_DLL_API    ESCRIPT_DLL_API
102    DataLazy(DataAbstract_ptr left, DataAbstract_ptr right, ES_optype op);    DataLazy(DataAbstract_ptr left, DataAbstract_ptr right, ES_optype op);
# Line 145  public: Line 145  public:
145    int    int
146    getBuffsRequired() const;    getBuffsRequired() const;
147    
148    
149    
150  private:  private:
151    DataReady_ptr m_id;    DataReady_ptr m_id;
152    DataLazy_ptr m_left, m_right;    DataLazy_ptr m_left, m_right;
# Line 155  private: Line 157  private:
157    size_t m_samplesize;  // number of values required to store a sample    size_t m_samplesize;  // number of values required to store a sample
158    
159    const double*    const double*
160    resolveSample(ValueType& v,int sampleNo,  size_t offset ) const;    resolveSample(ValueType& v,int sampleNo,  size_t offset );
161    
162      const double*
163      resolveSample2(ValueType& v,int sampleNo,  size_t offset );
164    
165    
166    void    void
167    intoString(std::ostringstream& oss) const;    intoString(std::ostringstream& oss) const;
168    
169      char m_readytype;
170    
171      void
172      collapse();       // converts the node into an IDENTITY node
173    
174      DataReady_ptr
175      collapseToReady();
176    
177      const double*
178      resolveUnary(ValueType& v,int sampleNo,  size_t offset) const;
179    
180      const double*
181      resolveBinary(ValueType& v,int sampleNo,  size_t offset) const;
182    
183    
184  };  };
185    
186  }  }

Legend:
Removed from v.1888  
changed lines
  Added in v.1889

  ViewVC Help
Powered by ViewVC 1.1.26