posix: add ctime(3)
[vala-gnome.git] / gee / mapiterator.vala
blob78243c2d68f7fc718f12ac3dd7ac7c9bdb2d7514
1 /* mapiterator.vala
3 * Copyright (C) 2011 Florian Brosch
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2.1 of the License, or (at your option) any later version.
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19 * Author:
20 * Florian Brosch <flo.brosch@gmail.com>
25 /**
26 * An iterator over a map.
28 public abstract class Vala.MapIterator<K,V> {
29 /**
30 * Advances to the next element in the iteration.
32 * @return true if the iterator has a next element
34 public abstract bool next ();
36 /**
37 * Returns the current key in the iteration.
39 * @return the current key in the iteration
41 public abstract K get_key ();
43 /**
44 * Returns the current value in the iteration.
46 * @return the current value in the iteration
48 public abstract V get_value ();