Sha256: 6cd6a11a368d08e64f8485c035d2bd731418e43f1916a5e5a220e9c63d9db970
Contents?: true
Size: 1.06 KB
Versions: 1
Compression:
Stored size: 1.06 KB
Contents
/* * Main authors: * Guido Tack <tack@gecode.org> * * Copyright: * Guido Tack, 2004 * * Last modified: * $Date: 2006-04-11 15:58:37 +0200 (Tue, 11 Apr 2006) $ by $Author: tack $ * $Revision: 3188 $ * * 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. * */ #include "gecode/set/distinct.hh" using namespace Gecode::Set; namespace Gecode { void atmostOne(Space* home, const SetVarArgs& xa, unsigned int c) { if (home->failed()) return; if (xa.size() < 2) return; ViewArray<SetView> x(home,xa); GECODE_ES_FAIL(home,Distinct::AtmostOne::post(home, x, c)); } void distinct(Space* home, const SetVarArgs& xa, unsigned int c) { if (home->failed()) return; if (xa.size() < 2) return; ViewArray<SetView> x(home,xa); GECODE_ES_FAIL(home,Distinct::Distinct::post(home, x, c)); } } // STATISTICS: set-post
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.cc |