modevent.icc
Go to the documentation of this file.00001 /* 00002 * Main authors: 00003 * Christian Schulte <schulte@gecode.org> 00004 * 00005 * Copyright: 00006 * Christian Schulte, 2002 00007 * 00008 * Last modified: 00009 * $Date: 2006-08-04 16:03:05 +0200 (Fri, 04 Aug 2006) $ by $Author: schulte $ 00010 * $Revision: 3510 $ 00011 * 00012 * This file is part of Gecode, the generic constraint 00013 * development environment: 00014 * http://www.gecode.org 00015 * 00016 * See the file "LICENSE" for information on usage and 00017 * redistribution of this file, and for a 00018 * DISCLAIMER OF ALL WARRANTIES. 00019 * 00020 */ 00021 00022 namespace Gecode { 00023 00028 bool me_failed(ModEvent me); 00033 bool me_modified(ModEvent me); 00034 00035 00036 /* 00037 * Modification events 00038 * 00039 */ 00040 00041 forceinline bool 00042 me_failed(ModEvent me) { 00043 return me < ME_GEN_NONE; 00044 } 00045 00046 forceinline bool 00047 me_modified(ModEvent me) { 00048 return me > ME_GEN_NONE; 00049 } 00050 00051 } 00052 00053 // STATISTICS: kernel-other