Sha256: 1ac789a7f5bbd78169748addec9e774f352f25430567b3654ba37f96cef5f166
Contents?: true
Size: 1.86 KB
Versions: 1
Compression:
Stored size: 1.86 KB
Contents
/* * Main authors: * Christian Schulte <schulte@gecode.org> * * Copyright: * Christian Schulte, 2004 * * Last modified: * $Date: 2006-07-19 14:57:38 +0200 (Wed, 19 Jul 2006) $ by $Author: schulte $ * $Revision: 3413 $ * * 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 Iter { namespace Ranges { /** * \brief Range iterator for empty range * * Requires \code #include "gecode/iter.hh" \endcode * \ingroup FuncIterRanges */ class Empty { public: /// \name Constructors and initialization //@{ /// Default constructor Empty(void); /// Initialize void init(void); //@} /// \name Iteration control //@{ /// Test whether iterator is still at a range or done bool operator()(void) const; /// Move iterator to next range (if possible) void operator++(void); //@} /// \name Range access //@{ /// Return smallest value of range int min(void) const; /// Return largest value of range int max(void) const; /// Return width of range (distance between minimum and maximum) unsigned int width(void) const; //@} }; forceinline Empty::Empty(void) {} forceinline void Empty::init(void) {} forceinline void Empty::operator++(void) { GECODE_NEVER; } forceinline bool Empty::operator()(void) const { return false; } forceinline int Empty::min(void) const { GECODE_NEVER; return 0; } forceinline int Empty::max(void) const { GECODE_NEVER; return 0; } forceinline unsigned int Empty::width(void) const { GECODE_NEVER; return 0; } }}} // STATISTICS: iter-any
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
gecoder-with-gecode-0.7.1 | ext/gecode-1.3.1/gecode/iter/ranges-empty.icc |