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); }
void clear()
Definition: comptr.h:77
Type *const operator->() const
Definition: comptr.h:71
bool operator<=(const ComPtr &other) const
Definition: comptr.h:65
bool operator==(const ComPtr &other) const
Definition: comptr.h:62
bool is_null() const
Definition: comptr.h:76
bool operator>=(const ComPtr &other) const
Definition: comptr.h:67
ComPtr.
Definition: comptr.h:35
ComPtr(const ComPtr ©)
Definition: comptr.h:40
ComPtr & operator=(const ComPtr ©)
Definition: comptr.h:42
Type * ptr
Definition: comptr.h:81
~ComPtr()
Definition: comptr.h:41
Type ** output_variable()
Definition: comptr.h:79
bool operator<(const ComPtr &other) const
Definition: comptr.h:64
bool operator>(const ComPtr &other) const
Definition: comptr.h:66
bool operator!=(const ComPtr &other) const
Definition: comptr.h:63
ComPtr(Type *ptr)
Definition: comptr.h:39
Definition: Application/application.h:35
ComPtr(const ComPtr< That > &that)
Definition: comptr.h:55
ComPtr()
Definition: comptr.h:38