#include <cstddef>
#include "memalloc"
Go to the source code of this file.
|
#define | tools_glutess_dict_list |
|
#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))) |
|
◆ __gl_dictListInsert
Definition at line 35 of file dict.
◆ __gl_dictListKey
#define __gl_dictListKey |
( |
|
n | ) |
((n)->key) |
Definition at line 30 of file dict.
◆ __gl_dictListMax
#define __gl_dictListMax |
( |
|
d | ) |
((d)->head.prev) |
Definition at line 34 of file dict.
◆ __gl_dictListMin
#define __gl_dictListMin |
( |
|
d | ) |
((d)->head.next) |
Definition at line 33 of file dict.
◆ __gl_dictListPred
#define __gl_dictListPred |
( |
|
n | ) |
((n)->prev) |
Definition at line 32 of file dict.
◆ __gl_dictListSucc
#define __gl_dictListSucc |
( |
|
n | ) |
((n)->next) |
Definition at line 31 of file dict.
◆ Dict
Definition at line 9 of file dict.
◆ dictDelete
Definition at line 18 of file dict.
◆ dictDeleteDict
Definition at line 13 of file dict.
◆ dictInsert
Definition at line 16 of file dict.
◆ dictInsertBefore
Definition at line 17 of file dict.
◆ DictKey
Definition at line 8 of file dict.
◆ dictKey
Definition at line 20 of file dict.
◆ dictMax
Definition at line 24 of file dict.
◆ dictMin
Definition at line 23 of file dict.
◆ dictNewDict
Definition at line 12 of file dict.
◆ DictNode
Definition at line 10 of file dict.
◆ dictPred
Definition at line 22 of file dict.
◆ dictSearch
Definition at line 15 of file dict.
◆ dictSucc
Definition at line 21 of file dict.
◆ tools_glutess_dict_list
#define tools_glutess_dict_list |
Definition at line 4 of file dict.
◆ Dict
Definition at line 26 of file dict.
◆ DictKey
Definition at line 26 of file dict.
◆ DictNode
Definition at line 26 of file dict.
◆ dictDelete()
Definition at line 109 of file dict.
◆ dictDeleteDict()
void dictDeleteDict |
( |
Dict * |
dict | ) |
|
|
inline |
Definition at line 75 of file dict.
78 for( node = dict->
head.
next; node != &dict->
head; node = next ) {
◆ dictInsertBefore()
Definition at line 90 of file dict.
95 }
while( node->
key != NULL && ! (*dict->
leq)(dict->
frame, node->
key, key));
98 if (newNode == NULL)
return NULL;
103 newNode->
prev = node;
104 node->
next = newNode;
◆ dictNewDict()
inlined C code : ///////////////////////////////////
Definition at line 57 of file dict.
61 if (dict == NULL)
return NULL;
◆ dictSearch()
Definition at line 116 of file dict.
122 }
while( node->
key != NULL && ! (*dict->
leq)(dict->
frame, key, node->
key));