Generated on Thu Feb 14 2013 20:59:55 for Gecode by doxygen 1.8.3.1
Gecode::PosValChoice< ViewSel, ValSel > Class Template Reference

Choice storing position and value More...

#include <brancher.hpp>

Public Member Functions

 PosValChoice (const Brancher &b, const Pos &p, const typename ViewSel::Choice &viewc, const typename ValSel::Choice &valc, const typename ValSel::Val &n)
 Initialize choice for brancher b, position p, view choice viewc, value choice valc, and value n. More...
 
const ValSel::Choice & valchoice (void) const
 Return stored choice. More...
 
const ValSel::Val & val (void) const
 Return value to branch with. 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::PosChoice< ViewSel >
 PosChoice (const Brancher &b, unsigned int a, const Pos &p, const typename ViewSel::Choice &viewc)
 Initialize choice for brancher b, number of alternatives a, position p, view selection choice viewc. More...
 
const Pospos (void) const
 Return position in array. More...
 
const ViewSel::Choice & viewchoice (void) const
 Return view selection choice. 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

template<class ViewSel, class ValSel>
class Gecode::PosValChoice< ViewSel, ValSel >

Choice storing position and value

Definition at line 166 of file brancher.hpp.

Constructor & Destructor Documentation

template<class ViewSel , class ValSel >
Gecode::PosValChoice< ViewSel, ValSel >::PosValChoice ( const Brancher b,
const Pos p,
const typename ViewSel::Choice &  viewc,
const typename ValSel::Choice &  valc,
const typename ValSel::Val &  n 
)
inline

Initialize choice for brancher b, position p, view choice viewc, value choice valc, and value n.

Definition at line 240 of file brancher.hpp.

Member Function Documentation

template<class ViewSel , class ValSel >
const ValSel::Choice & Gecode::PosValChoice< ViewSel, ValSel >::valchoice ( void  ) const
inline

Return stored choice.

Definition at line 249 of file brancher.hpp.

template<class ViewSel , class ValSel >
const ValSel::Val & Gecode::PosValChoice< ViewSel, ValSel >::val ( void  ) const
inline

Return value to branch with.

Definition at line 255 of file brancher.hpp.

template<class ViewSel , class ValSel >
size_t Gecode::PosValChoice< ViewSel, ValSel >::size ( void  ) const
inlinevirtual

Report size occupied.

Reimplemented from Gecode::PosChoice< ViewSel >.

Definition at line 261 of file brancher.hpp.

template<class ViewSel , class ValSel >
void Gecode::PosValChoice< ViewSel, ValSel >::archive ( Archive e) const
inlinevirtual

Archive into e.

Reimplemented from Gecode::PosChoice< ViewSel >.

Definition at line 267 of file brancher.hpp.


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