[Xapian-discuss] How does the "class Internal" work?

张慧聪 zhcfreesea at gmail.com
Sat Jul 25 02:49:57 BST 2009


On Fri, Jul 24, 2009 at 5:29 AM, Olly Betts <olly at survex.com> wrote:

>
>
> Most Xapian classes use the "PIMPL idiom", with a reference counted
> internal object.  Wikipedia has a reasonable page about PIMPL:
>
> http://en.wikipedia.org/wiki/Opaque_pointer
>
> The internal class is Database::Internal, and has a ref_count member
> because it inherits from RefCntBase.
>
Thank you for reply! I understand it now! :-)


Gestorm Zhang


More information about the Xapian-discuss mailing list