Main Page | Class List | File List | Class Members | File Members

Sadie_Index.c File Reference

Indexes to application-wide data structures such as lists of images. More...

#include "logerr.h"
#include <unistd.h>
#include <errno.h>
#include <stdlib.h>
#include <string.h>
#include <inttypes.h>
#include <sadie.h>
#include "Sadie_Index.h"

Classes

struct  Sad_doclist
 A hash table implements the list of documents. More...
struct  Sad_docitem
 One node of the singly-linked list of documents hanging off a hash bucket. More...
struct  Sad_property
struct  Sad_propertyitem
 One node of the singly-linked list of properties hanging off a hash bucket. More...
struct  Sad_doc
 Each document contains a SADIE image with its property hash table. More...

Typedefs

typedef Sad_property * sad_propertyp_t
typedef Sad_docitemsad_docitemp_t
typedef Sad_docsad_docp_t
typedef Sad_propertyitemsad_propertyitemp_t

Functions

void dispose_doclist (sad_doclistp_t thedoclist)
sad_propertyp_t make_property (sad_property_data_destructor_t yourdestruct, void *yourdata)
sad_doclistp_t make_doclist (int logsize)
 Create a new empty document list.
int sad_put_doc (sad_doclistp_t doclist, const char *dkey, int logpsize, const IMAGE *img)
int sad_dispose_doc (sad_doclistp_t doclist, const char *dkey)
int sad_put_doc_property (sad_doclistp_t doclist, const char *dkey, const char *pkey, sad_property_data_destructor_t destruct, void *data)
void * sad_get_doc_property (const sad_doclistp_t doclist, const char *dkey, const char *pkey)


Detailed Description

Indexes to application-wide data structures such as lists of images.

SADIE represents images as structures that contain the pixel data and a limited range of other information. A simple in-memory database can however associate arbitrary metadata with the images, and track additional information not associated with a particular image.

Author:
University of Arizona Digital Image Analysis Lab
Date:
2004
Version:
Id
Sadie_Index.c,v 1.4 2004/09/07 23:35:08 mmunro Exp

Generated on Sat Dec 4 17:12:38 2004 for trees by  doxygen 1.3.9.1