From 5a4596862bf03193e1df6291507bd5821e25d764 Mon Sep 17 00:00:00 2001 From: quemy Date: Mon, 3 Dec 2012 23:22:22 +0100 Subject: [PATCH] Perfect forwarding for identity conversion functions. Add heterogeneous test (to clean and improve) --- smp/src/abstractIsland.h | 8 +- smp/src/island.cpp | 12 +- smp/src/island.h | 2 +- smp/src/islandModel.cpp | 4 +- smp/test/CMakeLists.txt | 2 +- smp/test/t-smpMI_Heterogeneous.cpp | 220 +++++++++++++++++++++++++++++ 6 files changed, 233 insertions(+), 15 deletions(-) create mode 100644 smp/test/t-smpMI_Heterogeneous.cpp diff --git a/smp/src/abstractIsland.h b/smp/src/abstractIsland.h index 00317a485..9ecbf7216 100644 --- a/smp/src/abstractIsland.h +++ b/smp/src/abstractIsland.h @@ -51,7 +51,7 @@ The abstract island is used to manipulate island pointers wihout the knowledge o @see smp::Island */ -template +template class AIsland { public: @@ -61,9 +61,7 @@ public: /** * Check if there is population to receive */ - virtual void setModel(IslandModel* _model) = 0; - - + virtual void setModel(IslandModel* _model) = 0; /** * Check if there is population to receive or to emigrate @@ -73,7 +71,7 @@ public: /** * Update the island by adding population to send in the imigrants list. */ - virtual void update(eoPop _data) = 0; + virtual void update(eoPop _data) = 0; /** * Check if the algorithm is stopped. diff --git a/smp/src/island.cpp b/smp/src/island.cpp index 889ade6eb..6bd865ee4 100644 --- a/smp/src/island.cpp +++ b/smp/src/island.cpp @@ -29,7 +29,7 @@ Contact: paradiseo-help@lists.gforge.inria.fr template