Name

RefCounted — Objects eligible for intrusive refcounting should inherit from this class.

Synopsis

class RefCounted:
  # construct/copy/destruct
  __init__()
  __init__(const RefCounted &)
  __del__()

  # public member functions

  int decRefCnt() const
  None incRefCnt() const
  int getRefCnt() const

Description

RefCntPtr uses the interface of this class.

RefCounted construct/copy/destruct

  1. __init__()


  2. __init__(const RefCounted & )


  3. __del__()


RefCounted public member functions

  1. int decRefCnt() const

    Decrement reference counter & return new value.


  2. None incRefCnt() const

    Increment reference counter.


  3. int getRefCnt() const

    Return ref counter's value.