summaryrefslogtreecommitdiffstats
path: root/src/HashTable.h
blob: fdb8d342e6d09db3b920fe03f2801abd63bb0b73 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#ifndef __PY_HASH_TABLE_H_
#define __PY_HASH_TABLE_H_
#include <glib.h>

namespace PY {

template<typename T1, typename T2>
class HashTable {
public:
    HashTable () {
        m_table = g_hash_table_new_full ();
    }

private:
    static guint hash (const T1 & v) {
        return v.hash();
    }

private:
    GHashTable *m_table;

};
#endif