Go to the source code of this file.
|
| #define | DictKey DictListKey |
| |
| #define | Dict DictList |
| |
| #define | DictNode DictListNode |
| |
| #define | dictNewDict(frame, leq) __gl_dictListNewDict(frame,leq) |
| |
| #define | dictDeleteDict(dict) __gl_dictListDeleteDict(dict) |
| |
| #define | dictSearch(dict, key) __gl_dictListSearch(dict,key) |
| |
| #define | dictInsert(dict, key) __gl_dictListInsert(dict,key) |
| |
| #define | dictInsertBefore(dict, node, key) __gl_dictListInsertBefore(dict,node,key) |
| |
| #define | dictDelete(dict, node) __gl_dictListDelete(dict,node) |
| |
| #define | dictKey(n) __gl_dictListKey(n) |
| |
| #define | dictSucc(n) __gl_dictListSucc(n) |
| |
| #define | dictPred(n) __gl_dictListPred(n) |
| |
| #define | dictMin(d) __gl_dictListMin(d) |
| |
| #define | dictMax(d) __gl_dictListMax(d) |
| |
| #define | __gl_dictListKey(n) ((n)->key) |
| |
| #define | __gl_dictListSucc(n) ((n)->next) |
| |
| #define | __gl_dictListPred(n) ((n)->prev) |
| |
| #define | __gl_dictListMin(d) ((d)->head.next) |
| |
| #define | __gl_dictListMax(d) ((d)->head.prev) |
| |
| #define | __gl_dictListInsert(d, k) (dictInsertBefore((d),&(d)->head,(k))) |
| |
◆ DictNode
◆ __gl_dictListInsert
◆ __gl_dictListKey
| #define __gl_dictListKey |
( |
|
n | ) |
((n)->key) |
◆ __gl_dictListMax
| #define __gl_dictListMax |
( |
|
d | ) |
((d)->head.prev) |
◆ __gl_dictListMin
| #define __gl_dictListMin |
( |
|
d | ) |
((d)->head.next) |
◆ __gl_dictListPred
| #define __gl_dictListPred |
( |
|
n | ) |
((n)->prev) |
◆ __gl_dictListSucc
| #define __gl_dictListSucc |
( |
|
n | ) |
((n)->next) |
◆ Dict
◆ dictDelete
| #define dictDelete |
( |
|
dict, |
|
|
|
node |
|
) |
| __gl_dictListDelete(dict,node) |
◆ dictDeleteDict
| #define dictDeleteDict |
( |
|
dict | ) |
__gl_dictListDeleteDict(dict) |
◆ dictInsert
◆ dictInsertBefore
| #define dictInsertBefore |
( |
|
dict, |
|
|
|
node, |
|
|
|
key |
|
) |
| __gl_dictListInsertBefore(dict,node,key) |
◆ DictKey
◆ dictKey
◆ dictMax
◆ dictMin
◆ dictNewDict
| #define dictNewDict |
( |
|
frame, |
|
|
|
leq |
|
) |
| __gl_dictListNewDict(frame,leq) |
◆ DictNode
◆ dictPred
◆ dictSearch
| #define dictSearch |
( |
|
dict, |
|
|
|
key |
|
) |
| __gl_dictListSearch(dict,key) |
◆ dictSucc
◆ Dict
◆ DictKey
◆ DictNode
◆ dictDelete()
95{
99}
DictNode * prev
Definition dict-list.h:91
DictNode * next
Definition dict-list.h:90
#define memFree
Definition memalloc.h:41
◆ dictDeleteDict()
62{
64
65 for( node = dict->
head.
next; node != &dict->
head; node = next ) {
68 }
70}
Definition dict-list.h:88
DictNode head
Definition dict-list.h:95
◆ dictInsertBefore()
74{
76
77 do {
79 }
while( node->
key != NULL && ! (*dict->
leq)(dict->
frame, node->
key, key));
80
82 if (newNode == NULL) return NULL;
83
89
90 return newNode;
91}
DictKey key
Definition dict-list.h:89
#define memAlloc
Definition memalloc.h:48
int(* leq)(void *frame, DictKey key1, DictKey key2)
Definition dict-list.h:97
void * frame
Definition dict-list.h:96
◆ dictNewDict()
42{
45
46 if (dict == NULL) return NULL;
47
49
53
56
57 return dict;
58}
EIGEN_DEVICE_FUNC SegmentReturnType head(Index n)
This is the const version of head(Index).
Definition BlockMethods.h:919
Definition dict-list.h:94
◆ dictSearch()
103{
105
106 do {
108 }
while( node->
key != NULL && ! (*dict->
leq)(dict->
frame, key, node->
key));
109
110 return node;
111}