33 #ifndef SHARK_CORE_RESULTSETS_H 34 #define SHARK_CORE_RESULTSETS_H 40 template<
class SearchPo
intT,
class ResultT>
46 :point(point),value(value){}
51 template<
typename Archive>
52 void serialize( Archive & archive,
const unsigned int ) {
70 template<
typename T,
typename U>
74 template<
class SearchPo
int,
class Result>
75 std::ostream & operator<<( std::ostream & out, ResultSet<SearchPoint,Result>
const& solution ) {
76 out << solution.
value <<
" " << solution.point;
83 template<
class SearchPo
intTypeT>
90 :
ResultSet<SearchPointTypeT,double>(value, point){}
105 template<
class SearchPo
intTypeT>
112 :base_type(base),validation(0){}
114 :base_type(base),validation(validation){}
118 template<
typename Archive>
119 void serialize( Archive & archive,
const unsigned int ) {
120 archive & boost::serialization::base_object<base_type >(*this);
121 archive & validation;
130 template<
class SearchPo
int>
131 std::ostream & operator<<( std::ostream & out, ValidatedSingleObjectiveResultSet<SearchPoint>
const& solution ) {
132 out << solution.validation <<
" "<< solution.value <<
" " << solution.point;