31 #ifndef PTLIB_SHAREDPTR_H
32 #define PTLIB_SHAREDPTR_H
64 {
ptr = v.release(); }
113 #endif // PTLIB_SHAREDPTR_H
virtual PBoolean MakeUnique()
Make this instance to be the one and only reference to the container contents.
PSharedPtr(std::auto_ptr< element_type > &v)
Definition: psharedptr.h:63
void DestroyContents()
Destroy the container contents.
Definition: psharedptr.h:99
void Destruct()
Internal function called from container destructors.
PBoolean SetSize(PINDEX)
Set the new current size of the container.
Definition: psharedptr.h:75
T * ptr
Definition: psharedptr.h:109
PSharedPtr(const PSharedPtr &c)
Definition: psharedptr.h:59
virtual PBoolean MakeUnique()
Make this instance to be the one and only reference to the container contents.
Definition: psharedptr.h:72
PSharedPtr & operator=(const PSharedPtr &c)
Definition: psharedptr.h:66
T & operator*() const
Definition: psharedptr.h:84
BOOL PBoolean
Definition: object.h:102
void Reset() const
Definition: psharedptr.h:81
virtual void AssignContents(const PContainer &c)
Copy the container contents.
PSharedPtr(element_type *p=NULL)
Definition: psharedptr.h:56
void CopyContents(const PContainer &c)
Definition: psharedptr.h:105
Abstract class to embody the base functionality of a container.
Definition: contain.h:104
void CloneContents(const PContainer *src)
Definition: psharedptr.h:102
T * operator->() const
Definition: psharedptr.h:87
PSharedPtr(int dummy, const PSharedPtr *c)
Definition: psharedptr.h:92
virtual ~PSharedPtr()
Definition: psharedptr.h:69
T element_type
Definition: psharedptr.h:54
void AssignContents(const PContainer &c)
Copy the container contents.
Definition: psharedptr.h:96
These templates implement an pointner class with an integral reference count based on the PContainer ...
Definition: psharedptr.h:50
T * Get() const
Definition: psharedptr.h:78