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

Generate all assignments. More...

#include <int.hh>

Public Member Functions

 CpltAssignment (int n, const Gecode::IntSet &d)
 Initialize assignments for n0 variables and values d0. More...
 
virtual bool operator() (void) const
 Test whether all assignments have been iterated. More...
 
virtual void operator++ (void)
 Move to next assignment. More...
 
virtual int operator[] (int i) const
 Return value for variable i. More...
 
virtual ~CpltAssignment (void)
 Destructor. More...
 
- Public Member Functions inherited from Test::Int::Assignment
 Assignment (int n0, const Gecode::IntSet &d0)
 Initialize assignments for n0 variables and values d0. More...
 
int size (void) const
 Return number of variables. More...
 
virtual ~Assignment (void)
 Destructor. More...
 

Protected Attributes

Gecode::IntSetValuesdsv
 Iterator for each variable. More...
 
- Protected Attributes inherited from Test::Int::Assignment
int n
 Number of variables. More...
 
Gecode::IntSet d
 Domain for each variable. More...
 

Detailed Description

Generate all assignments.

Definition at line 83 of file int.hh.

Constructor & Destructor Documentation

Test::Int::CpltAssignment::CpltAssignment ( int  n,
const Gecode::IntSet d 
)
inline

Initialize assignments for n0 variables and values d0.

Definition at line 58 of file int.hpp.

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

Destructor.

Definition at line 74 of file int.hpp.

Member Function Documentation

bool Test::Int::CpltAssignment::operator() ( void  ) const
inlinevirtual

Test whether all assignments have been iterated.

Implements Test::Int::Assignment.

Definition at line 65 of file int.hpp.

void Test::Int::CpltAssignment::operator++ ( void  )
virtual

Move to next assignment.

Implements Test::Int::Assignment.

Definition at line 52 of file int.cpp.

int Test::Int::CpltAssignment::operator[] ( int  i) const
inlinevirtual

Return value for variable i.

Implements Test::Int::Assignment.

Definition at line 69 of file int.hpp.

Member Data Documentation

Gecode::IntSetValues* Test::Int::CpltAssignment::dsv
protected

Iterator for each variable.

Definition at line 85 of file int.hh.


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