nx_video_source_sdk
1.0
Video Source SDK
|
#include <ptr.h>
Public Member Functions | |
Ptr (std::nullptr_t=nullptr) | |
template<class OtherRefCountable > | |
Ptr (const Ptr< OtherRefCountable > &other) | |
Ptr (const Ptr &other) | |
template<class OtherRefCountable > | |
Ptr (Ptr< OtherRefCountable > &&other) | |
Ptr (Ptr &&other) | |
template<class OtherRefCountable > | |
Ptr & | operator= (const Ptr< OtherRefCountable > &other) |
Ptr & | operator= (const Ptr &other) |
template<class OtherRefCountable > | |
Ptr & | operator= (Ptr< OtherRefCountable > &&other) |
Ptr & | operator= (Ptr &&other) |
template<class OtherRefCountable > | |
bool | operator== (const Ptr< OtherRefCountable > &other) const |
template<class OtherRefCountable > | |
bool | operator!= (const Ptr< OtherRefCountable > &other) const |
void | reset () |
template<class OtherRefCountable > | |
void | reset (OtherRefCountable *ptr) |
RefCountable * | releasePtr () |
RefCountable * | get () const |
RefCountable * | operator-> () const |
RefCountable & | operator* () const |
operator bool () const | |
Friends | |
template<class OtherRefCountable > | |
Ptr< OtherRefCountable > | toPtr (OtherRefCountable *refCountable) |
Smart pointer to objects that implement IRefCountable.
Is assignment-compatible with smart pointers to derived classes.
|
inline |
Supports implicit conversion from nullptr.
|
inline |
Defined because the template above does not suppress generation of such member.
|
inline |
Defined because the template above does not suppress generation of such member.
|
inline |
Defined because the template above does not work for same-type assignment.
|
inline |
Defined because the template above does not work for same-type assignment.
|
inline |
Cancels ownership of the object: replaces the stored pointer with null. The reference counter of the object remains intact.
|
inline |
Decrements the reference counter of the owned object (will be deleted if reaches 0), and replaces the stored pointer with null.
|
inline |
Decrements the reference counter of the owned object (will be deleted if reaches 0), and starts owning the specified object, leaving its reference counter intact.