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;
81template<
typename T>
inline void
82HandleBase<T>::throwNullHandleException(
const char* file,
int line)
const
87template<
typename T,
typename U>
102template<
typename T,
typename U>
108template<
typename T,
typename U>
123template<
typename T,
typename U>
126 return lhs < rhs || lhs == rhs;
129template<
typename T,
typename U>
132 return !(lhs < rhs || lhs == rhs);
135template<
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));
T * operator->() const
Definition Handle.h:30
T element_type
Definition Handle.h:23
T * _ptr
Definition Handle.h:74
void swap(HandleBase &other)
Definition Handle.h:69
T & operator*() const
Definition Handle.h:47
T * get() const
Definition Handle.h:25
Handle(const Handle< Y > &r)
Definition Handle.h:157
~Handle()
Definition Handle.h:177
static Handle dynamicCast(Y *p)
Definition Handle.h:253
Handle & operator=(const Handle< Y > &r)
Definition Handle.h:206
Handle & operator=(T *p)
Definition Handle.h:185
static Handle dynamicCast(const HandleBase< Y > &r)
Definition Handle.h:247
Handle(const Handle &r)
Definition Handle.h:167
Handle & operator=(const Handle &r)
Definition Handle.h:226
Handle(T *p=0)
Definition Handle.h:146
This exception indicates an attempt to dereference a null IceUtil::Handle or IceInternal::Handle.
Definition Exception.h:186
bool operator>(const HandleBase< T > &lhs, const HandleBase< U > &rhs)
Definition Handle.h:130
bool operator<(const HandleBase< T > &lhs, const HandleBase< U > &rhs)
Definition Handle.h:109
bool operator<=(const HandleBase< T > &lhs, const HandleBase< U > &rhs)
Definition Handle.h:124
bool operator>=(const HandleBase< T > &lhs, const HandleBase< U > &rhs)
Definition Handle.h:136
bool operator!=(const HandleBase< T > &lhs, const HandleBase< U > &rhs)
Definition Handle.h:103
bool operator==(const HandleBase< T > &lhs, const HandleBase< U > &rhs)
Definition Handle.h:88