Class | Satsolver::Dataiterator |
In: |
satsolver.i
|
Parent: | Object |
This class represents an Iterator for Solvable attributes.
The Dataiterator is the block argument for calls to search which is defined for Pool (search whole Pool) and Repository (limit search to Repository)
pool.search("yast2", Satsolver::SEARCH_STRING) do |di| puts "#{di.solvable} matches 'yast2' in #{di.key.name}: #{di.value}" end
pool.search("/usr/bin/python", Satsolver::SEARCH_STRING|Satsolver::SEARCH_FILES) do |d| puts "#{d.solvable} matches '/usr/bin/python' in #{d.key.name}: #{d.value}" end
repo.search("/usr/bin/python", Satsolver::SEARCH_STRING|Satsolver::SEARCH_FILES) do |d| puts "#{d.solvable} matches '/usr/bin/python' in #{d.key.name}: #{d.value}" end
:nodoc: Complete Dataiterator constructor, to be used via %python in Swig