aboutsummaryrefslogtreecommitdiff
path: root/PDContainer/include/HMap.h
diff options
context:
space:
mode:
authorGeorg Holzmann <grholzi@users.sourceforge.net>2005-10-21 11:56:32 +0000
committerGeorg Holzmann <grholzi@users.sourceforge.net>2005-10-21 11:56:32 +0000
commit1d6d1e8c73193f57a9c98387ea42eb91eb4d21d1 (patch)
tree8d0853fe30b12c73774c786f02f3d3011b147d4c /PDContainer/include/HMap.h
parentdf8ac7c52ff0dfc8e2ba828c4226ed34b0e9ebfc (diff)
only moving to a new directory
svn path=/trunk/externals/grh/; revision=3740
Diffstat (limited to 'PDContainer/include/HMap.h')
-rwxr-xr-xPDContainer/include/HMap.h67
1 files changed, 67 insertions, 0 deletions
diff --git a/PDContainer/include/HMap.h b/PDContainer/include/HMap.h
new file mode 100755
index 0000000..0f68497
--- /dev/null
+++ b/PDContainer/include/HMap.h
@@ -0,0 +1,67 @@
+// *********************(c)*2004*********************>
+// -holzilib--holzilib--holzilib--holzilib--holzilib->
+// ++++PD-External++by+Georg+Holzmann++grh@gmx.at++++>
+//
+// PDContainer:
+// this is a port of the containers from the C++ STL
+// (Standard Template Library)
+// for usage see the documentation and PD help files
+// for license see readme.txt
+//
+// HMap.h
+
+
+#ifndef _h_map_h__
+#define _h_map_h__
+
+#include "include/MapBase.h"
+
+using std::map;
+
+//---------------------------------------------------
+/* this is the class of the map
+ */
+class HMap :
+public MapBase< map<Element,Element>, map<Element,Element>::iterator >
+{
+ // gcc4.0 food:
+ //this->data_;
+ //this->h_namespace_;
+ //this->dataname_;
+
+ private:
+
+ /* Copy Construction is not allowed
+ */
+ HMap(const HMap &src)
+ { }
+
+ /* assignement operator is not allowed
+ */
+ const HMap& operator = (const HMap&)
+ { return *this; }
+
+ public:
+
+ /* Constructor
+ * no namespace
+ */
+ HMap()
+ { dataname_ = "h_map"; }
+
+ /* Constructor
+ * with a namespace
+ */
+ HMap(string h_namespace)
+ {
+ dataname_ = "h_map";
+ setNamespace(h_namespace);
+ }
+
+ /* Destructor
+ */
+ virtual ~HMap() { }
+};
+
+
+#endif // _h_map_h__