DCL 4.0
Loading...
Searching...
No Matches
__HASHMAP.cpp File Reference

Go to the source code of this file.

Functions

 IMPLEMENT_CLASSINFO (HASHMAP_T, Object) String HASHMAP_T

Function Documentation

◆ IMPLEMENT_CLASSINFO()

IMPLEMENT_CLASSINFO ( HASHMAP_T ,
Object  )

Definition at line 99 of file __HASHMAP.cpp.

102{
103 StringBuilder r = __T("{");
104 for (ConstIterator it = begin(); it != end(); it++)
105 {
106 if (it != begin())
107 r += __T(", ");
108 r.format(
110 __T("{\"%ls\", \"%ls\"}"), (*it).key.data(), (*it).value.data()
112 __T("{\"%ls\", %p}"), (*it).key.data(), (*it).value
113#elif defined(__COMPILE_IntToPointerMap__)
114 __T("{%d, %p}"), (*it).key, (*it).value
115#endif
116 );
117 }
118 r += __T("}");
119 return r;
120}
121
123{
124 clear();
125}
#define __COMPILE_StringToPointerMap__
Definition HashMap.h:25
#define __COMPILE_IntToPointerMap__
Definition HashMap.h:31
#define __COMPILE_StringToStringMap__
Definition HashMap.h:20
#define __T(str)
Definition Object.h:44
ByteString r
virtual ~HASHMAP_T()
void clear()