hashWatch.h File Reference


Detailed Description

Author:
Helge Backhaus

#include <omnetpp.h>
#include <map>
#include <ext/hash_map>
#include <ext/hash_set>

Classes

class  cHashSetWatcher< T >
class  cHashMapWatcher< KeyT, ValueT, CmpT >
class  cPointerMapWatcher< KeyT, ValueT, CmpT >

Defines

#define WATCH_HASH_SET(variable)
 Makes ext::hash_sets inspectable in Tkenv.
#define WATCH_HASH_MAP(m)
 Makes ext::hash_maps inspectable in Tkenv.
#define WATCH_POINTER_MAP(m)
 Makes pointer_maps inspectable in Tkenv.

Functions

template<class T>
void createHashSetWatcher (const char *varname, __gnu_cxx::hash_set< T > &v)
template<class KeyT, class ValueT, class CmpT>
void createHashMapWatcher (const char *varname, __gnu_cxx::hash_map< KeyT, ValueT, CmpT > &m)
template<class KeyT, class ValueT, class CmpT>
void createPointerMapWatcher (const char *varname, std::map< KeyT, ValueT, CmpT > &m)


Define Documentation

#define WATCH_HASH_MAP (  ) 

Makes ext::hash_maps inspectable in Tkenv.

#define WATCH_HASH_SET ( variable   ) 

Makes ext::hash_sets inspectable in Tkenv.

#define WATCH_POINTER_MAP (  ) 

Makes pointer_maps inspectable in Tkenv.


Function Documentation

template<class KeyT, class ValueT, class CmpT>
void createHashMapWatcher ( const char *  varname,
__gnu_cxx::hash_map< KeyT, ValueT, CmpT > &  m 
) [inline]

00117 {
00118     new cHashMapWatcher<KeyT,ValueT,CmpT>(varname, m);
00119 }

template<class T>
void createHashSetWatcher ( const char *  varname,
__gnu_cxx::hash_set< T > &  v 
) [inline]

00073 {
00074     new cHashSetWatcher<T>(varname, v);
00075 }

template<class KeyT, class ValueT, class CmpT>
void createPointerMapWatcher ( const char *  varname,
std::map< KeyT, ValueT, CmpT > &  m 
) [inline]

00161 {
00162     new cPointerMapWatcher<KeyT,ValueT,CmpT>(varname, m);
00163 }


Generated on Thu Apr 17 13:19:27 2008 for ITM OverSim by  doxygen 1.5.3