main page
modules
namespaces
classes
files
Gecode home
Generated on Fri Feb 10 2017 16:50:40 for Gecode by
doxygen
1.8.13
gecode
float
var-imp
delta.hpp
Go to the documentation of this file.
1
/* -*- mode: C++; c-basic-offset: 2; indent-tabs-mode: nil -*- */
2
/*
3
* Main authors:
4
* Filip Konvicka <filip.konvicka@logis.cz>
5
* Lubomir Moric <lubomir.moric@logis.cz>
6
* Vincent Barichard <Vincent.Barichard@univ-angers.fr>
7
*
8
* Contributing authors:
9
* Christian Schulte <schulte@gecode.org>
10
*
11
* Copyright:
12
* LOGIS, s.r.o., 2008
13
* Christian Schulte, 2010
14
* Vincent Barichard, 2012
15
*
16
* Last modified:
17
* $Date: 2012-03-28 16:47:11 +0200 (Wed, 28 Mar 2012) $ by $Author: vbarichard $
18
* $Revision: 12648 $
19
*
20
* This file is part of Gecode, the generic constraint
21
* development environment:
22
* http://www.gecode.org
23
*
24
* Permission is hereby granted, free of charge, to any person obtaining
25
* a copy of this software and associated documentation files (the
26
* "Software"), to deal in the Software without restriction, including
27
* without limitation the rights to use, copy, modify, merge, publish,
28
* distribute, sublicense, and/or sell copies of the Software, and to
29
* permit persons to whom the Software is furnished to do so, subject to
30
* the following conditions:
31
*
32
* The above copyright notice and this permission notice shall be
33
* included in all copies or substantial portions of the Software.
34
*
35
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
36
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
37
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
38
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
39
* LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
40
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
41
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
42
*
43
*/
44
45
namespace
Gecode
{
namespace
Float {
46
47
forceinline
48
FloatDelta::FloatDelta
(
void
)
49
:
_min
(1),
_max
(0) {}
50
forceinline
51
FloatDelta::FloatDelta
(
FloatNum
min,
FloatNum
max)
52
: _min(min), _max(max) {}
53
forceinline
FloatNum
54
FloatDelta::min(
void
)
const
{
55
return
_min;
56
}
57
forceinline
FloatNum
58
FloatDelta::max(
void
)
const
{
59
return
_max;
60
}
61
62
}}
63
64
// STATISTICS: float-var
Test::Set::Int::_min
Min _min("Int::Min")
Test::Set::Int::_max
Max _max("Int::Max")
Gecode::Float::FloatDelta::FloatDelta
FloatDelta(void)
Create float delta as providing no information.
Definition:
delta.hpp:48
forceinline
#define forceinline
Definition:
config.hpp:170
Gecode
Gecode toplevel namespace
Gecode::FloatNum
double FloatNum
Floating point number base type.
Definition:
float.hh:108