Generated on Thu Apr 11 14:00:08 2019 for Gecode by doxygen 1.6.3

Gecode::Search::Par::CollectAll Class Reference

Collect all solutions. More...

#include <pbs.hh>

List of all members.

Public Member Functions

 CollectAll (void)
 Initialize.
bool add (Space *s, Slave< CollectAll > *r)
 Add a solution a reported by r and always return true.
bool constrain (const Space &b)
 Dummy function.
bool empty (void) const
 Check whether there is any solution left.
Spaceget (Slave< CollectAll > *&r)
 Return solution reported by r.
 ~CollectAll (void)
 Destructor.

Static Public Attributes

static const bool best = false
 Whether it collects best solutions.

Protected Attributes

Support::DynamicQueue< Space
*, Heap
solutions
 Queue of solutions.

Detailed Description

Collect all solutions.

Definition at line 91 of file pbs.hh.


Constructor & Destructor Documentation

Gecode::Search::Par::CollectAll::CollectAll ( void   )  [inline]

Initialize.

Definition at line 40 of file pbs.hpp.

Gecode::Search::Par::CollectAll::~CollectAll ( void   )  [inline]

Destructor.

Definition at line 61 of file pbs.hpp.


Member Function Documentation

bool Gecode::Search::Par::CollectAll::add ( Space s,
Slave< CollectAll > *  r 
) [inline]

Add a solution a reported by r and always return true.

Definition at line 43 of file pbs.hpp.

bool Gecode::Search::Par::CollectAll::constrain ( const Space b  )  [inline]

Dummy function.

Definition at line 48 of file pbs.hpp.

bool Gecode::Search::Par::CollectAll::empty ( void   )  const [inline]

Check whether there is any solution left.

Definition at line 53 of file pbs.hpp.

Space * Gecode::Search::Par::CollectAll::get ( Slave< CollectAll > *&  r  )  [inline]

Return solution reported by r.

Definition at line 57 of file pbs.hpp.


Member Data Documentation

Queue of solutions.

Definition at line 94 of file pbs.hh.

const bool Gecode::Search::Par::CollectAll::best = false [static]

Whether it collects best solutions.

Definition at line 97 of file pbs.hh.


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