Generated on Wed Nov 1 15:04:43 2006 for Gecode by doxygen 1.4.5

lds.icc

Go to the documentation of this file.
00001 /*
00002  *  Main authors:
00003  *     Christian Schulte <schulte@gecode.org>
00004  *
00005  *  Copyright:
00006  *     Christian Schulte, 2004
00007  *
00008  *  Last modified:
00009  *     $Date: 2006-03-30 19:42:28 +0200 (Thu, 30 Mar 2006) $ by $Author: schulte $
00010  *     $Revision: 3141 $
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 
00024   /*
00025    * Control for LDS engine
00026    *
00027    */
00028 
00029   template <class T>
00030   forceinline
00031   LDS<T>::LDS(T* s, unsigned int d, Search::Stop* st)
00032     : Search::LDS(s,d,st,sizeof(T)) {}
00033 
00034 
00035   template <class T>
00036   forceinline T*
00037   LDS<T>::next(void) {
00038     return static_cast<T*>(Search::LDS::next());
00039   }
00040 
00041 
00042 
00043   /*
00044    * Convenience for LDS
00045    *
00046    */
00047 
00048   template <class T>
00049   T*
00050   lds(T* s, unsigned int d, Search::Stop* st) {
00051     LDS<T> lds(s,d,st);
00052     return static_cast<T*>(lds.next());
00053   }
00054 
00055 }
00056 
00057 // STATISTICS: search-any