#include <oski/common.h>
#include <stdio.h>
Go to the source code of this file.
Defines | |
#define | INC_OSKI_HEUR_H |
oski/heur.h included. | |
#define | OSKI_HEUR_METHOD(type, name) |
Retrieve the method for a particular heuristic. | |
#define | OSKI_HEURID_METHOD(type_id, name) |
Retrieve the method for a particular heuristic type given the heuristic type id. | |
Functions | |
void | oski_InitHeurManager (void) |
Open/initialize the heuristic manager. | |
void | oski_CloseHeurManager (void) |
Shutdown heuristic manager. | |
oski_id_t | oski_RegisterHeur (const char *name, oski_id_t id_ind, oski_id_t id_val) |
Register a new heuristic with the heuristic manager. | |
size_t | oski_GetNumHeur (void) |
Returns the number of available heuristics. | |
const char * | oski_LookupHeurDescById (oski_id_t id) |
Returns a short descriptive string for the specified heuristic. | |
oski_id_t | oski_LookupHeurId (const char *name, oski_id_t id_ind, oski_id_t id_val) |
Returns the id number of a specified heuristic. | |
oski_id_t | oski_LookupHeurIdByNum (size_t i) |
Returns the id number of the i-th heuristic. | |
void * | oski_LookupHeurIdMethod (oski_id_t id, const char *method_name) |
Return a method stored in a heuristic module, found by heuristic id. | |
void * | oski_LookupHeurMethod (const char *heur_name, oski_id_t id_ind, oski_id_t id_val, const char *method_name) |
Return a method stored in a heuristic module, found by heuristic type. | |
FILE * | oski_OpenBenchmarkData (const char *filename) |
Opens a file containing off-line benchmarking data for reading. | |
void | oski_CloseBenchmarkData (FILE *fp) |
Close an open file containing off-line benchmark data. | |
int | oski_ReadBenchmarkLine (FILE *fp, char *buffer, size_t max_len) |
Reads the first non-comment line in the given benchmark data file. |
|
Value: (OSKI_MAKENAME_FUNCPT(name))oski_LookupHeurMethod( \ type, OSKI_IND_ID, OSKI_VAL_ID, \ "oski_" MACRO_TO_STRING(name) \ ) Relies on the compile-time default scalar type macros, OSKI_IND_ID and OSKI_VAL_ID.
|
|
Value: (OSKI_MAKENAME_FUNCPT(name))oski_LookupHeurIdMethod( \ type_id, "oski_" MACRO_TO_STRING(name) \ )
|
|
Opens a file containing off-line benchmarking data for reading.
|
|
Reads the first non-comment line in the given benchmark data file.
|