Go to the documentation of this file.
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);
189 if(NULL != m_pRefCount)
248 if(NULL == m_pRefCount)
253 return m_pRefCount->use_count();
259 return (use_count() == 1);
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
shared_ptr & operator=(const shared_ptr &rSharedPointer)
void swap(Bag &a, Bag &b)
ref_count & operator=(const ref_count &rRefCount)
ref_count(const ref_count &rRefCount)
bool operator!=(const shared_ptr< T1 > &sp1, const shared_ptr< T2 > &sp2)
static void swap(T2 &rValue1, T2 &rValue2)
virtual long use_count() const
AVT::VmbAPI::ref_count_base * m_pRefCount
bool operator==(const shared_ptr< T1 > &sp1, const shared_ptr< T2 > &sp2)
shared_ptr< T > dynamic_pointer_cast(const shared_ptr< T2 > &rSharedPointer)
avt_vimba_camera
Author(s): Allied Vision Technologies, Miquel Massot
autogenerated on Sat Jun 3 2023 02:14:12