Generated on Sat Feb 7 2015 02:01:39 for Gecode by doxygen 1.8.9.1
Gecode::Choice Class Referenceabstract

Choice for performing commit More...

#include <core.hpp>

Public Member Functions

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

Static Public Member Functions

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

Protected Member Functions

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

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 
)
inlineprotected

Initialize for particular brancher b and alternatives a.

Definition at line 3169 of file core.hpp.

Gecode::Choice::~Choice ( void  )
inlinevirtual

Destructor.

Reimplemented in CDBF::Choice.

Definition at line 3183 of file core.hpp.

Member Function Documentation

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

Return number of alternatives.

Definition at line 3173 of file core.hpp.

void * Gecode::Choice::operator new ( size_t  s)
inlinestatic

Allocate memory from heap.

Definition at line 2352 of file core.hpp.

void Gecode::Choice::operator delete ( void *  p)
inlinestatic

Return memory to heap.

Definition at line 2348 of file core.hpp.


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