Generated on Thu Mar 22 10:39:53 2012 for Gecode by doxygen 1.6.3

Gecode::Choice Class Reference
[Programming actors]

Choice for performing commit More...

#include <core.hpp>

List of all members.

Public Member Functions

unsigned int alternatives (void) const
 Return number of alternatives.
virtual ~Choice (void)
 Destructor.
virtual size_t size (void) const =0
 Report size occupied by choice.
virtual void archive (Archive &e) const
 Archive into e.

Static Public Member Functions

static void * operator new (size_t)
 Allocate memory from heap.
static void operator delete (void *)
 Return memory to heap.

Protected Member Functions

 Choice (const Brancher &b, const unsigned int a)
 Initialize for particular brancher b and alternatives a.

Detailed Description

Choice for performing commit

Must be refined by inheritance such that the information stored inside a choice is sufficient to redo a commit performed by a particular brancher.

Definition at line 969 of file core.hpp.


Constructor & Destructor Documentation

Gecode::Choice::Choice ( const Brancher b,
const unsigned int  a 
) [inline, protected]

Initialize for particular brancher b and alternatives a.

Definition at line 2697 of file core.hpp.

Gecode::Choice::~Choice ( void   )  [inline, virtual]

Destructor.

Reimplemented in CDBF::Choice.

Definition at line 2711 of file core.hpp.


Member Function Documentation

unsigned int Gecode::Choice::alternatives ( void   )  const [inline]

Return number of alternatives.

Definition at line 2701 of file core.hpp.

void * Gecode::Choice::operator new ( size_t  s  )  [inline, static]

Allocate memory from heap.

Definition at line 2002 of file core.hpp.

void Gecode::Choice::operator delete ( void *  p  )  [inline, static]

Return memory to heap.

Definition at line 1998 of file core.hpp.


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