[Xapian-devel] GSoC xapian node binding

Marius Tibeica mtibeica at gmail.com
Thu May 17 10:38:36 BST 2012


I have tried multiple approaches.
The difficulty comes from the fact that each class can have multiple
sync/async functions. For example, Enquire has atleast get_mset,
get_matching_terms and get_eset.
Another problem is that from the pool methods (which should be templatized)
I have to call methods from the class (GetMset_process, GetMset_convert,
GetMatchingTerm_process, ...). This means that I also probably have to pass
a function as a template parameter.
The thirt problem is that func##_pool and func##_done need to be (int
(eio_req *req)), so I can not pass a function pointer.

At the moment I am trying a hybrid approach (bot templates and macroes).

On Wed, May 16, 2012 at 8:10 PM, Liam <xapian at networkimprov.net> wrote:

>
>
> On Wed, May 16, 2012 at 3:30 AM, Marius Tibeica <mtibeica at gmail.com>wrote:
>
>>
>>
>> On Wed, May 16, 2012 at 8:55 AM, Liam <xapian at networkimprov.net> wrote:
>>
>>>
>>>
>>> Did you consider how those macro functions could be templatized?
>>>
>> Will do.
>>
>
> Alternatively, the DECLARE_POOL methods could possibly live in a base
> class...
>
> _______________________________________________
> Xapian-devel mailing list
> Xapian-devel at lists.xapian.org
> http://lists.xapian.org/mailman/listinfo/xapian-devel
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xapian.org/pipermail/xapian-devel/attachments/20120517/ab1ed7ec/attachment-0001.htm>


More information about the Xapian-devel mailing list