Generated on Wed Jan 4 17:49:13 2006 for Gecode by doxygen 1.4.6

dfs.icc

Go to the documentation of this file.
00001 /*
00002  *  Main authors:
00003  *     Christian Schulte <schulte@gecode.org>
00004  *
00005  *  Copyright:
00006  *     Christian Schulte, 2003
00007  *
00008  *  Last modified:
00009  *     $Date: 2005-11-10 11:33:57 +0100 (Thu, 10 Nov 2005) $ by $Author: zayenz $
00010  *     $Revision: 2534 $
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 DFS search engine
00026    *
00027    */
00028 
00029   template <class T>
00030   forceinline
00031   DFS<T>::DFS(T* s, unsigned int c_d, unsigned int a_d)
00032     : Search::DFS(s,c_d,a_d,sizeof(T)) {}
00033 
00034   template <class T>
00035   forceinline T*
00036   DFS<T>::next(void) {
00037     return static_cast<T*>(Search::DFS::next());
00038   }
00039 
00040 
00041 
00042   /*
00043    * DFS convenience
00044    *
00045    */
00046 
00047   template <class T>
00048   forceinline T*
00049   dfs(T* s, unsigned int c_d, unsigned int a_d) {
00050     DFS<T> d(s,c_d,a_d);
00051     return static_cast<T*>(d.next());
00052   }
00053 
00054 }
00055 
00056 // STATISTICS: search-any