All Classes Functions Variables Typedefs Friends Pages
IHashtable.h
1 //------------------------------------------------------------------------------
2 //
3 // Copyright (c) 2012 Glympse Inc. All rights reserved.
4 //
5 //------------------------------------------------------------------------------
6 
7 #ifndef IHASHTABLE_H__GLYMPSE__
8 #define IHASHTABLE_H__GLYMPSE__
9 
10 namespace Glympse
11 {
12 
13 template< class K, class V > struct IHashtable : public IMap< K, V >
14 {
15  public: virtual void put(const K& key, const V& value) = 0;
16 
17  public: virtual void remove(const K& key) = 0;
18 
19  public: virtual void clear() = 0;
20 };
21 
22 template< class K, class V > class GHashtable
23 {
24  private: GHashtable();
25  public: typedef O< IHashtable< K, V > > ptr;
26 };
27 
28 }
29 
30 #endif // !IHASHTABLE_H__GLYMPSE__