Modification of cotinuator.h
This commit is contained in:
parent
d7682cae19
commit
ef8bc7b03f
1 changed files with 91 additions and 69 deletions
|
|
@ -30,7 +30,7 @@
|
||||||
#include <data.h>
|
#include <data.h>
|
||||||
|
|
||||||
#include <eoContinue.h>
|
#include <eoContinue.h>
|
||||||
|
#include <eoSelectOne.h>
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Continue interface
|
* Continue interface
|
||||||
|
|
@ -57,6 +57,28 @@ protected:
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
template < class TYPE> class selector
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
virtual const TYPE & select()=0;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
template < class EOT> class eoSelector : public selector<EOT>{
|
||||||
|
public:
|
||||||
|
|
||||||
|
eoSelector(eoSelectOne<EOT> & _select, const eoPop<EOT> & _pop): selector (_select), pop(_pop){}
|
||||||
|
|
||||||
|
virtual const EOT & select(){
|
||||||
|
return select(pop);
|
||||||
|
}
|
||||||
|
|
||||||
|
protected:
|
||||||
|
eoSelectOne<EOT> & selector ;
|
||||||
|
const eoPop<EOT> & pop;
|
||||||
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Reference in a new issue