Generated on Tue Feb 11 2025 17:33:26 for Gecode by doxygen 1.12.0
channel.hh
Go to the documentation of this file.
1/* -*- mode: C++; c-basic-offset: 2; indent-tabs-mode: nil -*- */
2/*
3 * Main authors:
4 * Christian Schulte <schulte@gecode.org>
5 * Guido Tack <tack@gecode.org>
6 * Vincent Barichard <Vincent.Barichard@univ-angers.fr>
7 *
8 * Copyright:
9 * Christian Schulte, 2002
10 * Guido Tack, 2004
11 * Vincent Barichard, 2012
12 *
13 * This file is part of Gecode, the generic constraint
14 * development environment:
15 * http://www.gecode.org
16 *
17 * Permission is hereby granted, free of charge, to any person obtaining
18 * a copy of this software and associated documentation files (the
19 * "Software"), to deal in the Software without restriction, including
20 * without limitation the rights to use, copy, modify, merge, publish,
21 * distribute, sublicense, and/or sell copies of the Software, and to
22 * permit persons to whom the Software is furnished to do so, subject to
23 * the following conditions:
24 *
25 * The above copyright notice and this permission notice shall be
26 * included in all copies or substantial portions of the Software.
27 *
28 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
29 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
30 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
31 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
32 * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
33 * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
34 * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
35 *
36 */
37
38#ifndef __GECODE_FLOAT_CHANNEL_HH__
39#define __GECODE_FLOAT_CHANNEL_HH__
40
41#include <gecode/int.hh>
42#include <gecode/float.hh>
43
49namespace Gecode { namespace Float { namespace Channel {
50
57 template<class A, class B>
58 class Channel :
59 public MixBinaryPropagator<A,PC_FLOAT_BND,B,Gecode::Int::PC_INT_BND> {
60 protected:
63
65 Channel(Space& home, Channel& p);
67 Channel(Home home, A x0, B x1);
68 public:
70 virtual Actor* copy(Space& home);
72 virtual ExecStatus propagate(Space& home, const ModEventDelta& med);
74 static ExecStatus post(Home home, A x0, B x1);
75 };
76
77}}}
78
80
81#endif
82
83// STATISTICS: float-prop
int p
Number of positive literals for node type.
Base-class for both propagators and branchers.
Definition core.hpp:628
Propagator for bounds consistent integer part operator
Definition channel.hh:59
virtual ExecStatus propagate(Space &home, const ModEventDelta &med)
Perform propagation.
Definition channel.hpp:68
virtual Actor * copy(Space &home)
Create copy during cloning.
Definition channel.hpp:50
static ExecStatus post(Home home, A x0, B x1)
Post propagator for .
Definition channel.hpp:56
Home class for posting propagators
Definition core.hpp:856
Mixed binary propagator.
Definition pattern.hpp:204
ModEventDelta med
A set of modification events (used during propagation)
Definition core.hpp:1075
Computation spaces.
Definition core.hpp:1742
int ModEventDelta
Modification event deltas.
Definition core.hpp:89
const Gecode::PropCond PC_FLOAT_BND
Propagate when minimum or maximum of a view changes.
Definition var-type.hpp:292
const Gecode::PropCond PC_INT_BND
Propagate when minimum or maximum of a view changes.
Definition var-type.hpp:91
Gecode toplevel namespace
ExecStatus
Definition core.hpp:472