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
21
23{
25 int max;
26 int ref;
27};
28
32char* stringTable(stablerec* t);
33/// find the entry to key s
34telem t_findTable(stablerec* t,const char *s);
35/// find the data to key s
36leftv t_findTabelVal(stablerec* t,const char *s);
37/// add a new entry (key s, data v) to table t
38void t_addTable(stablerec* t,const char *s, leftv v);
39#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:46
stablerec * t_createTable(int s)
Definition htable.cc:11
void t_addTable(stablerec *t, const char *s, leftv v)
add a new entry (key s, data v) to table t
Definition htable.cc:88
leftv t_findTabelVal(stablerec *t, const char *s)
find the data to key s
Definition htable.cc:80
telem * t
Definition htable.h:24
char * key
Definition htable.h:17
uint32_t hash
Definition htable.h:19
telem t_findTable(stablerec *t, const char *s)
find the entry to key s
Definition htable.cc:66
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:40
sleftv val
Definition htable.h:18