Sha256: f83d64bcc460ab3eab4f5e52219eed22c5182265a374f9ffd1b4d6e2175917b3

Contents?: true

Size: 1.18 KB

Versions: 1

Compression:

Stored size: 1.18 KB

Contents

/*
 *  Main authors:
 *     Guido Tack <tack@gecode.org>
 *     Christian Schulte <schulte@gecode.org>
 *
 *  Contributing authors:
 *     Gabor Szokoli <szokoli@gecode.org>
 *
 *  Copyright:
 *     Guido Tack, 2004
 *     Christian Schulte, 2004
 *     Gabor Szokoli, 2004
 *
 *  Last modified:
 *     $Date: 2005-11-24 18:03:01 +0100 (Thu, 24 Nov 2005) $ by $Author: tack $
 *     $Revision: 2639 $
 *
 *  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.
 *
 */

namespace Gecode { namespace Set { namespace Sequence {

  /*
   * "Sequence" propagator
   *
   */

  forceinline
  Seq::Seq(Space* home, ViewArray<SetView>& x)
    : NaryPropagator<SetView, PC_SET_CGLB>(home,x) {}

  forceinline
  Seq::Seq(Space* home, bool share, Seq& p)
    : NaryPropagator<SetView, PC_SET_CGLB>(home,share,p) {}

  forceinline ExecStatus
  Seq::post(Space* home, ViewArray<SetView> x) {
    if (x.shared())
      return ES_FAILED;
    (void) new (home) Seq(home,x);
    return ES_OK;
  }

}}}

// STATISTICS: set-prop

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/sequence/seq.icc