Actual source code: ctable.h

  1: /* $Id: ctable.h,v 1.8 2000/05/10 16:38:35 bsmith Exp $ */
  2: /* Contributed by - Mark Adams */


  7: typedef int* PetscTablePosition;
  8: typedef struct _p_PetscTable {
  9:   int *keytable;
 10:   int *table;
 11:   int count;
 12:   int tablesize;
 13:   int head;
 14: } *PetscTable;

 16: EXTERN int PetscTableCreate(const int size,PetscTable *ta);
 17: EXTERN int PetscTableCreateCopy(const PetscTable intable,PetscTable *rta);
 18: EXTERN int PetscTableDelete(PetscTable ta);
 19: EXTERN int PetscTableGetCount(const PetscTable ta,int *count);
 20: EXTERN int PetscTableIsEmpty(const PetscTable ta,int* flag);
 21: EXTERN int PetscTableAdd(PetscTable ta,const int key,const int data);
 22: EXTERN int PetscTableFind(PetscTable ta,const int key,int *data);
 23: EXTERN int PetscTableGetHeadPosition(PetscTable ta,PetscTablePosition *);
 24: EXTERN int PetscTableGetNext(PetscTable ta,PetscTablePosition *rPosition,int *pkey,int *data);
 25: EXTERN int PetscTableRemoveAll(PetscTable ta);

 27: #endif