[Xapian-tickets] [Xapian] #186: MatchDeciders should be reference counted
Xapian
nobody at xapian.org
Tue Dec 16 15:00:52 GMT 2008
#186: MatchDeciders should be reference counted
-------------------------+--------------------------------------------------
Reporter: richard | Owner: nobody
Type: defect | Status: new
Priority: normal | Milestone: 1.1.0
Component: Library API | Version: SVN trunk
Severity: normal | Resolution:
Keywords: | Blockedby:
Platform: All | Blocking: 182
-------------------------+--------------------------------------------------
Comment(by richard):
On reflection, I think the only way to make MatchDeciders,
ValueRangeProcessors, and other user-defined subclasses reference counted
is to expose the reference counting mechanism fully. Without this, I
don't think there's any hope of making the bindings work correctly with
the reference counting.
SWIG has support for reference counting (and other smart pointers) with
some of its backends - but I'm not convinced it has support for all the
backends which we require.
My favoured long-term solution would be to move xapian (at least, the
publically exposed parts of xapian) over to using Boost::shared_ptr, and
other smart pointers. This would make it easier to use xapian correctly
from other Boost using C++ projects, and avoid us having to maintain our
own smart pointer implementations, and make it easier to integrate with
the SWIG reference counting support.
However, doing this is probably too major a change to be considered for
1.1, so I suggest postponing until a fictional future 2.0 release.
--
Ticket URL: <http://trac.xapian.org/ticket/186#comment:19>
Xapian <http://xapian.org/>
Xapian
More information about the Xapian-tickets
mailing list