63 ptr = (X*) (other.ptr);
105 #ifndef NO_MEMBER_TEMPLATES 114 if ((
const void*)
this != (
const void*) (&r)) {
121 #endif // NO_MEMBER_TEMPLATES 123 X*
get()
const throw(){
return (this->
ok() ? ptr : 0);}
130 operator const void*()
const{
131 return (
const void*)
get();
217 const X*
get()
const throw(){
return (this->
ok() ? static_cast<const X*>(this->ptr) : 0);}
219 const X&
operator*()
const throw(){
return *(static_cast<const X*>(
get()));}
226 #endif // COUNTED_PTR_H
const_counted_ptr(const const_counted_ptr< Y > &r)
void acquire(const counted_ptr< X > &c)
const X & operator *() const
const X * operator->() const
counted_ptr & operator=(const counted_ptr< Y > &r)
counted_ptr & operator=(const counted_ptr &r)
const_counted_ptr & operator=(const const_counted_ptr< Y > &r)
const_counted_ptr(const counted_ptr< X > &other)
const_counted_ptr(X *p=0)
const_counted_ptr(const const_counted_ptr &other)
const_counted_ptr & operator=(const counted_ptr< Y > &r)
const_counted_ptr & operator=(const counted_ptr< X > &r)
void acquire(const counted_ptr< X > &other)
const_counted_ptr(const counted_ptr< Y > &r)
void acquire(const counted_ptr< Y > &other)
counted_ptr(const counted_ptr &r)
counted_ptr(const counted_ptr< Y > &r)
counted_ptr_counter(unsigned c=1)
const_counted_ptr & operator=(const const_counted_ptr &r)
void acquire(const counted_ptr< Y > &other)
counted_ptr_counter * itsCounter