35 template <
typename Type>
56 template<
typename That>
58 :
ptr(static_cast<Type*>(that.
ptr))
75 operator Type *()
const {
return const_cast<Type*>(
ptr); }
76 operator bool()
const {
return ptr != 0; }
80 Type *
get()
const {
return const_cast<Type*>(
ptr); }
ComPtr & operator=(const ComPtr ©)
Definition: comptr.h:44
ComPtr(const ComPtr< That > &that)
Definition: comptr.h:57
bool is_null() const
Definition: comptr.h:78
Type ** output_variable()
Definition: comptr.h:81
bool operator==(const ComPtr &other) const
Definition: comptr.h:64
Type * get() const
Definition: comptr.h:80
ComPtr.
Definition: comptr.h:37
bool operator !=(const ComPtr &other) const
Definition: comptr.h:65
bool operator >=(const ComPtr &other) const
Definition: comptr.h:69
ComPtr()
Definition: comptr.h:40
ComPtr(const ComPtr ©)
Definition: comptr.h:42
Type *const operator ->() const
Definition: comptr.h:73
bool operator<=(const ComPtr &other) const
Definition: comptr.h:67
bool operator<(const ComPtr &other) const
Definition: comptr.h:66
~ComPtr()
Definition: comptr.h:43
Type * operator ->()
Definition: comptr.h:74
ComPtr(Type *ptr)
Definition: comptr.h:41
void clear()
Definition: comptr.h:79
Type * ptr
Definition: comptr.h:83
bool operator >(const ComPtr &other) const
Definition: comptr.h:68