an intermediate commit to keep updates

This commit is contained in:
Caner Candan 2010-08-16 07:52:30 +02:00
commit 963d59e706
21 changed files with 649 additions and 556 deletions

33
src/doStat.h Normal file
View file

@ -0,0 +1,33 @@
#ifndef _doStat_h
#define _doStat_h
#include <eoFunctor.h>
template < typename D >
class doStatBase : public eoUF< const D&, void >
{
public:
// virtual void operator()( const D& ) = 0 (provided by eoUF< A1, R >)
virtual void lastCall( const D& ) {}
virtual std::string className() const { return "doStatBase"; }
};
template < typename D >
class doStat : doStatBase< D >
{
public:
typedef typename D::EOType EOType;
typedef typename EOType::AtomType AtomType;
public:
doStat(){}
D& distrib() { return _distrib; }
private:
D& _distrib;
};
#endif // !_doStat_h