1 #ifndef FAIF_SEARCH_SPACE_HPP     2 #define FAIF_SEARCH_SPACE_HPP     8 #if defined(_MSC_VER) && (_MSC_VER >= 1400)    10 #pragma warning(disable:4510)    11 #pragma warning(disable:4610)    18 #include <boost/bind.hpp>    19 #include <boost/concept_check.hpp>    25         template<
typename Ind> 
struct Space {
    26             typedef Ind Individual;
    27             typedef double Fitness;
    32         template<
typename Space>
    34             typedef typename Space::Individual Individual;
    35             typedef typename Space::Fitness Fitness;
    48             template<
typename Population> 
void update(
const Population& ) { ++steps_; }
    49             bool isFinished()
 const { 
return steps_ >= STEPS_NUM; }
 
the typedef-s for space, where the fitness is defined as double 
Definition: Space.hpp:25
 
Stop condition, finish the algorithm after STEPS_NUM iterations. 
Definition: Space.hpp:46
 
the concept for space with fitness 
Definition: Space.hpp:33