[Xapian-devel] GSoC xapian node binding
xapian at networkimprov.net
Thu May 17 16:02:58 BST 2012
On Thu, May 17, 2012 at 2:38 AM, Marius Tibeica <mtibeica at gmail.com> wrote:
> 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).
OK, no need to bend over backwards. Simplicity is preferable after all.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Xapian-devel