#include <Intrusive_Ref_Count_Handle_T.h>
Default Constructor - enters the "nil" state.
Ctor - By default, takes ownership of passed-in "copy" of reference to T. But the second argument (bool) can be changed from the default value of 'true' to the non-default value of 'false'. The second argument dictates whether or not this handle object should take ownership of the passed-in pointer to the T object. By default, it takes ownership, leaving the reference counter of the T object unchanged. When it is instructed to not take ownership (false value for second arg), then the reference counter of the T object will be incremented so that this handle object has its own "copy".
Copy Constructor - claims a "copy" of rhs object's reference to T.
Used to take-away the underlying pointer from this smart pointer object. Caller becomes responsibe for the returned "copy" to the reference. Always leaves the smart pointer in the "nil" state upon return.
Claim a "copy" of the reference-counted object by adding one to its reference counter. Do nothing if this smart pointer object is currently in the "nil" state.
Drop our "copy" of the reference-counted object by removing one from its reference counter. Do nothing if this smart pointer object is currently in the "nil" state. Note that this method will always leave this smart pointer in the "nil" state upon its return.
Used to pass the underlying pointer as an "IN" argument to a method.
Used to pass the underlying pointer as an "IN/OUT" argument to a method.
Returns true if underlying pointer is NULL (0). Returns false otherwise.
Const Accessor to underlying pointer (T*) using arrow (->) operator.
Assignment Operator with T* argument. Takes ownership of passed-in "copy" of reference to T.
Assignment Operator with const TAO_Smart_Ptr<T>& argument. Claims a "copy" of rhs object's reference to T.
Equality operator allows the refcounted object to be used generically as a contained object
Used to pass the underlying pointer as an "OUT" argument to a method.
The underlying pointer to the (intrusively) reference-counted object. Set to 0 when this smart pointer is in the "nil" state. Otherwise, this smart pointer always owns a (reference-counted) "copy" of the object pointed to by the ptr_ data member.
The documentation for this class was generated from the following file: