Generated on Tue Sep 25 2012 20:53:26 for Gecode by doxygen 1.7.5
Gecode::DFS Class Reference

Depth-first search engine. More...

#include <search.hh>

List of all members.

Public Member Functions

 DFS (T *s, const Search::Options &o=Search::Options::def)
 Initialize search engine for space s with options o.
T * next (void)
 Return next solution (NULL, if none exists or search has been stopped)
Search::Statistics statistics (void) const
 Return statistics.
bool stopped (void) const
 Check whether engine has been stopped.
 ~DFS (void)
 Destructor.

Detailed Description

Depth-first search engine.

This class supports depth-first search for subclasses T of Space.


Constructor & Destructor Documentation

Gecode::DFS::DFS ( T *  s,
const Search::Options o = Search::Options::def 
) [inline]

Initialize search engine for space s with options o.

Definition at line 47 of file dfs.hpp.

Gecode::DFS::~DFS ( void  ) [inline]

Destructor.

Definition at line 70 of file dfs.hpp.


Member Function Documentation

T * Gecode::DFS::next ( void  ) [inline]

Return next solution (NULL, if none exists or search has been stopped)

Definition at line 52 of file dfs.hpp.

Search::Statistics Gecode::DFS::statistics ( void  ) const [inline]

Return statistics.

Definition at line 58 of file dfs.hpp.

bool Gecode::DFS::stopped ( void  ) const [inline]

Check whether engine has been stopped.

Definition at line 64 of file dfs.hpp.


The documentation for this class was generated from the following files: