30 #ifndef AVT_VMBAPI_SHAREDPOINTER_IMPL_H 31 #define AVT_VMBAPI_SHAREDPOINTER_IMPL_H 84 throw std::logic_error(
"shared pointer, used incorectly");
132 throw std::bad_alloc();
161 T *pObject =
dynamic_cast<T*
>(rSharedPointer.
m_pObject);
269 template<
class T,
class T2>
275 template <
class T1,
class T2>
278 return sp1.
get() == sp2.
get();
281 template <
class T1,
class T2>
284 return sp1.
get() != sp2.
get();
289 #endif //AVT_VMBAPI_SHAREDPOINTER_IMPL_H
ref_count & operator=(const ref_count &rRefCount)
AVT::VmbAPI::ref_count_base * m_pRefCount
bool operator!=(const shared_ptr< T1 > &sp1, const shared_ptr< T2 > &sp2)
shared_ptr & operator=(const shared_ptr &rSharedPointer)
virtual long use_count() const =0
virtual long use_count() const
static void swap(T2 &rValue1, T2 &rValue2)
ref_count(const ref_count &rRefCount)
bool operator==(const shared_ptr< T1 > &sp1, const shared_ptr< T2 > &sp2)
shared_ptr< T > dynamic_pointer_cast(const shared_ptr< T2 > &rSharedPointer)