some MO types replacement

This commit is contained in:
Johann Dreo 2010-09-04 23:07:37 +02:00
commit 5dc8a1a8fe
3 changed files with 16 additions and 6 deletions

View file

@ -11,6 +11,7 @@
#include <eoFunctor.h>
#include "doBounder.h"
#include "doBounderNo.h"
template < typename D >
class doSampler : public eoUF< D&, typename D::EOType >
@ -22,6 +23,10 @@ public:
: _bounder(bounder)
{}
doSampler()
: _bounder( _dummy_bounder )
{}
// virtual EOType operator()( D& ) = 0 (provided by eoUF< A1, R >)
virtual EOType sample( D& ) = 0;
@ -60,6 +65,8 @@ public:
private:
//! Bounder functor
doBounder< EOType > & _bounder;
doBounderNo<EOType> _dummy_bounder;
};
#endif // !_doSampler_h