Generated on Sat Feb 7 2015 02:01:38 for Gecode by doxygen 1.8.9.1
SteelMill::SteelMillBranch Class Reference

Custom brancher for steel mill slab design. More...

Classes

class  Choice
 Choice More...
 

Public Member Functions

virtual bool status (const Space &home) const
 Check status of brancher, return true if alternatives left. More...
 
virtual Gecode::Choicechoice (Space &home)
 Return choice. More...
 
virtual Choicechoice (const Space &, Archive &e)
 Return choice from e. More...
 
virtual ExecStatus commit (Space &home, const Gecode::Choice &_c, unsigned int a)
 Perform commit for choice _c and alternative a. More...
 
virtual void print (const Space &, const Gecode::Choice &_c, unsigned int a, std::ostream &o) const
 Print explanation. More...
 
virtual Actorcopy (Space &home, bool share)
 Copy brancher. More...
 
virtual size_t dispose (Space &)
 Delete brancher and return its size. More...
 

Static Public Member Functions

static BrancherHandle post (Home home)
 Post brancher. More...
 

Protected Member Functions

 SteelMillBranch (Home home)
 Construct brancher. More...
 
 SteelMillBranch (Space &home, bool share, SteelMillBranch &b)
 Copy constructor. More...
 

Protected Attributes

int start
 Cache of first unassigned value. More...
 

Detailed Description

Custom brancher for steel mill slab design.

This class implements a custom brancher for SteelMill that considers all slabs with no order assigned to it currently to be symmetric.

Definition at line 354 of file steel-mill.cpp.

Constructor & Destructor Documentation

SteelMill::SteelMillBranch::SteelMillBranch ( Home  home)
inlineprotected

Construct brancher.

Definition at line 382 of file steel-mill.cpp.

SteelMill::SteelMillBranch::SteelMillBranch ( Space home,
bool  share,
SteelMillBranch b 
)
inlineprotected

Copy constructor.

Definition at line 385 of file steel-mill.cpp.

Member Function Documentation

virtual bool SteelMill::SteelMillBranch::status ( const Space home) const
inlinevirtual

Check status of brancher, return true if alternatives left.

Implements Gecode::Brancher.

Definition at line 391 of file steel-mill.cpp.

virtual Gecode::Choice* SteelMill::SteelMillBranch::choice ( Space home)
inlinevirtual

Return choice.

Implements Gecode::Brancher.

Definition at line 402 of file steel-mill.cpp.

virtual Choice* SteelMill::SteelMillBranch::choice ( const Space home,
Archive e 
)
inlinevirtual

Return choice from e.

Implements Gecode::Brancher.

Definition at line 431 of file steel-mill.cpp.

virtual ExecStatus SteelMill::SteelMillBranch::commit ( Space home,
const Gecode::Choice _c,
unsigned int  a 
)
inlinevirtual

Perform commit for choice _c and alternative a.

Implements Gecode::Brancher.

Definition at line 437 of file steel-mill.cpp.

virtual void SteelMill::SteelMillBranch::print ( const Space ,
const Gecode::Choice _c,
unsigned int  a,
std::ostream &  o 
) const
inlinevirtual

Print explanation.

Reimplemented from Gecode::Brancher.

Definition at line 449 of file steel-mill.cpp.

virtual Actor* SteelMill::SteelMillBranch::copy ( Space home,
bool  share 
)
inlinevirtual

Copy brancher.

Implements Gecode::Actor.

Definition at line 458 of file steel-mill.cpp.

static BrancherHandle SteelMill::SteelMillBranch::post ( Home  home)
inlinestatic

Post brancher.

Definition at line 462 of file steel-mill.cpp.

virtual size_t SteelMill::SteelMillBranch::dispose ( Space )
inlinevirtual

Delete brancher and return its size.

Reimplemented from Gecode::Actor.

Definition at line 466 of file steel-mill.cpp.

Member Data Documentation

int SteelMill::SteelMillBranch::start
mutableprotected

Cache of first unassigned value.

Definition at line 357 of file steel-mill.cpp.


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