DS3 C SDK  5.0.0
Provides access to the Spectra S3 API with C
ds3_uint64_string_map.h
Go to the documentation of this file.
1 /*
2  * ******************************************************************************
3  * Copyright 2014-2017 Spectra Logic Corporation. All Rights Reserved.
4  * Licensed under the Apache License, Version 2.0 (the "License"). You may not use
5  * this file except in compliance with the License. A copy of the License is located at
6  *
7  * http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * or in the "license" file accompanying this file.
10  * This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
11  * CONDITIONS OF ANY KIND, either express or implied. See the License for the
12  * specific language governing permissions and limitations under the License.
13  * ****************************************************************************
14  */
15 
16 #ifndef __DS3_UINT64_T_STRING_MAP__
17 #define __DS3_UINT64_T_STRING_MAP__
18 
19 #include <stdlib.h>
20 
21 #include "stdint.h"
22 #include "ds3_bool.h"
23 #include "ds3_string.h"
24 #include "ds3_library_exports.h"
25 
26 #ifdef __cplusplus
27 extern "C" {
28 #endif
29 
30 typedef struct _ds3_uint64_string_map ds3_uint64_string_map;
31 
33 LIBRARY_API ds3_bool ds3_uint64_string_map_insert(ds3_uint64_string_map* map, const uint64_t* key, const ds3_str* value);
38 
39 typedef struct _ds3_uint64_string_map_iter ds3_uint64_string_map_iter;
40 
41 // Used to encapsulate a safe key-value pair of the ds3_uint64_string_map during iteration.
43  uint64_t key;
45 };
46 
48 
50 
54 
55 #ifdef __cplusplus
56 }
57 #endif
58 #endif
struct _ds3_uint64_string_map_iter ds3_uint64_string_map_iter
LIBRARY_API ds3_bool ds3_uint64_string_map_contains(ds3_uint64_string_map *map, uint64_t *key)
LIBRARY_API ds3_uint64_string_pair * ds3_uint64_string_map_iter_next(ds3_uint64_string_map_iter *iter)
LIBRARY_API ds3_uint64_string_map_iter * ds3_uint64_string_map_iter_init(ds3_uint64_string_map *map)
LIBRARY_API ds3_uint64_string_map * ds3_uint64_string_map_init(void)
LIBRARY_API ds3_bool ds3_uint64_string_map_insert(ds3_uint64_string_map *map, const uint64_t *key, const ds3_str *value)
LIBRARY_API void ds3_uint64_string_map_free(ds3_uint64_string_map *map)
LIBRARY_API ds3_str * ds3_uint64_string_map_lookup(ds3_uint64_string_map *map, uint64_t *key)
#define LIBRARY_API
LIBRARY_API void ds3_uint64_string_pair_free(ds3_uint64_string_pair *pair)
LIBRARY_API void ds3_uint64_string_map_iter_free(ds3_uint64_string_map_iter *iter)
struct _ds3_uint64_string_map ds3_uint64_string_map
LIBRARY_API uint64_t ds3_uint64_string_map_size(ds3_uint64_string_map *map)
ds3_bool
Definition: ds3_bool.h:23