Main Page | Data Structures | Directories | File List | Globals

mqarray_finder.h File Reference

A file that includes the definition and associated functions of data structure MQArrayFinder
which is used for searching arrays (mostly floats) and returing indices of elements that
are close to the queried values. More...

Go to the source code of this file.

Data Structures

struct  MQArrayFinder
 Finds indices of elements in an array that are close to queried values. More...

Typedefs

typedef MQArrayFinder MQArrayFinder

Enumerations

enum  { MQARRAY_FINDER_CMP_RIGHT_BIAS, MQARRAY_FINDER_CMP_LEFT_BIAS }

Functions

void MQArrayFinder_init (MQArrayFinder *finder, const void *data, size_t size_of_element, void *(*getElement)(const void *, unsigned int), void(*addElements)(const void *, const void *, const void *), int(*cmpElements)(const void *, const void *))
void MQArrayFinder_destroy (MQArrayFinder *finder)
int MQArrayFinder_getIndexClosestToValue (MQArrayFinder *finder, int start, int stop, const void *p)
int MQArrayFinder_getIndicesWithinInterval (MQArrayFinder *finder, int start, int stop, int *i, int *j, const void *p, const void *q)

Variables

int MQARRAY_FINDER_CMP_MODE


Detailed Description

A file that includes the definition and associated functions of data structure MQArrayFinder
which is used for searching arrays (mostly floats) and returing indices of elements that
are close to the queried values.

Author:
Kyriacos C. Leptos
Date:
2004-11-25

Generated on Tue Feb 7 03:25:43 2006 for libmqbasic by  doxygen 1.4.4