Generated on Thu Apr 11 13:59:09 2019 for Gecode by doxygen 1.6.3

ipl.hpp

Go to the documentation of this file.
00001 /* -*- mode: C++; c-basic-offset: 2; indent-tabs-mode: nil -*- */
00002 /*
00003  *  Main author:
00004  *     Christian Schulte <schulte@gecode.org>
00005  *
00006  *  Copyright:
00007  *     Christian Schulte, 2018
00008  *
00009  *  This file is part of Gecode, the generic constraint
00010  *  development environment:
00011  *     http://www.gecode.org
00012  *
00013  *  Permission is hereby granted, free of charge, to any person obtaining
00014  *  a copy of this software and associated documentation files (the
00015  *  "Software"), to deal in the Software without restriction, including
00016  *  without limitation the rights to use, copy, modify, merge, publish,
00017  *  distribute, sublicense, and/or sell copies of the Software, and to
00018  *  permit persons to whom the Software is furnished to do so, subject to
00019  *  the following conditions:
00020  *
00021  *  The above copyright notice and this permission notice shall be
00022  *  included in all copies or substantial portions of the Software.
00023  *
00024  *  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
00025  *  EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
00026  *  MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
00027  *  NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
00028  *  LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
00029  *  OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
00030  *  WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
00031  *
00032  */
00033 
00034 namespace Gecode {
00035 
00036   inline
00037   IntPropLevels::IntPropLevels(IntPropLevel ipl)
00038     : _linear2(ipl), _linear(ipl), 
00039       _abs(ipl), 
00040       _max2(ipl), _max(ipl), _min2(ipl), _min(ipl), 
00041       _mult(ipl), _div(ipl), _mod(ipl), 
00042       _sqr(ipl), _sqrt(ipl), _pow(ipl), _nroot(ipl), 
00043       _element(ipl), 
00044       _ite(ipl) {}
00045 
00046   inline IntPropLevel
00047   IntPropLevels::linear2(void) const {
00048     return _linear2;
00049   }
00050   inline IntPropLevels&
00051   IntPropLevels::linear2(IntPropLevel ipl) {
00052     _linear2=ipl; return *this;
00053   }
00054   inline IntPropLevel
00055   IntPropLevels::linear(void) const {
00056     return _linear;
00057   }
00058   inline IntPropLevels&
00059   IntPropLevels::linear(IntPropLevel ipl) {
00060     _linear=ipl; return *this;
00061   }
00062 
00063   inline IntPropLevel
00064   IntPropLevels::abs(void) const {
00065     return _abs;
00066   }
00067   inline IntPropLevels&
00068   IntPropLevels::abs(IntPropLevel ipl) {
00069     _abs=ipl; return *this;
00070   }
00071 
00072   inline IntPropLevel
00073   IntPropLevels::max2(void) const {
00074     return _max2;
00075   }
00076   inline IntPropLevels&
00077   IntPropLevels::max2(IntPropLevel ipl) {
00078     _max2=ipl; return *this;
00079   }
00080   inline IntPropLevel
00081   IntPropLevels::max(void) const {
00082     return _max;
00083   }
00084   inline IntPropLevels&
00085   IntPropLevels::max(IntPropLevel ipl) {
00086     _max=ipl; return *this;
00087   }
00088   inline IntPropLevel
00089   IntPropLevels::min2(void) const {
00090     return _min2;
00091   }
00092   inline IntPropLevels&
00093   IntPropLevels::min2(IntPropLevel ipl) {
00094     _min2=ipl; return *this;
00095   }
00096   inline IntPropLevel
00097   IntPropLevels::min(void) const {
00098     return _min;
00099   }
00100   inline IntPropLevels&
00101   IntPropLevels::min(IntPropLevel ipl) {
00102     _min=ipl; return *this;
00103   }
00104 
00105   inline IntPropLevel
00106   IntPropLevels::mult(void) const {
00107     return _mult;
00108   }
00109   inline IntPropLevels&
00110   IntPropLevels::mult(IntPropLevel ipl) {
00111     _mult=ipl; return *this;
00112   }
00113   inline IntPropLevel
00114   IntPropLevels::div(void) const {
00115     return _div;
00116   }
00117   inline IntPropLevels&
00118   IntPropLevels::div(IntPropLevel ipl) {
00119     _div=ipl; return *this;
00120   }
00121   inline IntPropLevel
00122   IntPropLevels::mod(void) const {
00123     return _mod;
00124   }
00125   inline IntPropLevels&
00126   IntPropLevels::mod(IntPropLevel ipl) {
00127     _mod=ipl; return *this;
00128   }
00129 
00130   inline IntPropLevel
00131   IntPropLevels::sqr(void) const {
00132     return _sqr;
00133   }
00134   inline IntPropLevels&
00135   IntPropLevels::sqr(IntPropLevel ipl) {
00136     _sqr=ipl; return *this;
00137   }
00138   inline IntPropLevel
00139   IntPropLevels::sqrt(void) const {
00140     return _sqrt;
00141   }
00142   inline IntPropLevels&
00143   IntPropLevels::sqrt(IntPropLevel ipl) {
00144     _sqrt=ipl; return *this;
00145   }
00146   inline IntPropLevel
00147   IntPropLevels::pow(void) const {
00148     return _pow;
00149   }
00150   inline IntPropLevels&
00151   IntPropLevels::pow(IntPropLevel ipl) {
00152     _pow=ipl; return *this;
00153   }
00154   inline IntPropLevel
00155   IntPropLevels::nroot(void) const {
00156     return _nroot;
00157   }
00158   inline IntPropLevels&
00159   IntPropLevels::nroot(IntPropLevel ipl) {
00160     _nroot=ipl; return *this;
00161   }
00162 
00163   inline IntPropLevel
00164   IntPropLevels::element(void) const {
00165     return _element;
00166   }
00167   inline IntPropLevels&
00168   IntPropLevels::element(IntPropLevel ipl) {
00169     _element=ipl; return *this;
00170   }
00171 
00172   inline IntPropLevel
00173   IntPropLevels::ite(void) const {
00174     return _ite;
00175   }
00176   inline IntPropLevels&
00177   IntPropLevels::ite(IntPropLevel ipl) {
00178     _ite=ipl; return *this;
00179   }
00180 
00181 }
00182 
00183 // STATISTICS: minimodel-any
00184