Name

RefCntPtr — Pointer to object T which maintains (intrusive) object reference count.

Synopsis

template<typename T> 
class RefCntPtr (PtrBaseSernaApi::PtrBase< T >) :
  # construct/copy/destruct
  __init__()
  __init__(T *)
  template<class T1 > __init__(const RefCntPtr< T1 > &)
  __init__(const RefCntPtr &)
  RefCntPtr& operator=(T *)
  RefCntPtr& operator=(const RefCntPtr &)
  __del__()

  # public member functions

  None swap(RefCntPtr &) 
  None clear() 
  int count() 

  # private member functions

  RefCntPtr & assign(T *) 

Description

Pointer to object T which maintains (intrusive) object reference count. T must have RefCounted class as it's base class (or at least maintain same interface). T may be an incomplete type.

RefCntPtr construct/copy/destruct

  1. __init__()


  2. __init__(T * ptr)


  3. template<class T1 > __init__(const RefCntPtr< T1 > & other)


  4. __init__(const RefCntPtr & other)


  5. RefCntPtr& operator=(T * other)


  6. RefCntPtr& operator=(const RefCntPtr & other)


  7. __del__()


RefCntPtr public member functions

  1. None swap(RefCntPtr & other)


  2. None clear()


  3. int count()


RefCntPtr private member functions

  1. RefCntPtr & assign(T * other)