Sha256: 0fe320ebf87a88320e61dcf90b45918d3771661d43ac6700a443148eab9748c6
Contents?: true
Size: 1.19 KB
Versions: 1
Compression:
Stored size: 1.19 KB
Contents
/* * Main authors: * Guido Tack <tack@gecode.org> * * Copyright: * Guido Tack, 2004 * * Last modified: * $Date: 2005-11-24 18:03:01 +0100 (Thu, 24 Nov 2005) $ by $Author: tack $ * $Revision: 2639 $ * * This file is part of Gecode, the generic constraint * development environment: * http://www.gecode.org * * See the file "LICENSE" for information on usage and * redistribution of this file, and for a * DISCLAIMER OF ALL WARRANTIES. * */ namespace Gecode { namespace Set { namespace Distinct { /* * "AtMostOneIntersection" propagator * */ forceinline AtmostOne::AtmostOne(Space* home, ViewArray<SetView>& x, unsigned int _c) : NaryPropagator<SetView, PC_SET_ANY>(home,x), c(_c) {} forceinline AtmostOne::AtmostOne(Space* home, bool share, AtmostOne& p) : NaryPropagator<SetView, PC_SET_ANY>(home,share,p), c(p.c) {} forceinline ExecStatus AtmostOne::post(Space* home, ViewArray<SetView> x, unsigned int c) { for (int i=x.size(); i--;) { GECODE_ES_CHECK(x[i].cardMin(home, c)); GECODE_ES_CHECK(x[i].cardMax(home, c)); } (void) new (home) AtmostOne(home,x,c); return ES_OK; } }}} // STATISTICS: set-prop
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
gecoder-with-gecode-0.7.1 | ext/gecode-1.3.1/gecode/set/distinct/atmostOne.icc |