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

Go to the source code of this file.

Functions

 IMPLEMENT_CLASSINFO (LIST_T, Object) String LIST_T

Function Documentation

◆ IMPLEMENT_CLASSINFO()

IMPLEMENT_CLASSINFO ( LIST_T ,
Object  )

Definition at line 42 of file __LIST.cpp.

45{
46 StringBuilder r = __T("{");
47 for (ConstIterator it = begin(); it != end(); it++)
48 {
49 if (it != begin())
50 r += __T(", ");
51#ifdef __COMPILE_StringList__
52 r += __T("\"");
53 r += String::escape((*it), (*it).length());
54 r += __T("\"");
55#elif defined(__COMPILE_ByteStringList__)
56 r += __T("\"");
57 r += String::tryString((*it), 8);
58 r += __T("\"");
59#elif defined(__COMPILE_PointerList__)
60 r.format(__T("%p"), (*it));
61#else
62 r += (*it).toString();
63#endif
64 }
65 r += __T("}");
66 return r;
67}
68
70{
71 if (!isEmpty())
72 clear();
73 free(__pMasterNode);
74}
#define __T(str)
Definition Object.h:44
ByteString r
virtual ~LIST_T()
bool isEmpty() const
Definition __LIST.h:562
NodeBase * __pMasterNode
Definition __LIST.h:169
void clear()
Definition __LIST.cpp:185