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;
342 #define PCONTAINERINFO(cls, par) \
343 PCLASSINFO(cls, par) \
345 cls(const cls & c) : par(c) { CopyContents(c); } \
346 cls & operator=(const cls & c) \
347 { AssignContents(c); return *this; } \
348 virtual ~cls() { Destruct(); } \
349 virtual PBoolean MakeUnique() \
350 { if(par::MakeUnique())return true; CloneContents(this);return false; } \
352 cls(int dummy, const cls * c) : par(dummy, c) { CloneContents(c); } \
353 virtual void DestroyContents(); \
354 void CloneContents(const cls * c); \
355 void CopyContents(const cls & c); \
356 virtual void AssignContents(const PContainer & c) \
357 { par::AssignContents(c); CopyContents((const cls &)c); }
404 PINDEX initialSize = 0
631 #include <ptlib/contain.inl>
635 #endif // PTLIB_CONTAIN_H