aboutsummaryrefslogtreecommitdiff
path: root/externals/grill/flext/source/flsupport.h
diff options
context:
space:
mode:
authorThomas Grill <xovo@users.sourceforge.net>2004-04-23 22:14:24 +0000
committerThomas Grill <xovo@users.sourceforge.net>2004-04-23 22:14:24 +0000
commitd4b2f09f1c42d49e53c1b039cedc5b09ec8e87cd (patch)
tree6e604c25e7c7ecf147489f82bbfb26bf95db2e2e /externals/grill/flext/source/flsupport.h
parentd0b6781beeffe75dad099ed7a6a6d93766c3fa71 (diff)
""
svn path=/trunk/; revision=1634
Diffstat (limited to 'externals/grill/flext/source/flsupport.h')
-rw-r--r--externals/grill/flext/source/flsupport.h45
1 files changed, 0 insertions, 45 deletions
diff --git a/externals/grill/flext/source/flsupport.h b/externals/grill/flext/source/flsupport.h
index feff1fa3..cd92aaa4 100644
--- a/externals/grill/flext/source/flsupport.h
+++ b/externals/grill/flext/source/flsupport.h
@@ -17,7 +17,6 @@ WARRANTIES, see the file, "license.txt," in this distribution.
#include "flstdc.h"
#include <new>
-#include <map>
/*! \defgroup FLEXT_SUPPORT Flext support classes
@{
@@ -1149,50 +1148,6 @@ inline bool operator <=(const t_atom &a,const t_atom &b) { return FLEXT_CLASSDEF
inline bool operator >(const t_atom &a,const t_atom &b) { return FLEXT_CLASSDEF(flext)::CmpAtom(a,b) > 0; }
inline bool operator >=(const t_atom &a,const t_atom &b) { return FLEXT_CLASSDEF(flext)::CmpAtom(a,b) >= 0; }
-
-class AnyMap:
- public std::map<unsigned int,unsigned int>
-{
- typedef std::map<unsigned int,unsigned int> Parent;
-public:
- AnyMap();
- ~AnyMap();
- iterator find(unsigned int k);
- unsigned int &operator [](unsigned int k);
-
- typedef std::pair<unsigned int,unsigned int> pair;
-};
-
-template <class K,class T>
-class DataMap:
- public AnyMap
-{
-public:
- class iterator:
- public AnyMap::iterator
- {
- public:
- iterator() {}
- iterator(AnyMap::iterator it): AnyMap::iterator(it) {}
-
- inline K &key() const { return *(K *)&((*this)->first); }
- inline T &data() const { return *(T *)&((*this)->second); }
- };
-
- class pair:
- public AnyMap::pair
- {
- public:
- inline K &key() const { return *(K *)&first; }
- inline T &data() const { return *(T *)&second; }
- };
-
- inline iterator find(K k) { return AnyMap::find(*(unsigned int *)&k); }
- inline T &operator [](K k) { return *(T *)&(AnyMap::operator [](*(unsigned int *)&k)); }
- inline void erase(K k) { AnyMap::erase(*(unsigned int *)&k); }
-};
-
-
//! @} // FLEXT_SUPPORT
#endif