div.hh
Go to the documentation of this file.
/* -*- mode: C++; c-basic-offset: 2; indent-tabs-mode: nil -*- */
/*
* Main authors:
* Christian Schulte <schulte@gecode.org>
*
* Copyright:
* Christian Schulte, 2013
*
* This file is part of Gecode, the generic constraint
* development environment:
* http://www.gecode.org
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation the rights to use, copy, modify, merge, publish,
* distribute, sublicense, and/or sell copies of the Software, and to
* permit persons to whom the Software is furnished to do so, subject to
* the following conditions:
*
* The above copyright notice and this permission notice shall be
* included in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
* LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*
*/
#ifndef __GECODE_INT_DIV_HH__
#define __GECODE_INT_DIV_HH__
#include <gecode/int.hh>
namespace Gecode { namespace Int {
template<class IntType>
IntType ceil_div_pp(IntType x, IntType y);
template<class IntType>
IntType floor_div_pp(IntType x, IntType y);
template<class IntType>
IntType ceil_div_px(IntType x, IntType y);
template<class IntType>
IntType floor_div_px(IntType x, IntType y);
template<class IntType>
IntType ceil_div_xp(IntType x, IntType y);
template<class IntType>
IntType floor_div_xp(IntType x, IntType y);
template<class IntType>
IntType ceil_div_xx(IntType x, IntType y);
template<class IntType>
IntType floor_div_xx(IntType x, IntType y);
}}
#include <gecode/int/div.hpp>
#endif
// STATISTICS: int-prop
int.hh
div.hpp
Gecode::Int
Finite domain integers.
Gecode::Int::ceil_div_pp
IntType ceil_div_pp(IntType x, IntType y)
Compute where x and y are non-negative.
Definition div.hpp:38
Gecode::Int::ceil_div_xp
IntType ceil_div_xp(IntType x, IntType y)
Compute where y is non-negative.
Definition div.hpp:69
Gecode::Int::floor_div_xp
IntType floor_div_xp(IntType x, IntType y)
Compute where y is non-negative.
Definition div.hpp:75
Gecode::Int::floor_div_xx
IntType floor_div_xx(IntType x, IntType y)
Compute .
Definition div.hpp:87
Gecode::Int::ceil_div_px
IntType ceil_div_px(IntType x, IntType y)
Compute where x is non-negative.
Definition div.hpp:56
Gecode::Int::floor_div_pp
IntType floor_div_pp(IntType x, IntType y)
Compute where x and y are non-negative.
Definition div.hpp:49
Gecode::Int::ceil_div_xx
IntType ceil_div_xx(IntType x, IntType y)
Compute .
Definition div.hpp:82
Gecode::Int::floor_div_px
IntType floor_div_px(IntType x, IntType y)
Compute where x is non-negative.
Definition div.hpp:62
Gecode::Support::IntType
IntType
Description of integer types.
Definition int-type.hpp:39
Gecode
Gecode toplevel namespace