Alps  2.0.2
Classes | Macros
AlpsSolutionPool.h File Reference
#include "AlpsKnowledgePool.h"
#include "AlpsSolution.h"
+ Include dependency graph for AlpsSolutionPool.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  AlpsSolutionPool
 This class is a comtainer for the solutions found during the search. More...
 

Macros

#define AlpsSolutionInterface(ref)
 

Macro Definition Documentation

◆ AlpsSolutionInterface

#define AlpsSolutionInterface (   ref)
Value:
int getNumSolutions() const { \
(ref).getNumSolutions(); \
} \
int getMaxNumSolutions() const { \
return (ref).getMaxNumSolutions(); \
} \
void setMaxNumSolutions(int num) { \
(ref).setMaxNumSolutions(num); \
} \
bool hasSolution() const { \
return (ref).hasSolution(); \
} \
std::pair<const AlpsSolution*, double> getBestSolution() const { \
return (ref).getBestSolution(); \
} \
void getAllSolutions \
(std::vector<std::pair<const AlpsSolution*, double> >& sols) { \
return (ref).getAllSolutions(sols); \
} \
void addSolution(const AlpsSolution* sol, double priority) { \
(ref).addSolution(sol, priority); \
}

Definition at line 94 of file AlpsSolutionPool.h.

AlpsSolution
Definition: AlpsSolution.h:39