#include <hashWatch.h>
Public Member Functions | |
cHashSetWatcher (const char *name, UNORDERED_SET< T > &var) | |
const char * | getClassName () const |
virtual const char * | getElemTypeName () const |
virtual int | size () const |
virtual std::string | at (int i) const |
virtual std::string | atIt () const |
Protected Attributes | |
UNORDERED_SET< T > & | v |
std::string | classname |
UNORDERED_SET< T >::iterator | it |
int | itPos |
Definition at line 34 of file hashWatch.h.
cHashSetWatcher< T >::cHashSetWatcher | ( | const char * | name, | |
UNORDERED_SET< T > & | var | |||
) | [inline] |
Definition at line 42 of file hashWatch.h.
virtual std::string cHashSetWatcher< T >::at | ( | int | i | ) | const [inline, virtual] |
Definition at line 49 of file hashWatch.h.
00049 { 00050 if (i==0) { 00051 it=v.begin(); itPos=0; 00052 } else if (i==itPos+1 && it!=v.end()) { 00053 ++it; ++itPos; 00054 } else { 00055 it=v.begin(); 00056 for (int k=0; k<i && it!=v.end(); k++) ++it; 00057 itPos=i; 00058 } 00059 if (it==v.end()) { 00060 return std::string("out of bounds"); 00061 } 00062 return atIt(); 00063 }
virtual std::string cHashSetWatcher< T >::atIt | ( | ) | const [inline, virtual] |
Definition at line 64 of file hashWatch.h.
const char* cHashSetWatcher< T >::getClassName | ( | ) | const [inline] |
Definition at line 46 of file hashWatch.h.
00046 {return classname.c_str();}
virtual const char* cHashSetWatcher< T >::getElemTypeName | ( | ) | const [inline, virtual] |
Definition at line 47 of file hashWatch.h.
virtual int cHashSetWatcher< T >::size | ( | ) | const [inline, virtual] |
Definition at line 48 of file hashWatch.h.
00048 {return v.size();}
std::string cHashSetWatcher< T >::classname [protected] |
Definition at line 38 of file hashWatch.h.
UNORDERED_SET<T>::iterator cHashSetWatcher< T >::it [mutable, protected] |
Definition at line 39 of file hashWatch.h.
int cHashSetWatcher< T >::itPos [mutable, protected] |
Definition at line 40 of file hashWatch.h.
UNORDERED_SET<T>& cHashSetWatcher< T >::v [protected] |
Definition at line 37 of file hashWatch.h.