Ice 3.7 C++11 API Reference
|
Go to the documentation of this file.
5 #ifndef ICE_UTIL_HANDLE_H
6 #define ICE_UTIL_HANDLE_H
41 throwNullHandleException(__FILE__, __LINE__);
58 throwNullHandleException(__FILE__, __LINE__);
66 return _ptr ? true :
false;
78 void throwNullHandleException(
const char *,
int)
const;
81 template<
typename T>
inline void
87 template<
typename T,
typename U>
102 template<
typename T,
typename U>
108 template<
typename T,
typename U>
123 template<
typename T,
typename U>
126 return lhs < rhs || lhs == rhs;
129 template<
typename T,
typename U>
132 return !(lhs < rhs || lhs == rhs);
135 template<
typename T,
typename U>
152 this->
_ptr->__incRef();
163 this->
_ptr->__incRef();
173 this->
_ptr->__incRef();
181 this->
_ptr->__decRef();
255 return Handle(
dynamic_cast<T*
>(p));
bool operator==(const HandleBase< T > &lhs, const HandleBase< U > &rhs)
Definition: Handle.h:88
bool operator>(const HandleBase< T > &lhs, const HandleBase< U > &rhs)
Definition: Handle.h:130
static Handle dynamicCast(const HandleBase< Y > &r)
Definition: Handle.h:247
bool operator<(const HandleBase< T > &lhs, const HandleBase< U > &rhs)
Definition: Handle.h:109
Handle & operator=(T *p)
Definition: Handle.h:185
Definition: Optional.h:1095
Handle(const Handle &r)
Definition: Handle.h:167
This exception indicates an attempt to dereference a null IceUtil::Handle or IceInternal::Handle.
Definition: Exception.h:186
static Handle dynamicCast(Y *p)
Definition: Handle.h:253
bool operator>=(const HandleBase< T > &lhs, const HandleBase< U > &rhs)
Definition: Handle.h:136
void swap(HandleBase &other)
Definition: Handle.h:69
~Handle()
Definition: Handle.h:177
bool operator<=(const HandleBase< T > &lhs, const HandleBase< U > &rhs)
Definition: Handle.h:124
Handle(T *p=0)
Definition: Handle.h:146
T * _ptr
Definition: Handle.h:74
Handle(const Handle< Y > &r)
Definition: Handle.h:157
T element_type
Definition: Handle.h:23
T * get() const
Definition: Handle.h:25
T & operator*() const
Definition: Handle.h:47
Handle & operator=(const Handle &r)
Definition: Handle.h:226
bool operator!=(const HandleBase< T > &lhs, const HandleBase< U > &rhs)
Definition: Handle.h:103
Handle & operator=(const Handle< Y > &r)
Definition: Handle.h:206
T * operator->() const
Definition: Handle.h:30