My Project
Toggle main menu visibility
Loading...
Searching...
No Matches
Singular
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
11
struct
stelem
;
12
typedef
struct
stelem
* telem;
13
14
struct
stelem
15
{
16
telem
next
;
17
char
*
key
;
18
sleftv
val
;
19
uint32_t
hash
;
20
};
21
22
struct
stablerec
23
{
24
telem *
t
;
25
int
max
;
26
int
ref
;
27
};
28
#define TABLE_MAX 1000
29
30
stablerec
*
t_createTable
(
int
s
);
31
void
t_destroyTable
(
stablerec
* t);
32
stablerec
*
copyTable
(
stablerec
* t);
33
char
*
stringTable
(
stablerec
* t);
34
void
htable_Print
(
stablerec
*d);
35
/// find the entry to key s
36
telem
t_findTable
(
stablerec
* t,
const
char
*
s
);
37
/// find the data to key s
38
leftv
t_findTabelVal
(
stablerec
* t,
const
char
*
s
);
39
/// add a new entry (key s, data v) to table t
40
void
t_addTable
(
stablerec
* t,
char
*
s
,
leftv
v
);
41
#endif
sleftv
Class used for (list of) interpreter objects.
Definition
subexpr.h:83
s
const CanonicalForm int s
Definition
facAbsFact.cc:51
v
const Variable & v
< [in] a sqrfree bivariate poly
Definition
facBivar.h:39
t_destroyTable
void t_destroyTable(stablerec *t)
Definition
htable.cc:20
stringTable
char * stringTable(stablerec *t)
Definition
htable.cc:48
t_createTable
stablerec * t_createTable(int s)
Definition
htable.cc:11
htable_Print
void htable_Print(stablerec *d)
Definition
htable.cc:107
t_findTabelVal
leftv t_findTabelVal(stablerec *t, const char *s)
find the data to key s
Definition
htable.cc:84
stablerec::t
telem * t
Definition
htable.h:24
stelem::key
char * key
Definition
htable.h:17
stelem::hash
uint32_t hash
Definition
htable.h:19
t_addTable
void t_addTable(stablerec *t, char *s, leftv v)
add a new entry (key s, data v) to table t
Definition
htable.cc:92
t_findTable
telem t_findTable(stablerec *t, const char *s)
find the entry to key s
Definition
htable.cc:70
stelem::next
telem next
Definition
htable.h:16
stablerec::max
int max
Definition
htable.h:25
stablerec::ref
int ref
Definition
htable.h:26
copyTable
stablerec * copyTable(stablerec *t)
Definition
htable.cc:42
stelem::val
sleftv val
Definition
htable.h:18
stablerec
Definition
htable.h:23
stelem
Definition
htable.h:15
mod2.h
leftv
sleftv * leftv
Definition
structs.h:53
subexpr.h
Generated on
for My Project by
doxygen 1.17.0
for
Singular