Rewrote PoolQuery::Iterator (adapt to AttrMatcher, fixes and speedup)
authorMichael Andres <ma@suse.de>
Mon, 27 Apr 2009 12:25:57 +0000 (14:25 +0200)
committerMichael Andres <ma@suse.de>
Mon, 27 Apr 2009 12:25:57 +0000 (14:25 +0200)
commitb49b146ac820dfd058d21844e4a4b3d7be5702d3
treed9f06dd8da811c0f331731ebe7689c2a421b5cbc
parenta2463c7864985af3df8d19fa011eab9136fda149
Rewrote PoolQuery::Iterator (adapt to AttrMatcher, fixes and speedup)
- Let PoolQuery use and provide class Match instead of the satsolver
  internal integer flags.
- Deprecated buggy and misused matchFiles/setMatchFiles methods. Instead
  use filesMatchFullPath/filesMatchBasename to define whether filelist
  queries should match full paths or basenames only.
- All query related data were removed from the PoolQueryIterator and are
  now hidden in class PoolQueryMatcher. Now Iterator copies are cheap.
- Make use of the new AttrMatcher now available in the underlying
  LookupAttr::Iterator as well, as in the PoolQueryMatcher.
- Improve queries for multiple attributes. Still slower than searching
  for one attribute, but no longer as complex as an all attribute search.
- Fix and testcase for queries in multiline attributes line summary. The
  old implementation sometimes lost matches.
tests/zypp/PoolQuery_test.cc
zypp/PoolQuery.cc
zypp/PoolQuery.h