forked from mirkokiefer/LivelyC
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathLCMutableDictionary.h
27 lines (22 loc) · 1.56 KB
/
LCMutableDictionary.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#ifndef LivelyStore_imac_LCMutableDictionary_h
#define LivelyStore_imac_LCMutableDictionary_h
#include "LCCore.h"
#include "LCArray.h"
#include "LCKeyValue.h"
typedef LCObjectRef LCMutableDictionaryRef;
extern LCTypeRef LCTypeMutableDictionary;
LCMutableDictionaryRef LCMutableDictionaryCreate(LCKeyValueRef keyValues[], size_t length);
LCKeyValueRef LCMutableDictionaryEntryForKey(LCMutableDictionaryRef dict, LCObjectRef key);
LCObjectRef LCMutableDictionaryValueForKey(LCMutableDictionaryRef dict, LCObjectRef key);
void LCMutableDictionarySetValueForKey(LCMutableDictionaryRef dict, LCObjectRef key, LCObjectRef value);
void LCMutableDictionaryDeleteKey(LCMutableDictionaryRef dict, LCObjectRef key);
void LCMutableDictionaryAddEntry(LCMutableDictionaryRef dict, LCKeyValueRef keyValue);
void LCMutableDictionaryAddEntries(LCMutableDictionaryRef dict, LCKeyValueRef keyValues[], size_t length);
LCMutableDictionaryRef LCMutableDictionaryCopy(LCMutableDictionaryRef dict);
size_t LCMutableDictionaryLength(LCMutableDictionaryRef dict);
LCKeyValueRef* LCMutableDictionaryEntries(LCMutableDictionaryRef dict);
LCMutableArrayRef LCMutableDictionaryCreateChangesArray(LCMutableDictionaryRef original, LCMutableDictionaryRef new);
LCMutableArrayRef LCMutableDictionaryCreateAddedArray(LCMutableDictionaryRef original, LCMutableDictionaryRef new);
LCMutableArrayRef LCMutableDictionaryCreateUpdatedArray(LCMutableDictionaryRef original, LCMutableDictionaryRef new);
LCMutableArrayRef LCMutableDictionaryCreateDeletedArray(LCMutableDictionaryRef original, LCMutableDictionaryRef new);
#endif