From 1d6d1e8c73193f57a9c98387ea42eb91eb4d21d1 Mon Sep 17 00:00:00 2001 From: Georg Holzmann Date: Fri, 21 Oct 2005 11:56:32 +0000 Subject: only moving to a new directory svn path=/trunk/externals/grh/; revision=3740 --- PDContainer/include/HMap.h | 67 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) create mode 100755 PDContainer/include/HMap.h (limited to 'PDContainer/include/HMap.h') 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, map::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__ -- cgit v1.2.1