maker_no.hpp

Go to the documentation of this file.
00001 
00027 #ifndef MSMAZES_CORE_FSM_INPUT_MAKER_NO_HPP
00028 #define MSMAZES_CORE_FSM_INPUT_MAKER_NO_HPP
00029 
00030 #include <boost/mpl/bool.hpp>  // boost::mpl::true_ and boost::mpl::false_
00031 
00032 namespace msmazes {
00033 
00035 
00060 struct FSMNoInputMaker
00061 {
00066     typedef boost::mpl::false_
00067             RequiresSingleLayer;
00068 
00073     typedef boost::mpl::false_
00074             RequiresLastVisitedMap;
00075 
00079     template <
00080         typename Pattern
00081     >
00082     inline static typename Pattern::CellIndex
00083         getInputCount(
00084             const Pattern& pattern
00085         )
00086     {
00087         return typename Pattern::CellIndex();
00088     }
00089 
00093     template <
00094         typename Pattern
00095     >
00096     inline static typename Pattern::CellIndex
00097         getInput(
00098             const Pattern& pattern
00099           , const typename Pattern::CellIndex previous_cell_i
00100           , const typename Pattern::CellIndex current_cell_i
00101           , const typename Pattern::CellIndex next_cell_i
00102         )
00103     {
00104         return typename Pattern::CellIndex();
00105     }
00106 };
00107 }  // namespace msmazes
00108 
00109 #endif  /* MSMAZES_CORE_FSM_INPUT_MAKER_NO_HPP */

Multi-State Mazes in C++ is hosted by SourceForge.net. Use the Table of Contents for navigation.