Shared pointer representation object used by SharedObjectPool.
Synopsis
Declared in <bdlcc_sharedobjectpool.h>
template<
class TYPE,
class RESETTER>
class SharedObjectPool_Rep
: public bslma::SharedPtrRep
Base Classes
Name |
Description |
Partially implemented shared pointer representation protocol. |
Member Functions
Name |
Description |
|
Construct a new representation that embeds a |
|
Destroy this representation object and the embedded instance of |
Atomically acquire a shared reference to the shared object referred to by this representation. The behavior is undefined unless |
|
Atomically acquire a weak reference to the shared object. |
|
|
Release the object managed by this representation. |
|
Release this representation object back to its pool. |
|
Return NULL. Shared object pools strictly control the delete policy for their objects, and do not expose it to end users. |
Return |
|
Atomically increment the number of shared references. |
|
Return a "snapshot" of the current number of shared references to the shared object referred to by this representation object. |
|
Return a "snapshot" of the current number of weak references to the shared object referred to by this representation object. |
|
|
Return (untyped) address of the object managed by this representation. This virtual override effectively returns "(void*)ptr()". |
Return a pointer to the in‐place object. |
|
Atomically release a shared reference to the shared object. |
|
Atomically release a weak reference to the shared object. |
|
Invoke the object resetter specified at construction on the associated object. |
|
Reset the shared and weak reference counts to the specified values. |
|
Try to atomically acquire a shared reference to the shared object. |
Static Member Functions
Name |
Description |
Release the shared reference held by the specified representation. |
|
Deleter that has no effect when converting a null shared pointer. |
Created with MrDocs