Generated on Sat Feb 7 2015 02:01:40 for Gecode by doxygen 1.8.9.1

Choices storing position More...

#include <brancher-view.hpp>

Public Member Functions

 PosChoice (const Brancher &b, unsigned int a, const Pos &p)
 Initialize choice for brancher b, number of alternatives a, and position p. More...
 
const Pospos (void) const
 Return position in array. More...
 
virtual size_t size (void) const
 Report size occupied. More...
 
virtual void archive (Archive &e) const
 Archive into e. More...
 
- Public Member Functions inherited from Gecode::Choice
unsigned int alternatives (void) const
 Return number of alternatives. More...
 
virtual ~Choice (void)
 Destructor. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from Gecode::Choice
static void * operator new (size_t)
 Allocate memory from heap. More...
 
static void operator delete (void *)
 Return memory to heap. More...
 
- Protected Member Functions inherited from Gecode::Choice
 Choice (const Brancher &b, const unsigned int a)
 Initialize for particular brancher b and alternatives a. More...
 

Detailed Description

Choices storing position

Definition at line 57 of file brancher-view.hpp.

Constructor & Destructor Documentation

Gecode::PosChoice::PosChoice ( const Brancher b,
unsigned int  a,
const Pos p 
)
inline

Initialize choice for brancher b, number of alternatives a, and position p.

Definition at line 122 of file brancher-view.hpp.

Member Function Documentation

const Pos & Gecode::PosChoice::pos ( void  ) const
inline

Return position in array.

Definition at line 125 of file brancher-view.hpp.

size_t Gecode::PosChoice::size ( void  ) const
inlinevirtual

Report size occupied.

Implements Gecode::Choice.

Reimplemented in Gecode::Int::LDSB::LDSBChoice< Val >, Gecode::Int::Branch::PosValuesChoice, and Gecode::PosValChoice< Val >.

Definition at line 129 of file brancher-view.hpp.

void Gecode::PosChoice::archive ( Archive e) const
inlinevirtual

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