My Project
Loading...
Searching...
No Matches
htable.h
Go to the documentation of this file.
1#ifndef HTABLE_H
2#define HTABLE_H
3/****************************************
4* Computer Algebra System SINGULAR *
5****************************************/
6
7#include "kernel/mod2.h"
8
9#include "Singular/subexpr.h"
10
11struct stelem;
12typedef struct stelem * telem;
13
14struct stelem
15{
16 telem next;
17 char* key;
19 uint32_t hash;
20};
21
23{
24 telem *t;
25 int max;
26 int ref;
27};
28#define TABLE_MAX 1000
29
33char* stringTable(stablerec* t);
34void htable_Print(stablerec *d);
35/// find the entry to key s
36telem t_findTable(stablerec* t,const char *s);
37/// find the data to key s
38leftv t_findTabelVal(stablerec* t,const char *s);
39/// add a new entry (key s, data v) to table t
40void t_addTable(stablerec* t,char *s, leftv v);
41#endif
Class used for (list of) interpreter objects.
Definition subexpr.h:83
const CanonicalForm int s
Definition facAbsFact.cc:51
const Variable & v
< [in] a sqrfree bivariate poly
Definition facBivar.h:39
void t_destroyTable(stablerec *t)
Definition htable.cc:20
char * stringTable(stablerec *t)
Definition htable.cc:48
stablerec * t_createTable(int s)
Definition htable.cc:11
void htable_Print(stablerec *d)
Definition htable.cc:107
leftv t_findTabelVal(stablerec *t, const char *s)
find the data to key s
Definition htable.cc:84
telem * t
Definition htable.h:24
char * key
Definition htable.h:17
uint32_t hash
Definition htable.h:19
void t_addTable(stablerec *t, char *s, leftv v)
add a new entry (key s, data v) to table t
Definition htable.cc:92
telem t_findTable(stablerec *t, const char *s)
find the entry to key s
Definition htable.cc:70
telem next
Definition htable.h:16
int max
Definition htable.h:25
int ref
Definition htable.h:26
stablerec * copyTable(stablerec *t)
Definition htable.cc:42
sleftv val
Definition htable.h:18
sleftv * leftv
Definition structs.h:53