Generated on Mon Aug 25 11:35:55 2008 for Gecode by doxygen 1.5.6

Test::Search::HasSolutions Class Reference

Inherits Test::Search::TestSpace.

List of all members.


Detailed Description

Space that requires propagation and has solutions.

Definition at line 226 of file search.cc.


Public Member Functions

void branch (const IntVarArgs &x, HowToBranch htb)
 Branch on x according to htb.
 HasSolutions (HowToBranch _htb1, HowToBranch _htb2, HowToBranch _htb3, HowToConstrain _htc=HTC_NONE)
 Constructor for space creation.
 HasSolutions (bool share, HasSolutions &s)
 Constructor for cloning s.
virtual Spacecopy (bool share)
 Copy during cloning.
void constrain (Space *_s)
 Add constraint for next better solution.
virtual int solutions (void) const
 Return number of solutions.
virtual bool best (void) const
 Verify that this is best solution.

Static Public Member Functions

static std::string name (void)
 Return name.

Public Attributes

IntVarArray x
 Variables used.
HowToBranch htb1
 How to branch.
HowToBranch htb2
HowToBranch htb3
HowToConstrain htc
 How to constrain.

Constructor & Destructor Documentation

Test::Search::HasSolutions::HasSolutions ( HowToBranch  _htb1,
HowToBranch  _htb2,
HowToBranch  _htb3,
HowToConstrain  _htc = HTC_NONE 
) [inline]

Constructor for space creation.

Definition at line 254 of file search.cc.

Test::Search::HasSolutions::HasSolutions ( bool  share,
HasSolutions s 
) [inline]

Constructor for cloning s.

Definition at line 265 of file search.cc.


Member Function Documentation

void Test::Search::HasSolutions::branch ( const IntVarArgs x,
HowToBranch  htb 
) [inline]

Branch on x according to htb.

Definition at line 235 of file search.cc.

virtual Space* Test::Search::HasSolutions::copy ( bool  share  )  [inline, virtual]

Copy during cloning.

Implements Gecode::Space.

Definition at line 271 of file search.cc.

void Test::Search::HasSolutions::constrain ( Space _s  )  [inline]

Add constraint for next better solution.

Definition at line 275 of file search.cc.

virtual int Test::Search::HasSolutions::solutions ( void   )  const [inline, virtual]

Return number of solutions.

Implements Test::Search::TestSpace.

Definition at line 308 of file search.cc.

virtual bool Test::Search::HasSolutions::best ( void   )  const [inline, virtual]

Verify that this is best solution.

Implements Test::Search::TestSpace.

Definition at line 320 of file search.cc.

static std::string Test::Search::HasSolutions::name ( void   )  [inline, static]

Return name.

Definition at line 348 of file search.cc.


Member Data Documentation

Variables used.

Definition at line 229 of file search.cc.

How to branch.

Definition at line 231 of file search.cc.

How to constrain.

Definition at line 233 of file search.cc.


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