Public Methods | |
SRef (T *in) | |
SRef (const SPtr< T > &in) | |
SRef (const SRef< T > &in) | |
~SRef () | |
T * | detach () const |
bool | operator! () const |
T * | operator-> () const |
bool | operator== (const SRef< T > &other) const |
bool | operator== (const SPtr< T > &other) const |
bool | operator!= (const SRef< T > &other) const |
bool | operator!= (const SPtr< T > &other) const |
SRef<T>
by value, where T
is the interface you are returning.
|
This function constructs an SRef from a raw pointer of type T. It increments the reference count of the argument, and the argument therefore does not have its reference count incremented.
|
|
This function constructs an SRef from an SPtr of the same controlled type. It caches the interface pointer controlled by the incoming SPtr, and increments the reference count for the return.
|
|
This function constructs an SRef from another SRef of the same controlled type. In this constructor, the target SRef takes control of the pointer by calling "detach" on the source SRef. This is done for performance purposes.
|
|
This is the destructor of the |
|
This function detaches the controlled pointer from the SRef instance. It is assumed that the caller of detach will take responsibility for releasing the object. |
|
This logical NOT operator returns |
|
This comparison operator tests the inequality of the controlled interface against an SPtr of the same control type.
|
|
This comparison operator tests the inequality of the controlled interface against an SRef of the same control type.
|
|
This operator is used to access the member functions of the
SRef |
|
This comparison operator tests the equality of the controlled interface against an SPtr of the same control type.
|
|
This comparison operator tests the equality of the controlled interface against an SRef of the same control type.
|
Copyright © 2002 - 2010 Cadence Design Systems, Inc.
All Rights Reserved.