main page
modules
namespaces
classes
files
Gecode home
Generated on Tue Jan 28 2020 00:00:00 for Gecode by
doxygen
1.8.17
gecode
set
rel-op
post-compl-cvc.cpp
Go to the documentation of this file.
1
/* -*- mode: C++; c-basic-offset: 2; indent-tabs-mode: nil -*- */
2
/*
3
* Main authors:
4
* Guido Tack <tack@gecode.org>
5
*
6
* Contributing authors:
7
* Gabor Szokoli <szokoli@gecode.org>
8
*
9
* Copyright:
10
* Guido Tack, 2004, 2005
11
*
12
* Last modified:
13
* $Date: 2010-06-07 14:18:14 +0200 (Mon, 07 Jun 2010) $ by $Author: tack $
14
* $Revision: 11048 $
15
*
16
* This file is part of Gecode, the generic constraint
17
* development environment:
18
* http://www.gecode.org
19
*
20
* Permission is hereby granted, free of charge, to any person obtaining
21
* a copy of this software and associated documentation files (the
22
* "Software"), to deal in the Software without restriction, including
23
* without limitation the rights to use, copy, modify, merge, publish,
24
* distribute, sublicense, and/or sell copies of the Software, and to
25
* permit persons to whom the Software is furnished to do so, subject to
26
* the following conditions:
27
*
28
* The above copyright notice and this permission notice shall be
29
* included in all copies or substantial portions of the Software.
30
*
31
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
32
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
33
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
34
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
35
* LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
36
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
37
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
38
*
39
*/
40
41
#include <
gecode/set.hh
>
42
#include <
gecode/set/rel-op.hh
>
43
44
namespace
Gecode
{
namespace
Set {
namespace
RelOp {
45
46
void
47
post_compl
(
Home
home,
ConstSetView
x
,
SetOpType
op
,
SetView
y
,
48
ConstSetView
z
) {
49
GlbRanges<ConstSetView>
zr(
z
);
50
RangesCompl<GlbRanges<ConstSetView>
> zrc(zr);
51
IntSet
zc(zrc);
52
ConstSetView
cz(home, zc);
53
rel_eq<ConstSetView,SetView,ConstSetView>(home,
x
,
op
,
y
, cz);
54
}
55
56
}}}
57
58
// STATISTICS: set-prop
Gecode::x
Post propagator for SetVar x
Definition:
set.hh:784
Gecode::y
Post propagator for SetVar SetOpType SetVar y
Definition:
set.hh:784
Gecode::Set::GlbRanges< ConstSetView >
Range iterator for greatest lower bound of constant set view
Definition:
const.hpp:668
Gecode::Set::ConstSetView
Constant view.
Definition:
view.hpp:190
Gecode::Set::RelOp::post_compl
void post_compl(Home home, ConstSetView x, SetOpType op, SetView y, ConstSetView z)
Definition:
post-compl-cvc.cpp:47
Gecode::z
Post propagator for SetVar SetOpType SetVar SetRelType SetVar z
Definition:
set.hh:784
Gecode::SetOpType
SetOpType
Common operations for sets.
Definition:
set.hh:662
Gecode
Gecode toplevel namespace
Gecode::IntSet
Integer sets.
Definition:
int.hh:174
Gecode::Set::RangesCompl
A complement iterator spezialized for the BndSet limits.
Definition:
var-imp.hpp:296
Gecode::Home
Home class for posting propagators
Definition:
core.hpp:922
rel-op.hh
Gecode::Set::SetView
Set view for set variables
Definition:
view.hpp:60
set.hh
Gecode::op
Post propagator for SetVar SetOpType op
Definition:
set.hh:784