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

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

Generate all assignments. More...

#include <float.hh>

List of all members.

Public Member Functions

 CpltAssignment (int n, const Gecode::FloatVal &d, Gecode::FloatNum s)
 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 ~CpltAssignment (void)
 Destructor.

Protected Attributes

Gecode::FloatValdsv
 Iterator for each variable.
Gecode::FloatNum step
 Step for next assignment.

Detailed Description

Generate all assignments.

Definition at line 102 of file float.hh.


Constructor & Destructor Documentation

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

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

Definition at line 55 of file float.hpp.

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

Destructor.

Definition at line 78 of file float.hpp.


Member Function Documentation

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

Test whether all assignments have been iterated.

Implements Test::Float::Assignment.

Definition at line 64 of file float.hpp.

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

Move to next assignment.

Implements Test::Float::Assignment.

Definition at line 50 of file float.cpp.

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

Return value for variable i.

Implements Test::Float::Assignment.

Definition at line 68 of file float.hpp.

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

Set assignment to value val for variable i.

Implements Test::Float::Assignment.

Definition at line 73 of file float.hpp.


Member Data Documentation

Iterator for each variable.

Definition at line 104 of file float.hh.

Step for next assignment.

Definition at line 105 of file float.hh.


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