Add notion of base EOT for heterogeneous model. Island can be templated on a EOT regardless the EOT of its model. Island must have a conversion function from and to base EOT. Base EOT is optionnal and would be considered as EOT. In that case, conversion functions would be identity function.
This commit is contained in:
parent
c90fdc579f
commit
f67ee442c7
11 changed files with 86 additions and 58 deletions
|
|
@ -50,7 +50,7 @@ By using the wrapper, we do not have to modify original continuators inside the
|
|||
it avoids some side effects.
|
||||
|
||||
*/
|
||||
template<class EOT>
|
||||
template<class EOT, class bEOT>
|
||||
class ContWrapper
|
||||
{
|
||||
public:
|
||||
|
|
@ -59,11 +59,11 @@ public:
|
|||
* @param _cont Original continuators
|
||||
* @param _policy Policy to wrap with continuators
|
||||
*/
|
||||
ContWrapper(eoContinue<EOT>& _cont, AIsland<EOT>* island);
|
||||
ContWrapper(eoContinue<EOT>& _cont, AIsland<bEOT>* island);
|
||||
|
||||
protected:
|
||||
eoCheckPoint<EOT> ck;
|
||||
IslandNotifier<EOT> islandNotifier;
|
||||
IslandNotifier<bEOT> islandNotifier;
|
||||
};
|
||||
|
||||
#include <contWrapper.cpp>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue