OverSim
hashWatch.h File Reference
#include <omnetpp.h>
#include <map>
#include <deque>
#include <oversim_mapset.h>

Go to the source code of this file.

Classes

class  cHashSetWatcher< T >
class  cDequeWatcher< T >
class  cHashMapWatcher< KeyT, ValueT, CmpT >
class  cConstHashMapWatcher< KeyT, ValueT, CmpT >
class  cPointerMapWatcher< KeyT, ValueT, CmpT >
class  cStdMultiMapWatcher< KeyT, ValueT, CmpT >

Macros

#define WATCH_UNORDERED_SET(variable)
 Makes unordered_sets inspectable in Tkenv.
#define WATCH_DEQUE(variable)
 Makes unordered_sets inspectable in Tkenv.
#define WATCH_UNORDERED_MAP(m)
 Makes unordered_maps inspectable in Tkenv.
#define WATCH_POINTER_MAP(m)
 Makes pointer_maps inspectable in Tkenv.
#define WATCH_MULTIMAP(m)
 Makes std::multimaps inspectable in Tkenv.

Functions

template<class T >
void createHashSetWatcher (const char *varname, UNORDERED_SET< T > &v)
template<class T >
void createDequeWatcher (const char *varname, std::deque< T > &v)
template<class KeyT , class ValueT , class CmpT >
void createHashMapWatcher (const char *varname, UNORDERED_MAP< KeyT, ValueT, CmpT > &m)
template<class KeyT , class ValueT , class CmpT >
void createHashMapWatcher (const char *varname, const UNORDERED_MAP< KeyT, ValueT, CmpT > &m)
template<class KeyT , class ValueT , class CmpT >
void createPointerMapWatcher (const char *varname, std::map< KeyT, ValueT, CmpT > &m)
template<class KeyT , class ValueT , class CmpT >
void createStdMultiMapWatcher (const char *varname, std::multimap< KeyT, ValueT, CmpT > &m)

Detailed Description

Author
Helge Backhaus

Definition in file hashWatch.h.

Macro Definition Documentation

#define WATCH_DEQUE (   variable)

Makes unordered_sets inspectable in Tkenv.

Definition at line 313 of file hashWatch.h.

Referenced by oversim::ChordFingerTable::initialize().

#define WATCH_MULTIMAP (   m)

Makes std::multimaps inspectable in Tkenv.

See also WATCH_MULTIPTRMAP().

Definition at line 334 of file hashWatch.h.

Referenced by DHTDataStorage::initialize().

#define WATCH_POINTER_MAP (   m)

Makes pointer_maps inspectable in Tkenv.

Definition at line 327 of file hashWatch.h.

Referenced by oversim::Nice::initializeOverlay().

#define WATCH_UNORDERED_MAP (   m)

Makes unordered_maps inspectable in Tkenv.

Definition at line 320 of file hashWatch.h.

Referenced by GlobalNodeList::initialize(), BootstrapList::initializeApp(), and NeighborCache::initializeApp().

#define WATCH_UNORDERED_SET (   variable)

Makes unordered_sets inspectable in Tkenv.

Definition at line 306 of file hashWatch.h.

Function Documentation

template<class T >
void createDequeWatcher ( const char *  varname,
std::deque< T > &  v 
)

Definition at line 116 of file hashWatch.h.

{
new cDequeWatcher<T>(varname, v);
};
template<class KeyT , class ValueT , class CmpT >
void createHashMapWatcher ( const char *  varname,
UNORDERED_MAP< KeyT, ValueT, CmpT > &  m 
)

Definition at line 160 of file hashWatch.h.

{
};
template<class KeyT , class ValueT , class CmpT >
void createHashMapWatcher ( const char *  varname,
const UNORDERED_MAP< KeyT, ValueT, CmpT > &  m 
)

Definition at line 204 of file hashWatch.h.

template<class T >
void createHashSetWatcher ( const char *  varname,
UNORDERED_SET< T > &  v 
)

Definition at line 72 of file hashWatch.h.

{
new cHashSetWatcher<T>(varname, v);
};
template<class KeyT , class ValueT , class CmpT >
void createPointerMapWatcher ( const char *  varname,
std::map< KeyT, ValueT, CmpT > &  m 
)

Definition at line 248 of file hashWatch.h.

template<class KeyT , class ValueT , class CmpT >
void createStdMultiMapWatcher ( const char *  varname,
std::multimap< KeyT, ValueT, CmpT > &  m 
)

Definition at line 295 of file hashWatch.h.