All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
as_hashmap_iterator.h
Go to the documentation of this file.
1 /*
2  * Copyright 2008-2018 Aerospike, Inc.
3  *
4  * Portions may be licensed to Aerospike, Inc. under one or more contributor
5  * license agreements.
6  *
7  * Licensed under the Apache License, Version 2.0 (the "License"); you may not
8  * use this file except in compliance with the License. You may obtain a copy of
9  * the License at http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13  * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
14  * License for the specific language governing permissions and limitations under
15  * the License.
16  */
17 
18 /******************************************************************************
19  *
20  * as_hashmap is DEPRECATED!
21  *
22  * Please switch to as_orderedmap where the base class as_map cannot be used.
23  * as_hashmap will be removed in 2023.
24  *
25  ******************************************************************************/
26 
27 #pragma once
28 
29 #include <aerospike/as_hashmap.h>
30 #include <aerospike/as_iterator.h>
31 #include <aerospike/as_pair.h>
32 #include <aerospike/as_std.h>
33 
34 #ifdef __cplusplus
35 extern "C" {
36 #endif
37 
38 /******************************************************************************
39  * TYPES
40  ******************************************************************************/
41 
42 #define as_hashmap_iterator as_orderedmap_iterator
43 
44 /******************************************************************************
45  * FUNCTIONS
46  *****************************************************************************/
47 
48 #define as_hashmap_iterator_init as_orderedmap_iterator_init
49 #define as_hashmap_iterator_new as_orderedmap_iterator_new
50 #define as_hashmap_iterator_destroy as_orderedmap_iterator_destroy
51 
52 /******************************************************************************
53  * ITERATOR FUNCTIONS
54  *****************************************************************************/
55 
56 #define as_hashmap_iterator_has_next as_orderedmap_iterator_has_next
57 #define as_hashmap_iterator_next as_orderedmap_iterator_next
58 
59 #ifdef __cplusplus
60 } // end extern "C"
61 #endif