Go to the documentation of this file.
34 #ifndef PTLIB_CONTAIN_H
35 #define PTLIB_CONTAIN_H
114 PINDEX initialSize = 0
153 virtual PINDEX
GetSize()
const;
343 #define PCONTAINERINFO(cls, par) \
344 PCLASSINFO(cls, par) \
346 cls(const cls & c) : par(c) { CopyContents(c); } \
347 cls & operator=(const cls & c) \
348 { AssignContents(c); return *this; } \
349 virtual ~cls() { Destruct(); } \
350 virtual PBoolean MakeUnique() \
351 { if(par::MakeUnique())return true; CloneContents(this);return false; } \
353 cls(int dummy, const cls * c) : par(dummy, c) { CloneContents(c); } \
354 virtual void DestroyContents(); \
355 void CloneContents(const cls * c); \
356 void CopyContents(const cls & c); \
357 virtual void AssignContents(const PContainer & c) \
358 { par::AssignContents(c); CopyContents((const cls &)c); }
405 PINDEX initialSize = 0
632 #include <ptlib/contain.inl>
636 #endif // PTLIB_CONTAIN_H