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

« back to all changes in this revision

Viewing changes to int/view/iter.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
 *  Contributing authors:
 
6
 *     Guido Tack <tack@gecode.org>
 
7
 *
 
8
 *  Copyright:
 
9
 *     Christian Schulte, 2003
 
10
 *     Guido Tack, 2004
 
11
 *
 
12
 *  Last modified:
 
13
 *     $Date: 2005-08-08 12:06:00 +0200 (Mon, 08 Aug 2005) $ by $Author: schulte $
 
14
 *     $Revision: 2169 $
 
15
 *
 
16
 *  This file is part of Gecode, the generic constraint
 
17
 *  development environment:
 
18
 *     http://www.gecode.org
 
19
 *
 
20
 *  See the file "LICENSE" for information on usage and
 
21
 *  redistribution of this file, and for a
 
22
 *     DISCLAIMER OF ALL WARRANTIES.
 
23
 *
 
24
 */
 
25
 
 
26
namespace Gecode { namespace Int {
 
27
 
 
28
  template <class View>
 
29
  forceinline
 
30
  ViewValues<View>::ViewValues(void) {}
 
31
 
 
32
  template <class View>
 
33
  forceinline
 
34
  ViewValues<View>::ViewValues(const View& x) {
 
35
    ViewRanges<View> r(x);
 
36
    Iter::Ranges::ToValues<ViewRanges<View> >::init(r);
 
37
  }
 
38
 
 
39
  template <class View>
 
40
  forceinline void
 
41
  ViewValues<View>::init(const View& x) {
 
42
    ViewRanges<View> r(x); 
 
43
    Iter::Ranges::ToValues<ViewRanges<View> >::init(r);
 
44
  }
 
45
 
 
46
}}
 
47
 
 
48
// STATISTICS: int-var
 
49