[Xapian-tickets] [Xapian] #280: Review storage of parameters in Query
Xapian
nobody at xapian.org
Fri Jun 27 23:11:45 BST 2008
#280: Review storage of parameters in Query
-------------------------+--------------------------------------------------
Reporter: richard | Owner: olly
Type: enhancement | Status: assigned
Priority: normal | Milestone: 1.1.0
Component: Library API | Version: SVN HEAD
Severity: normal | Resolution:
Keywords: | Blockedby:
Platform: All | Blocking:
-------------------------+--------------------------------------------------
Changes (by olly):
* status: new => assigned
Comment:
I've actually looked at this already.
A union doesn't help as much as you might hope as you can only put POD
types in it. So every object would still need to have a subqs member. If
new operators need a new non-POD type, then every operator pays the price.
Also, every object has to be the same size (unless you under-allocate
space, which is really nasty). And a union is syntactically clumsy for
the "shared" members (not significantly better than just using "parameter"
I feel).
Subclassing is almost certainly the better option, though ideally I think
we want to try to get the internal class out of the external header first.
I've not figured out how that could be done yet though...
--
Ticket URL: <http://trac.xapian.org/ticket/280#comment:1>
Xapian <http://xapian.org/>
Xapian
More information about the Xapian-tickets
mailing list