#include <bdlcc_sharedobjectpool.h>
◆ SharedObjectPool_Rep()
template<class TYPE , class RESETTER >
template<class CREATOR >
Construct a new rep object that, upon release, will invoke the specified objectResetter
and return itself to the specified pool
; then invoke objectCreator
to construct an object of TYPE
embedded within the new rep object. Use the specified basicAllocator
to supply memory. If basicAllocator
is 0, the currently installed default allocator is used.
◆ ~SharedObjectPool_Rep()
template<class TYPE , class RESETTER >
Destroy this representation object and the embedded instance of TYPE
.
◆ disposeObject()
template<class TYPE , class RESETTER >
Release the object being managed by this representation. This method is invoked when the number of strong references reaches zero. Note that if there are any weak references to the shared object then this function does nothing, including not destroying the object or returning it to the pool.
Implements bslma::SharedPtrRep.
◆ disposeRep()
template<class TYPE , class RESETTER >
Release this representation object. This method is invoked when the number of weak references and the number of strong references reach zero. This virtual override will return the object, and this representation, to the associated pool.
Implements bslma::SharedPtrRep.
◆ getDeleter()
template<class TYPE , class RESETTER >
Return NULL. Shared object pools strictly control the delete policy for their objects, and do not expose it to end users.
Implements bslma::SharedPtrRep.
◆ originalPtr()
template<class TYPE , class RESETTER >
Return (untyped) address of the object managed by this representation. This virtual override effectively returns "(void*)ptr()".
Implements bslma::SharedPtrRep.
◆ ptr()
template<class TYPE , class RESETTER >
◆ reset()
template<class TYPE , class RESETTER >
Invoke the object resetter specified at construction on the associated object.
The documentation for this class was generated from the following file: