SharedPtrInplaceRep [constructor] | Create a SharedPtrInplaceRep object having an "in-place" instance of the parameterized TYPE using the TYPE constructor that takes the specified arguments, args.... Use the specified basicAllocator to supply memory and, upon a call to disposeRep, to destroy this representation (and the "in-place" shared object). If construction of TYPE with args does not throw, then invocation of this constructor does not throw. |
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 referred to by this representation. The behavior is undefined unless 0 < numWeakReferences() || 0 < numReferences(). |
disposeObject [virtual] | Destroy the object being referred to by this representation. This method is automatically invoked by releaseRef when the number of shared references reaches zero and should not be explicitly invoked otherwise. Note that this function calls the destructor for the shared object, but does not deallocate its footprint. |
disposeRep [virtual] | Deallocate the memory associated with this representation object (including the shared object's footprint). This method is automatically invoked by releaseRef and releaseWeakRef when the number of weak references and the number of shared references both reach zero and should not be explicitly invoked otherwise. The behavior is undefined unless disposeObject has already been called for this representation. Note that this disposeRep method effectively serves as the representation object's destructor. |
getDeleter [virtual] | Return a null pointer. Note that the specified type is not used as an in-place representation for a shared pointer can never store a user-supplied deleter (there is no function that might try to create one). |
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 to the shared object referred to by this representation by the optionally specified incrementAmount. The behavior is undefined unless 0 < incrementAmount and 0 < numReferences(). |
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 (in-place) object referred to by this representation object. |
ptr | Return the address of the modifiable (in-place) object referred to by this representation object. |
releaseRef | Atomically release a shared reference to the shared object referred to by this representation, disposing of the shared object if all the shared references to that object are released, and disposing of this representation if all (shared and weak) references to that object are released. The behavior is undefined unless 0 < numReferences(). |
releaseWeakRef | Atomically release a weak reference to the shared object referred to by this representation, disposing of this representation if all (shared and weak) references to the shared object are released. The behavior is undefined unless 0 < numWeakReferences(). |
resetCountsRaw | Reset the number of shared references and the number of weak references stored by this representation to the specified numSharedReferences and numWeakReferences respectively. This function is not thread-safe and users must ensure that they serialize access to the SharedPtrRep object when calling this function. Note that this function updates the counts, but does not dispose of the representation or the object irrespective of the values of numSharedReferences and numWeakReferences. |
tryAcquireRef | Atomically acquire a shared reference to the shared object referred to by this representation, if the number of shared references is greater than 0, and do nothing otherwise. Return true if the acquire succeeds, and false otherwise. The behavior is undefined unless 0 < numWeakReferences() || 0 < numReferences(). |