/[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 1879 by jfenwick, Tue Oct 14 03:54:42 2008 UTC revision 1888 by jfenwick, Wed Oct 15 04:00:21 2008 UTC
# Line 34  enum ES_optype Line 34  enum ES_optype
34      ADD=2,      ADD=2,
35      SUB=3,      SUB=3,
36      MUL=4,      MUL=4,
37      DIV=5      DIV=5,
38        SIN=6,
39        COS=7,
40        TAN=8,
41        ASIN=9,
42        ACOS=10,
43        ATAN=11,
44        SINH=12,
45        COSH=13,
46        TANH=14,
47        ERF=15,
48        ASINH=16,
49        ACOSH=17,
50        ATANH=18,
51        LOG10=19,
52        LOG=20,
53        SIGN=21,
54        ABS=22,
55        NEG=23,
56        POS=24,
57        EXP=25,
58        SQRT=26,
59        RECIP=27,
60        GZ=28,
61        LZ=29,
62        GEZ=30,
63        LEZ=31
64  };  };
65    
66  const std::string&  const std::string&
# Line 65  public: Line 91  public:
91    DataLazy(DataAbstract_ptr p);    DataLazy(DataAbstract_ptr p);
92    
93    ESCRIPT_DLL_API    ESCRIPT_DLL_API
94      DataLazy(DataAbstract_ptr left, ES_optype op);
95    
96    
97    
98      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
# Line 110  public: Line 141  public:
141                   int dataPointNo) const;                   int dataPointNo) const;
142    
143    
 //   // this is a top level function, the actual searching will be done by helper methods  
 //   ESCRIPT_DLL_API  
 //   void  
 //   getSample(ValueType& v, int sampleNo,size_t offset=0) const;  
   
144    ESCRIPT_DLL_API    ESCRIPT_DLL_API
145    int    int
146    getBuffsRequired() const;    getBuffsRequired() const;
# Line 128  private: Line 154  private:
154    int m_buffsRequired;  // how many buffers are required to evaluate this expression    int m_buffsRequired;  // how many buffers are required to evaluate this expression
155    size_t m_samplesize;  // number of values required to store a sample    size_t m_samplesize;  // number of values required to store a sample
156    
157    void    const double*
158    resolveSample(ValueType& v,int sampleNo,  size_t offset ) const;    resolveSample(ValueType& v,int sampleNo,  size_t offset ) const;
159    
160      void
161      intoString(std::ostringstream& oss) const;
162    
163  };  };
164    
165  }  }

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

  ViewVC Help
Powered by ViewVC 1.1.26