Generated on Wed Jan 1 2020 10:37:59 for Gecode by doxygen 1.8.16
Test::Int::Assignment Class Referenceabstract

Base class for assignments More...

#include <int.hh>

Public Member Functions

 Assignment (int n0, const Gecode::IntSet &d0)
 Initialize assignments for n0 variables and values d0. More...
 
virtual bool operator() (void) const =0
 Test whether all assignments have been iterated. More...
 
virtual void operator++ (void)=0
 Move to next assignment. More...
 
virtual int operator[] (int i) const =0
 Return value for variable i. More...
 
int size (void) const
 Return number of variables. More...
 
virtual ~Assignment (void)
 Destructor. More...
 

Protected Attributes

int n
 Number of variables. More...
 
Gecode::IntSet d
 Domain for each variable. More...
 

Detailed Description

Base class for assignments

Definition at line 59 of file int.hh.

Constructor & Destructor Documentation

◆ Assignment()

Test::Int::Assignment::Assignment ( int  n0,
const Gecode::IntSet d0 
)
inline

Initialize assignments for n0 variables and values d0.

Definition at line 43 of file int.hpp.

◆ ~Assignment()

Test::Int::Assignment::~Assignment ( void  )
inlinevirtual

Destructor.

Definition at line 50 of file int.hpp.

Member Function Documentation

◆ operator()()

virtual bool Test::Int::Assignment::operator() ( void  ) const
pure virtual

◆ operator++()

virtual void Test::Int::Assignment::operator++ ( void  )
pure virtual

◆ operator[]()

virtual int Test::Int::Assignment::operator[] ( int  i) const
pure virtual

◆ size()

int Test::Int::Assignment::size ( void  ) const
inline

Return number of variables.

Definition at line 46 of file int.hpp.

Member Data Documentation

◆ n

int Test::Int::Assignment::n
protected

Number of variables.

Definition at line 61 of file int.hh.

◆ d

Gecode::IntSet Test::Int::Assignment::d
protected

Domain for each variable.

Definition at line 62 of file int.hh.


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