34 namespace Gecode {
namespace Search {
59 return build<T,DFS>(s,
opt);
69 : Search::Base<T>(Search::
dfsengine(s,o)) {}
Search engine implementation interface
DfsBuilder(const Options &opt)
The constructor.
#define GECODE_SEARCH_EXPORT
Engine * dfsengine(Space *s, const Options &o)
Create depth-first engine.
A class for building search engines.
Options opt
Stored and already expanded options.
virtual T * next(void)
Return next solution (NULL, if none exists or search has been stopped)
virtual Engine * operator()(Space *s) const
The actual build function.
SEB dfs(const Search::Options &o)
Return a depth-first search engine builder.
bool best(void) const
Whether engine is a best solution search engine.
Gecode toplevel namespace
Depth-first search engine.
DFS(T *s, const Search::Options &o=Search::Options::def)
Initialize search engine for space s with options o.