00001 // AllDiff.h -- The `all-different' n-ary constraint interface. 00002 00003 /* 00004 * Copyright (C) 1998 Tudor Hulubei <tudor@hulubei.net>. 00005 * 00006 * This library is free software; you can redistribute it and/or modify 00007 * it under the terms of the GNU Lesser General Public License as 00008 * published by the Free Software Foundation; either version 2, or (at 00009 * your option) any later version. 00010 * 00011 * This library is distributed in the hope that it will be useful, 00012 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00014 * GNU Lesser General Public License for more details. 00015 * 00016 * You should have received a copy of the GNU Lesser General Public 00017 * License along with this library; if not, write to the Free Software 00018 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA, 00019 * 02111-1307, USA. 00020 */ 00021 00022 // $Id: AllDiff_8h-source.html,v 1.1 2005/05/25 12:37:18 tudor Exp $ 00023 00024 #ifndef _CSP_CONSTRAINTS_AllDiff_H 00025 #define _CSP_CONSTRAINTS_AllDiff_H 00026 00027 00028 CSP_NAMESPACE_BEGIN(csp); 00029 CSP_NAMESPACE_BEGIN(constraints); 00030 00031 00035 class CSP_API AllDiff : 00036 public Constraint 00037 { 00038 public: 00039 AllDiff(); 00040 virtual bool propagate(Variable& modified); 00041 }; 00042 00043 00044 CSP_NAMESPACE_END(constraints); 00045 CSP_NAMESPACE_END(csp); 00046 00047 00048 #endif // _CSP_CONSTRAINTS_AllDiff_H 00049 00050 // Local Variables: 00051 // mode: C++ 00052 // End:
1.3.9.1