Knight-Path 1.0.D018
Classes | Defines | Variables

/home/archives/knight-path/branch.1/branch.0/delta5682.018/knight-path/solver/factory.cc File Reference

#include <cstring>
#include <knight-path/solver/brute_force.h>
#include <knight-path/solver/maze.h>
#include <knight-path/solver/taxi.h>

Go to the source code of this file.

Classes

struct  table_t

Defines

#define ARRAY_SIZE(a)   (sizeof(a) / sizeof(a[0]))
#define END_OF(a)   ((a) + ARRAY_SIZE(a))

Variables

static const table_t table []

Define Documentation

#define ARRAY_SIZE (   a)    (sizeof(a) / sizeof(a[0]))

Definition at line 41 of file factory.cc.

#define END_OF (   a)    ((a) + ARRAY_SIZE(a))

Definition at line 42 of file factory.cc.


Variable Documentation

const table_t table[] [static]
Initial value:
{
    { "brute-force", &solver_brute_force::create },
    { "fastest", &solver_maze::create },
    { "maze", &solver_maze::create },
    { "taxi", &solver_taxi::create },
}

Definition at line 32 of file factory.cc.