forked from tada/pljava
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathIterator.h
More file actions
49 lines (42 loc) · 1.15 KB
/
Copy pathIterator.h
File metadata and controls
49 lines (42 loc) · 1.15 KB
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
/*
* Copyright (c) 2004, 2005, 2006 TADA AB - Taby Sweden
* Distributed under the terms shown in the file COPYRIGHT
* found in the root folder of this project or at
* http://eng.tada.se/osprojects/COPYRIGHT.html
*
* @author Thomas Hallgren
*/
#ifndef __pljava_Iterator_h
#define __pljava_Iterator_h
#include "pljava/HashMap.h"
#ifdef __cplusplus
extern "C" {
#endif
/***********************************************************************
* An Iterator that backed by the given HashMap. The
* Iterator will indicate no more entries if the HashMap grows
* so that it needs to rehash.
*
* The Iterator is allocated using the same MemoryContext
* as the HashMap.
*
* @author Thomas Hallgren
*
***********************************************************************/
/*
* Creates an Iterator.
*/
extern Iterator Iterator_create(HashMap source);
/*
* Return true if the Iterator has more entries.
*/
extern bool Iterator_hasNext(Iterator self);
/*
* Return the next Entry from the backing HashMap or NULL when
* no more entries exists.
*/
extern Entry Iterator_next(Iterator self);
#ifdef __cplusplus
} /* end of extern "C" declaration */
#endif
#endif