IDZEBRA  2.1.3
Data Structures | Macros | Functions | Variables
rsprox.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include <idzebra/util.h>
#include <rset.h>

Go to the source code of this file.

Data Structures

struct  rset_prox_info
struct  rset_prox_rfd


#define RSET_DEBUG   0


static RSFD r_open (RSET ct, int flag)
static void r_close (RSFD rfd)
static void r_delete (RSET ct)
static int r_forward (RSFD rfd, void *buf, TERMID *term, const void *untilbuf)
static int r_read (RSFD rfd, void *buf, TERMID *term)
static void r_pos (RSFD rfd, double *current, double *total)
static void r_get_terms (RSET ct, TERMID *terms, int maxterms, int *curterm)
RSET rset_create_prox (NMEM nmem, struct rset_key_control *kcontrol, int scope, int rset_no, RSET *rset, int ordered, int exclusion, int relation, int distance)


static const struct rset_control control

Macro Definition Documentation

#define RSET_DEBUG   0

Definition at line 32 of file rsprox.c.

Function Documentation

static void r_close ( RSFD  rfd)

Definition at line 134 of file rsprox.c.

References rset::no_children, rsfd::priv, rset_prox_rfd::rfd, rsfd::rset, and rset_close().

static void r_delete ( RSET  ct)

Definition at line 90 of file rsprox.c.

static int r_forward ( RSFD  rfd,
void *  buf,
TERMID term,
const void *  untilbuf 
static void r_get_terms ( RSET  ct,
TERMID terms,
int  maxterms,
int *  curterm 

Definition at line 335 of file rsprox.c.

References rset::children, rset::no_children, and rset_getterms.

static RSFD r_open ( RSET  ct,
int  flag 
static void r_pos ( RSFD  rfd,
double *  current,
double *  total 
static int r_read ( RSFD  rfd,
void *  buf,
TERMID term 

Definition at line 302 of file rsprox.c.

References r_forward().

RSET rset_create_prox ( NMEM  nmem,
struct rset_key_control kcontrol,
int  scope,
int  rset_no,
RSET rset,
int  ordered,
int  exclusion,
int  relation,
int  distance 

Variable Documentation

const struct rset_control control
Initial value:
static int r_forward(RSFD rfd, void *buf, TERMID *term, const void *untilbuf)
Definition: rsprox.c:144
int rset_no_write(RSFD rfd, const void *buf)
Definition: rset.c:431
static RSFD r_open(RSET ct, int flag)
Definition: rsprox.c:94
static void r_pos(RSFD rfd, double *current, double *total)
Definition: rsprox.c:307
static void r_get_terms(RSET ct, TERMID *terms, int maxterms, int *curterm)
Definition: rsprox.c:335
static void r_delete(RSET ct)
Definition: rsprox.c:90
static int r_read(RSFD rfd, void *buf, TERMID *term)
Definition: rsprox.c:302
static void r_close(RSFD rfd)
Definition: rsprox.c:134

Definition at line 43 of file rsprox.c.