an intermediate commit to keep updates
This commit is contained in:
parent
1070ec8a32
commit
963d59e706
21 changed files with 649 additions and 556 deletions
33
src/doStat.h
Normal file
33
src/doStat.h
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue