afc.hpp
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.
*
*/
namespace Gecode {
forceinline
IntAFC::IntAFC(void) {}
forceinline
IntAFC::IntAFC(const IntAFC& a)
: AFC(a) {}
forceinline IntAFC&
IntAFC::operator =(const IntAFC& a) {
return static_cast<IntAFC&>(AFC::operator =(a));
}
forceinline
IntAFC::IntAFC(Home home, const IntVarArgs& x, double d, bool share) {
AFC::init(home,x,d,share);
}
forceinline void
IntAFC::init(Home home, const IntVarArgs& x, double d, bool share) {
AFC::init(home,x,d,share);
}
forceinline
BoolAFC::BoolAFC(void) {}
forceinline
BoolAFC::BoolAFC(const BoolAFC& a)
: AFC(a) {}
forceinline BoolAFC&
BoolAFC::operator =(const BoolAFC& a) {
return static_cast<BoolAFC&>(AFC::operator =(a));
}
forceinline
BoolAFC::BoolAFC(Home home, const BoolVarArgs& x, double d, bool share) {
AFC::init(home,x,d,share);
}
forceinline void
BoolAFC::init(Home home, const BoolVarArgs& x, double d, bool share) {
AFC::init(home,x,d,share);
}
}
// STATISTICS: int-branch
Gecode::AFC::AFC
AFC(void)
Construct as not yet intialized.
Definition afc.hpp:119
Gecode::AFC::operator=
AFC & operator=(const AFC &a)
Assignment operator.
Definition afc.hpp:152
Gecode::AFC::init
void init(Home home, const VarArgArray< Var > &x, double d, bool share=true)
Initialize for variables x and decay factor d.
Definition afc.hpp:138
Gecode::BoolAFC
Recording AFC information for Boolean variables.
Definition int.hh:4316
Gecode::BoolAFC::BoolAFC
BoolAFC(void)
Construct as not yet initialized.
Definition afc.hpp:61
Gecode::BoolAFC::operator=
BoolAFC & operator=(const BoolAFC &a)
Assignment operator.
Definition afc.hpp:68
Gecode::BoolAFC::init
void init(Home home, const BoolVarArgs &x, double d=1.0, bool share=true)
Initialize for Boolean variables x with decay factor d.
Definition afc.hpp:78
Gecode::BoolVarArgs
Passing Boolean variables.
Definition int.hh:712
Gecode::Home
Home class for posting propagators
Definition core.hpp:856
Gecode::IntAFC
Recording AFC information for integer variables.
Definition int.hh:4276
Gecode::IntAFC::IntAFC
IntAFC(void)
Construct as not yet initialized.
Definition afc.hpp:37
Gecode::IntAFC::init
void init(Home home, const IntVarArgs &x, double d=1.0, bool share=true)
Initialize for integer variables x with decay factor d.
Definition afc.hpp:54
Gecode::IntAFC::operator=
IntAFC & operator=(const IntAFC &a)
Assignment operator.
Definition afc.hpp:44
Gecode::IntVarArgs
Passing integer variables.
Definition int.hh:656
Gecode
Gecode toplevel namespace
forceinline
#define forceinline
Definition config.hpp:187