Generated on Fri Aug 24 2012 04:52:19 for Gecode by doxygen 1.8.1.2
Gecode::FunctionBranch Class Reference

Brancher for calling a function More...

Classes

class  Description
 Minimal brancher description storing no information. More...

Public Member Functions

virtual bool status (const Space &) const
 Check status of brancher, return true if alternatives left.
virtual const Choicechoice (Space &)
 Return choice.
virtual const Choicechoice (const Space &, Archive &)
 Return choice.
virtual ExecStatus commit (Space &home, const Choice &, unsigned int)
 Perform commit.
virtual Actorcopy (Space &home, bool share)
 Copy brancher.
- Public Member Functions inherited from Gecode::Brancher
unsigned int id (void) const
 Return unsigned brancher id.

Static Public Member Functions

static void post (Home home, void(*f)(Space &))
 Post brancher.

Protected Member Functions

 FunctionBranch (Home home, void(*f0)(Space &))
 Construct brancher.
 FunctionBranch (Space &home, bool share, FunctionBranch &b)
 Copy constructor.
- Protected Member Functions inherited from Gecode::Brancher
 Brancher (Home home)
 Constructor for creation.
 Brancher (Space &home, bool share, Brancher &b)
 Constructor for cloning b.

Protected Attributes

void(* f )(Space &)
 Function to call.
bool done
 Call function just once.

Detailed Description

Brancher for calling a function

Definition at line 56 of file branch.cpp.

Constructor & Destructor Documentation

Gecode::FunctionBranch::FunctionBranch ( Home  home,
void(*)(Space &)  f0 
)
inlineprotected

Construct brancher.

Definition at line 75 of file branch.cpp.

Gecode::FunctionBranch::FunctionBranch ( Space home,
bool  share,
FunctionBranch b 
)
inlineprotected

Copy constructor.

Definition at line 78 of file branch.cpp.

Member Function Documentation

virtual bool Gecode::FunctionBranch::status ( const Space ) const
inlinevirtual

Check status of brancher, return true if alternatives left.

Implements Gecode::Brancher.

Definition at line 82 of file branch.cpp.

virtual const Choice* Gecode::FunctionBranch::choice ( Space )
inlinevirtual

Return choice.

Implements Gecode::Brancher.

Definition at line 86 of file branch.cpp.

virtual const Choice* Gecode::FunctionBranch::choice ( const Space ,
Archive  
)
inlinevirtual

Return choice.

Implements Gecode::Brancher.

Definition at line 91 of file branch.cpp.

virtual ExecStatus Gecode::FunctionBranch::commit ( Space home,
const Choice ,
unsigned int   
)
inlinevirtual

Perform commit.

Implements Gecode::Brancher.

Definition at line 96 of file branch.cpp.

virtual Actor* Gecode::FunctionBranch::copy ( Space home,
bool  share 
)
inlinevirtual

Copy brancher.

Implements Gecode::Actor.

Definition at line 102 of file branch.cpp.

static void Gecode::FunctionBranch::post ( Home  home,
void(*)(Space &)  f 
)
inlinestatic

Post brancher.

Definition at line 106 of file branch.cpp.

Member Data Documentation

void(* Gecode::FunctionBranch::f)(Space &)
protected

Function to call.

Definition at line 71 of file branch.cpp.

bool Gecode::FunctionBranch::done
protected

Call function just once.

Definition at line 73 of file branch.cpp.


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