Out-of-place concrete implementation of the SharedPtrRep protocol.
Declared in <bslstl_sharedptrallocateoutofplacerep.h>
template<
class TYPE,
class DELETER,
class ALLOCATOR>
class SharedPtrAllocateOutofplaceRep
: public BloombergLP::bslma::SharedPtrRep
This class provides a concrete implementation of the SharedPtrRep protocol for out-of-place instances of the parameterized TYPE. Upon destruction of this object, the parameterized DELETER type is invoked on the pointer to the shared object.
| Name | Description |
|---|---|
BloombergLP::bslma::SharedPtrRep | Partially implemented shared pointer representation protocol. |
| Name | Description |
|---|---|
acquireRef | Atomically acquire a shared reference to the shared object referred to by this representation. The behavior is undefined unless 0 < numReferences(). |
acquireWeakRef | Atomically acquire a weak reference to the shared object. |
disposeObject [virtual] | Destroy the object referred to by this representation. |
disposeRep [virtual] | Destroy this representation and deallocate its memory. |
getDeleter [virtual] | Return a pointer to the stored deleter if it matches type. |
hasUniqueOwner | Return true if there is only one shared reference and no weak references to the object referred to by this representation, and false otherwise. |
incrementRefs | Atomically increment the number of shared references. |
numReferences | Return a "snapshot" of the current number of shared references to the shared object referred to by this representation object. |
numWeakReferences | Return a "snapshot" of the current number of weak references to the shared object referred to by this representation object. |
originalPtr [virtual] | Return the (untyped) address of the modifiable shared object to which this object refers. |
ptr | Return the address of the modifiable shared object to which this object refers. |
releaseRef | Atomically release a shared reference to the shared object. |
releaseWeakRef | Atomically release a weak reference to the shared object. |
resetCountsRaw | Reset the shared and weak reference counts to the specified values. |
tryAcquireRef | Try to atomically acquire a shared reference to the shared object. |
| Name | Description |
|---|---|
makeOutofplaceRep | Create a new out-of-place shared-pointer representation. |
managedPtrDeleter | Release the shared reference held by the specified representation. |
managedPtrEmptyDeleter | Deleter that has no effect when converting a null shared pointer. |