Generated on Thu Jul 25 2019 00:00:00 for Gecode by doxygen 1.8.15
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  * Last modified:
14  * $Date: 2017-04-10 13:21:37 +0200 (Mon, 10 Apr 2017) $ by $Author: schulte $
15  * $Revision: 15631 $
16  *
17  * This file is part of Gecode, the generic constraint
18  * development environment:
19  * http://www.gecode.org
20  *
21  * Permission is hereby granted, free of charge, to any person obtaining
22  * a copy of this software and associated documentation files (the
23  * "Software"), to deal in the Software without restriction, including
24  * without limitation the rights to use, copy, modify, merge, publish,
25  * distribute, sublicense, and/or sell copies of the Software, and to
26  * permit persons to whom the Software is furnished to do so, subject to
27  * the following conditions:
28  *
29  * The above copyright notice and this permission notice shall be
30  * included in all copies or substantial portions of the Software.
31  *
32  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
33  * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
34  * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
35  * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
36  * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
37  * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
38  * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
39  *
40  */
41 
42 #ifndef __GECODE_FLOAT_CHANNEL_HH__
43 #define __GECODE_FLOAT_CHANNEL_HH__
44 
45 #include <gecode/int.hh>
46 #include <gecode/float.hh>
47 
53 namespace Gecode { namespace Float { namespace Channel {
54 
61  template<class A, class B>
62  class Channel :
63  public MixBinaryPropagator<A,PC_FLOAT_BND,B,Gecode::Int::PC_INT_BND> {
64  protected:
67 
69  Channel(Space& home, bool share, Channel& p);
71  Channel(Home home, A x0, B x1);
72  public:
74  virtual Actor* copy(Space& home, bool share);
76  virtual ExecStatus propagate(Space& home, const ModEventDelta& med);
78  static ExecStatus post(Home home, A x0, B x1);
79  };
80 
81 }}}
82 
84 
85 #endif
86 
87 // STATISTICS: float-prop
static ExecStatus post(Home home, A x0, B x1)
Post propagator for .
Definition: channel.hpp:60
Computation spaces.
Definition: core.hpp:1748
Base-class for both propagators and branchers.
Definition: core.hpp:696
int p
Number of positive literals for node type.
Definition: bool-expr.cpp:236
Propagator for bounds consistent integer part operator
Definition: channel.hh:62
ModEventDelta med
A set of modification events (used during propagation)
Definition: core.hpp:1103
Channel(Space &home, bool share, Channel &p)
Constructor for cloning p.
Definition: channel.hpp:49
virtual ExecStatus propagate(Space &home, const ModEventDelta &med)
Perform propagation.
Definition: channel.hpp:69
Mixed binary propagator.
Definition: propagator.hpp:213
ExecStatus
Definition: core.hpp:540
Gecode toplevel namespace
virtual Actor * copy(Space &home, bool share)
Create copy during cloning.
Definition: channel.hpp:54
int ModEventDelta
Modification event deltas.
Definition: core.hpp:169
Home class for posting propagators
Definition: core.hpp:922