20 #ifndef __AUTOREFCNT_HXX__
21 #define __AUTOREFCNT_HXX__
47 operator T *() {
return _ptr; }
48 operator const T *()
const {
return _ptr; }
74 operator const T *()
const {
return _ptr; }
84 template<
class T,
class U>
87 T *subPtr(autoSubPtr);
88 U *ptr(
dynamic_cast<U *
>(subPtr));
95 template<
class T,
class U>
98 T *subPtr(autoSubPtr);
99 U *ptr(
dynamic_cast<U *
>(subPtr));
101 throw Exception(
"DynamicCastSafe : U is not a subtype of T !");
119 operator T *() {
return _ptr; }
120 operator const T *()
const {
return _ptr; }
void referPtr(const T *ptr)
void takeRef(const T *ptr)
AutoConstRefCnt & operator=(const T *ptr)
const T * operator->() const
const T & operator*() const
AutoConstRefCnt(const T *ptr=0)
bool operator==(const T *other) const
bool operator==(const AutoConstRefCnt &other) const
AutoConstRefCnt(const AutoConstRefCnt &other)
AutoConstRefCnt & operator=(const AutoConstRefCnt &other)
AutoCppPtr & operator=(T *ptr)
const T * operator->() const
const T & operator*() const
bool operator==(const T *other) const
AutoRefCnt(const AutoRefCnt &other)
const T * operator->() const
const T & operator*() const
bool operator==(const AutoRefCnt &other) const
AutoRefCnt & operator=(const AutoRefCnt &other)
AutoRefCnt & operator=(T *ptr)
YACS::BASES::AutoRefCnt< U > DynamicCastSafe(typename YACS::BASES::AutoRefCnt< T > &autoSubPtr)
YACS::BASES::AutoRefCnt< U > DynamicCast(typename YACS::BASES::AutoRefCnt< T > &autoSubPtr) noexcept