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.
Definition comptr.h:36
ComPtr(Type *ptr)
Definition comptr.h:39
bool operator<=(const ComPtr &other) const
Definition comptr.h:65
void clear()
Definition comptr.h:77
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:63
bool operator<(const ComPtr &other) const
Definition comptr.h:64
ComPtr & operator=(const ComPtr ©)
Definition comptr.h:42
ComPtr(const ComPtr ©)
Definition comptr.h:40
~ComPtr()
Definition comptr.h:41
bool operator>(const ComPtr &other) const
Definition comptr.h:66
Type * get() const
Definition comptr.h:78
Type * ptr
Definition comptr.h:81
ComPtr()
Definition comptr.h:38
Type *const operator->() const
Definition comptr.h:71
ComPtr(const ComPtr< That > &that)
Definition comptr.h:55
bool operator>=(const ComPtr &other) const
Definition comptr.h:67
Type ** output_variable()
Definition comptr.h:79