Generated on Thu Mar 16 2017 03:24:28 for Gecode by doxygen 1.8.13
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...
 

Protected Member Functions

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

Additional Inherited Members

- Static Public Member Functions inherited from Gecode::HeapAllocated
static void * operator new (size_t s)
 Memory management. More...
 
static void operator delete (void *p)
 Free memory allocated from heap. 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 1332 of file core.hpp.

Constructor & Destructor Documentation

◆ Choice()

Gecode::Choice::Choice ( const Brancher b,
const unsigned int  a 
)
inlineprotected

Initialize for particular brancher b and alternatives a.

Definition at line 3685 of file core.hpp.

◆ ~Choice()

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

Destructor.

Reimplemented in CDBF::Choice.

Definition at line 3699 of file core.hpp.

Member Function Documentation

◆ alternatives()

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

Return number of alternatives.

Definition at line 3689 of file core.hpp.

◆ size()

◆ archive()


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