Pajdeg  0.2.2
Pajdeg
PDDictionaryStack.h
Go to the documentation of this file.
1 //
2 // PDDictionaryStack.h
3 //
4 // Copyright (c) 2015 Karl-Johan Alm (http://github.com/kallewoof)
5 //
6 // Permission is hereby granted, free of charge, to any person obtaining a copy
7 // of this software and associated documentation files (the "Software"), to deal
8 // in the Software without restriction, including without limitation the rights
9 // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10 // copies of the Software, and to permit persons to whom the Software is
11 // furnished to do so, subject to the following conditions:
12 //
13 // The above copyright notice and this permission notice shall be included in
14 // all copies or substantial portions of the Software.
15 //
16 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22 // THE SOFTWARE.
23 //
24 
51 #ifndef INCLUDED_PDDICTIONARYSTACK_H
52 #define INCLUDED_PDDICTIONARYSTACK_H
53 
54 #include "PDDefines.h"
55 
64 
72 
81 
91 
100 extern void PDDictionaryStackSet(PDDictionaryStackRef ds, const char *key, void *value);
101 
108 extern void *PDDictionaryStackGet(PDDictionaryStackRef ds, const char *key);
109 
116 extern void PDDictionaryStackDelete(PDDictionaryStackRef ds, const char *key);
117 
124 
132 extern void PDDictionaryStackIterate(PDDictionaryStackRef ds, PDHashIterator it, void *ui);
133 
134 #endif
PDDictionaryStackRef PDDictionaryStackCreateWithDictionary(PDDictionaryRef dict)
Definition: PDDictionaryStack.c:20
PDDictionaryRef PDDictionaryStackPopDictionary(PDDictionaryStackRef ds)
Definition: PDDictionaryStack.c:33
void * PDDictionaryStackGet(PDDictionaryStackRef ds, const char *key)
Definition: PDDictionaryStack.c:48
void PDDictionaryStackClear(PDDictionaryStackRef ds)
Definition: PDDictionaryStack.c:64
void PDDictionaryStackPushDictionary(PDDictionaryStackRef ds, PDDictionaryRef dict)
Definition: PDDictionaryStack.c:28
Definition: pd_internal.h:544
Definition: pd_internal.h:639
Definition: pd_internal.h:656
Definitions for the Pajdeg interface.
void PDDictionaryStackSet(PDDictionaryStackRef ds, const char *key, void *value)
Definition: PDDictionaryStack.c:43
void(* PDHashIterator)(char *key, void *value, void *userInfo, PDBool *shouldStop)
Definition: PDDefines.h:355
void PDDictionaryStackDelete(PDDictionaryStackRef ds, const char *key)
Definition: PDDictionaryStack.c:59
void PDDictionaryStackIterate(PDDictionaryStackRef ds, PDHashIterator it, void *ui)
Definition: PDDictionaryStack.c:84
void PDDictionaryStackAddEntriesFromComplex(PDDictionaryStackRef hm, pd_stack stack)
Definition: PDDictionaryStack.c:38