[Vala] The name `get_values' does not exist in the context of `Gee.HashMap<string, string>'
- From: Adam B <cruxic gmail com>
- To: vala-list gnome org
- Subject: [Vala] The name `get_values' does not exist in the context of `Gee.HashMap<string, string>'
- Date: Wed, 7 Apr 2010 20:45:22 -0700
Hello all,
valac gives me this error:
The name `get_values' does not exist in the context of
`Gee.HashMap<string,string>'
when trying to compile code like this:
using Gee;
int main(string[] args)
{
var hm = new Gee.HashMap<string, string>();
hm.has_key("foo");
hm.get_values();
return 0;
}
//valac --pkg gee-1.0 play.vala
Any idea what I'm doing wrong? The docs say this method exists (
http://www.valadoc.org/libvala-1.0/Vala.HashMap.get_values.html). However,
when I look at my gee-1.0.vapi the only "get_values" call I can find is in
the MultiMap interface. Is my file outdated? Supposedly I have version
0.5.0-3~kkvala1 installed. Here's a snippet of my gee-1.0.vapi:
[CCode (cheader_filename = "gee.h")]
public class HashMap<K,V> : Gee.AbstractMap<K,V> {
public HashMap (GLib.HashFunc? key_hash_func = null, GLib.EqualFunc?
key_equal_func = null, GLib.EqualFunc? value_equal_func = null);
public override void clear ();
public override V @get (K key);
public override bool has (K key, V value);
public override bool has_key (K key);
public override Gee.MapIterator<K,V> map_iterator ();
public override void @set (K key, V value);
public override bool unset (K key, out V value = null);
public override Gee.Set<Gee.Map.Entry<K,V>> entries { owned get; }
public GLib.EqualFunc key_equal_func { get; set; }
public GLib.HashFunc key_hash_func { get; set; }
public override Gee.Set<K> keys { owned get; }
public override int size { get; }
public GLib.EqualFunc value_equal_func { get; set; }
public override Gee.Collection<V> values { owned get; }
}
I'm using valac 0.8.0. Any tips would be greatly appreciated.
- Adam
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]