Example #1
0
File: main.cpp Project: murank/misc
void run(const std::string& header) {

#ifdef RUN_SP
	run_impl(std::ptr_fun(spirit::parse), "spirit", header);
#endif
#ifdef RUN_XP
	run_impl(std::ptr_fun(xpressive::parse), "xpressive", header);
#endif

	std::cout << std::endl;
}
Example #2
0
      static void 
      run(const DistributedGraph& g,
          typename graph_traits<DistributedGraph>::vertex_descriptor s,
          PredecessorMap predecessor, DistanceMap distance, 
          Lookahead lookahead, WeightMap weight, IndexMap index_map, 
          ::boost::param_not_found,
          Compare compare, Combine combine, DistInf inf, DistZero zero,
          DijkstraVisitor vis)
      {
        typedef typename graph_traits<DistributedGraph>::vertices_size_type
          vertices_size_type;

        vertices_size_type n = num_vertices(g);
        std::vector<default_color_type> colors(n, white_color);

        run_impl(g, s, predecessor, distance, lookahead, weight, index_map,
                 make_iterator_property_map(colors.begin(), index_map),
                 compare, combine, inf, zero, vis);
      }
Example #3
0
 void
 acceptor_t::run (cbx_t cb)
 {
   _cb = cb;
   run_impl ();
 }