Ignore:
Timestamp:
Nov 9, 1999, 3:04:05 PM (26 years ago)
Author:
ansari
Message:

portage cxx en cours

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Poubelle/archTOI.old/toiinterpolator.h

    r350 r555  
    11// toiinterpolator.h
    2 // Eric Aubourg         CEA/DAPNIA/SPP   juillet 1999
     2// Eric Aubourg         CEA/DAPNIA/SPP   octobre 1999
    33
    44
     
    66#define TOIINTERPOLATOR_H
    77
    8 #include <deque>
    9 
    10 using namespace std;
     8#include "toipullproducer.h"
    119
    1210
    13 class TOIInterpolator {
     11class TOIInterpolator : public TOIPullProducer {
    1412public:
    15 
    16   void enterValue(double value, long sample);
    17   bool   needMoreDataFor(long sample);   // need more data ? (for interp)
    18   bool   canGet(long sample);        // enough info ?
    19   double getIValue(long sample);     // can forget before sample
    20   double getEValue(long sample);     // can forget before sample
    21   bool   isNewValue(long sample);   
    22   long   nextSample(long sampleMin); // the next true sample available
     13  TOIInterpolator();
     14  virtual string getName();
     15  virtual double getValue(long sampleNum, TOI const& toi);
     16  virtual bool   canGetValue(long sampleNum, TOI const& toi);
     17  virtual bool   canGetValueLater(long sampleNum, TOI const& toi);
     18  virtual bool   canProduce(TOI const&);
    2319
    2420protected:
    25   struct pair {
    26     pair(double v, long tt) : val(v), t(tt) {}
    27     pair() {}
    28     double val;
    29     long t;
    30   };
    31  
    32   deque<pair> hist;
     21  virtual set<TOI>     reqTOIFor(TOI const&);
     22  void                 propagateLowBound(TOI const& toi, long sampleNum);
     23
    3324};
    3425
Note: See TracChangeset for help on using the changeset viewer.