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