~ubuntu-branches/ubuntu/natty/gecode/natty

« back to all changes in this revision

Viewing changes to kernel/modevent.icc

  • Committer: Bazaar Package Importer
  • Author(s): Kari Pahula
  • Date: 2005-12-24 07:51:25 UTC
  • Revision ID: james.westby@ubuntu.com-20051224075125-klkiqofvbfvusfvt
Tags: upstream-1.0.0.dfsg.1
ImportĀ upstreamĀ versionĀ 1.0.0.dfsg.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 *  Main authors:
 
3
 *     Christian Schulte <schulte@gecode.org>
 
4
 *
 
5
 *  Copyright:
 
6
 *     Christian Schulte, 2002
 
7
 *
 
8
 *  Last modified:
 
9
 *     $Date: 2005-07-28 22:52:19 +0200 (Thu, 28 Jul 2005) $ by $Author: schulte $
 
10
 *     $Revision: 2072 $
 
11
 *
 
12
 *  This file is part of Gecode, the generic constraint
 
13
 *  development environment:
 
14
 *     http://www.gecode.org
 
15
 *
 
16
 *  See the file "LICENSE" for information on usage and
 
17
 *  redistribution of this file, and for a
 
18
 *     DISCLAIMER OF ALL WARRANTIES.
 
19
 *
 
20
 */
 
21
 
 
22
namespace Gecode {
 
23
 
 
24
  /**
 
25
   * \brief Check whether modification event \a me is failed.
 
26
   * \ingroup TaskActor
 
27
   */ 
 
28
  bool me_failed(ModEvent me);
 
29
  /**
 
30
   * \brief Check whether modification event \a me describes variable modification.
 
31
   * \ingroup TaskActor
 
32
   */ 
 
33
  bool me_modified(ModEvent me);
 
34
 
 
35
 
 
36
  /*
 
37
   * Modification events
 
38
   *
 
39
   */
 
40
 
 
41
  forceinline bool
 
42
  me_failed(ModEvent me) {
 
43
    return me < ME_GEN_NONE;
 
44
  }
 
45
 
 
46
  forceinline bool
 
47
  me_modified(ModEvent me) {
 
48
    return me > ME_GEN_NONE;
 
49
  }
 
50
 
 
51
}
 
52
 
 
53
// STATISTICS: kernel-other