codac 1.5.6
Loading...
Searching...
No Matches
codac_Variable.h
Go to the documentation of this file.
1
12#ifndef __CODAC_VARIABLE_H__
13#define __CODAC_VARIABLE_H__
14
15#include "codac_Interval.h"
17
18namespace codac
19{
20 class Var
21 {
22
23 };
24
29 class IntervalVar : private Interval, Var
30 {
31 public:
32
37 : Interval()
38 {
39
40 }
41
42 protected:
43
44 friend class Domain;
45 friend class Contractor;
46 friend class ContractorNetwork;
47 };
48
53 class IntervalVectorVar : private IntervalVector, Var
54 {
55 public:
56
63 : IntervalVector(n)
64 {
65
66 }
67
76 {
77 return (IntervalVar&)IntervalVector::operator[](index);
78 }
79
85 int size()
86 {
87 return IntervalVector::size();
88 }
89
90 protected:
91
92 friend class Domain;
93 friend class Contractor;
94 friend class ContractorNetwork;
95 };
96}
97
98#endif
Graph of contractors and domains that model a problem in the constraint programming framework....
Definition codac_ContractorNetwork.h:49
todo
Definition codac_Variable.h:30
IntervalVar()
todo
Definition codac_Variable.h:36
todo
Definition codac_Variable.h:54
int size()
todo
Definition codac_Variable.h:85
IntervalVar & operator[](int index)
todo
Definition codac_Variable.h:75
IntervalVectorVar(int n)
todo
Definition codac_Variable.h:62
FixPoint of a separator The fixpoint of a separator is computed by calling the "::"separate function ...
Definition codac_capd_helpers.h:9