Generated on Wed Nov 5 2014 05:18:39 for Gecode by doxygen 1.7.6.1
Gecode::Choice Class Reference

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 1036 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 3092 of file core.hpp.

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

Destructor.

Reimplemented in CDBF::Choice.

Definition at line 3106 of file core.hpp.


Member Function Documentation

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

Return number of alternatives.

Definition at line 3096 of file core.hpp.

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

Allocate memory from heap.

Definition at line 2309 of file core.hpp.

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

Return memory to heap.

Definition at line 2305 of file core.hpp.


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