Main   Class Hierarchy   Classes   Compound List   Files   Compound Members   File Members   Pages  

example.cpp File Reference


Detailed Description

Example program using the pathfinding library.

Id
example.cpp,v 1.32 2003/07/25 17:43:23 emarkus Exp
Source
/usr/cvsroot/project_pathfind/example.cpp,v

Definition in file example.cpp.

#include <memory>
#include "pathfind.h"

Include dependency graph for example.cpp:

Include dependency graph

Go to the source code of this file.

Enumerations

enum  SearchAlgorithm { A_STAR, IDA_STAR, FRINGE }

Functions

void printHeader (SearchAlgorithm searchAlgorithm, Tiling::Type type)
void runExperiment (SearchAlgorithm searchAlgorithm, Tiling::Type type)
int main ()

Variables

const int s_numberRuns = 100
const int s_columns = 50
const int s_rows = 50
const float s_obstaclePercentage = 0.2
const long long int s_nodesLimit = 100000000L


Enumeration Type Documentation

enum SearchAlgorithm
 

Enumeration values:
A_STAR 
IDA_STAR 
FRINGE 

Definition at line 26 of file example.cpp.

Referenced by main().


Function Documentation

int main  ) 
 

Definition at line 117 of file example.cpp.

References A_STAR, FRINGE, IDA_STAR, and runExperiment().

void printHeader SearchAlgorithm  searchAlgorithm,
Tiling::Type  type
 

Definition at line 30 of file example.cpp.

References A_STAR, FRINGE, and IDA_STAR.

void runExperiment SearchAlgorithm  searchAlgorithm,
Tiling::Type  type
 

Definition at line 65 of file example.cpp.

References A_STAR, FRINGE, IDA_STAR, printHeader(), s_columns, s_nodesLimit, s_numberRuns, s_obstaclePercentage, and s_rows.


Variable Documentation

const int s_columns = 50 [static]
 

Definition at line 19 of file example.cpp.

Referenced by runExperiment().

const long long int s_nodesLimit = 100000000L [static]
 

Definition at line 22 of file example.cpp.

Referenced by runExperiment().

const int s_numberRuns = 100 [static]
 

Definition at line 18 of file example.cpp.

Referenced by runExperiment().

const float s_obstaclePercentage = 0.2 [static]
 

Definition at line 21 of file example.cpp.

Referenced by runExperiment().

const int s_rows = 50 [static]
 

Definition at line 20 of file example.cpp.

Referenced by runExperiment().


Generated on Thu Aug 7 13:04:57 2003 by Doxygen1.3.1