34 template <
typename Type>
54 template<
typename That>
56 :
ptr(static_cast<Type*>(that.
ptr))
73 operator Type *()
const {
return const_cast<Type*
>(
ptr); }
74 operator bool()
const {
return ptr != 0; }
78 Type *
get()
const {
return const_cast<Type*
>(
ptr); }
ComPtr & operator=(const ComPtr ©)
Definition: comptr.h:42
bool operator>=(const ComPtr &other) const
Definition: comptr.h:67
bool operator!=(const ComPtr &other) const
Definition: comptr.h:63
ComPtr(const ComPtr< That > &that)
Definition: comptr.h:55
bool is_null() const
Definition: comptr.h:76
Type ** output_variable()
Definition: comptr.h:79
bool operator>(const ComPtr &other) const
Definition: comptr.h:66
bool operator==(const ComPtr &other) const
Definition: comptr.h:62
Type *const operator->() const
Definition: comptr.h:71
ComPtr.
Definition: comptr.h:35
ComPtr()
Definition: comptr.h:38
ComPtr(const ComPtr ©)
Definition: comptr.h:40
bool operator<=(const ComPtr &other) const
Definition: comptr.h:65
bool operator<(const ComPtr &other) const
Definition: comptr.h:64
~ComPtr()
Definition: comptr.h:41
ComPtr(Type *ptr)
Definition: comptr.h:39
void clear()
Definition: comptr.h:77
Type * ptr
Definition: comptr.h:81