Generated on Fri Oct 19 11:26:26 2018 for Gecode by doxygen 1.6.3

Test::Float::ExtAssignment Class Reference
[General test support]

Generate all assignments except the last variable and complete it to get a solution. More...

#include <float.hh>

List of all members.

Public Member Functions

 ExtAssignment (int n, const Gecode::FloatVal &d, Gecode::FloatNum s, const Test *pb)
 Initialize assignments for n variables and values d with step s.
virtual bool operator() (void) const
 Test whether all assignments have been iterated.
virtual void operator++ (void)
 Move to next assignment.
virtual Gecode::FloatVal operator[] (int i) const
 Return value for variable i.
virtual void set (int i, const Gecode::FloatVal &val)
 Set assignment to value val for variable i.
virtual ~ExtAssignment (void)
 Destructor.

Protected Attributes

const TestcurPb
 Current problem used to complete assignment.
Gecode::FloatValdsv
 Iterator for each variable.
Gecode::FloatNum step
 Step for next assignment.

Detailed Description

Generate all assignments except the last variable and complete it to get a solution.

Definition at line 122 of file float.hh.


Constructor & Destructor Documentation

Test::Float::ExtAssignment::ExtAssignment ( int  n,
const Gecode::FloatVal d,
Gecode::FloatNum  s,
const Test pb 
) [inline]

Initialize assignments for n variables and values d with step s.

Definition at line 83 of file float.hpp.

Test::Float::ExtAssignment::~ExtAssignment ( void   )  [inline, virtual]

Destructor.

Definition at line 107 of file float.hpp.


Member Function Documentation

bool Test::Float::ExtAssignment::operator() ( void   )  const [inline, virtual]

Test whether all assignments have been iterated.

Implements Test::Float::Assignment.

Definition at line 93 of file float.hpp.

void Test::Float::ExtAssignment::operator++ ( void   )  [virtual]

Move to next assignment.

Implements Test::Float::Assignment.

Definition at line 67 of file float.cpp.

Gecode::FloatVal Test::Float::ExtAssignment::operator[] ( int  i  )  const [inline, virtual]

Return value for variable i.

Implements Test::Float::Assignment.

Definition at line 97 of file float.hpp.

void Test::Float::ExtAssignment::set ( int  i,
const Gecode::FloatVal val 
) [inline, virtual]

Set assignment to value val for variable i.

Implements Test::Float::Assignment.

Definition at line 102 of file float.hpp.


Member Data Documentation

Current problem used to complete assignment.

Definition at line 124 of file float.hh.

Iterator for each variable.

Definition at line 125 of file float.hh.

Step for next assignment.

Definition at line 126 of file float.hh.


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