7 #ifndef ossimRefPtr_HEADER 8 #define ossimRefPtr_HEADER 81 explicit operator bool()
const {
return m_ptr == 0 ? false :
true; }
83 inline T*
get() {
return m_ptr; }
85 inline const T*
get()
const {
return m_ptr; }
100 template<
typename _Tp1,
typename _Tp2>
inline bool 102 {
return __a.get() == __b.get(); }
110 template<
typename _Tp1,
typename _Tp2>
inline bool 112 {
return __a.get() != __b.get(); }
115 {
return (
bool)__a; }
118 {
return (
bool)__a; }
bool operator!=(const ossimRefPtr< _Tp1 > &__a, const ossimRefPtr< _Tp2 > &__b) noexcept
ossimRefPtr & operator=(const ossimRefPtr &rp)
bool operator<(const ossimRefPtr &rp) const
bool operator==(const T *ptr) const
const T & operator*() const
T * take()
take control over the object pointed to by ref_ptr, unreference but do not delete even if ref count g...
ossimRefPtr(const ossimRefPtr &rp)
bool operator==(const ossimRefPtr< _Tp1 > &__a, const ossimRefPtr< _Tp2 > &__b) noexcept
bool operator>(const ossimRefPtr &rp) const
const T * operator->() const
bool operator!=(const T *ptr) const