For internal use only.
Reference counted internal classes should inherit from RefCntBase.
More...
#include <base.h>
Inheritance diagram for Xapian::Internal::RefCntBase:

Public Types | |
| typedef unsigned int | ref_count_t |
Public Member Functions | |
| RefCntBase () | |
| The constructor, which initialises the ref_count to 0. | |
Public Attributes | |
| ref_count_t | ref_count |
| The actual reference count. | |
Protected Member Functions | |
| RefCntBase (const RefCntBase &) | |
| The copy constructor. | |
For internal use only.
Reference counted internal classes should inherit from RefCntBase.
This gives the object a reference count used by RefCntPtr.
Definition at line 35 of file base.h.
| typedef unsigned int Xapian::Internal::RefCntBase::ref_count_t |
| Xapian::Internal::RefCntBase::RefCntBase | ( | const RefCntBase & | ) | [inline, protected] |
| Xapian::Internal::RefCntBase::RefCntBase | ( | ) | [inline] |
The actual reference count.
It's mutable so we can have reference counting work with const pointers.
Definition at line 58 of file base.h.
Referenced by test_refcnt1().