#include <ContextPool.h>
Public Member Functions | |
| ContextPool () | |
| ContextPool (const int maxCount) | |
| Constructor. | |
| virtual | ~ContextPool () |
| int | contextListSize () const |
| Count of sucessful solver runs. | |
| void | addContext (ResolverContext_Ptr context, const PoolItemList &installItems, const PoolItemList &deleteItems, const PoolItemList &lockUninstalledItems, const PoolItemList &keepItems) |
| Add an additional sucessful solver run. | |
| ResolverContext_Ptr | findContext (PoolItemList &installItems, PoolItemList &deleteItems, const PoolItemList &lockUninstalledItems, const PoolItemList &keepItems) |
| Find a solver result in order to use it for the next solver run. | |
| void | reset () |
| Delete all sucessful solver run. | |
Private Attributes | |
| unsigned | maxContext |
| maximum stored solver results | |
| ResolverContextList | contextList |
| List of sucessful solver runs. | |
Friends | |
| std::ostream & | operator<< (std::ostream &, const ContextPool &contextPool) |
The next sovler run can search an already existing rusult with which he can continue.
Definition at line 61 of file ContextPool.h.
| zypp::solver::detail::ContextPool::ContextPool | ( | ) |
| zypp::solver::detail::ContextPool::ContextPool | ( | const int | maxCount | ) |
Constructor.
| maxCount | maximum stored solver results |
Definition at line 62 of file ContextPool.cc.
References _XDEBUG, and maxContext.
| zypp::solver::detail::ContextPool::~ContextPool | ( | ) | [virtual] |
Definition at line 75 of file ContextPool.cc.
| int zypp::solver::detail::ContextPool::contextListSize | ( | ) | const [inline] |
Count of sucessful solver runs.
Definition at line 89 of file ContextPool.h.
References contextList.
Referenced by zypp::solver::detail::operator<<().
| void zypp::solver::detail::ContextPool::addContext | ( | ResolverContext_Ptr | context, | |
| const PoolItemList & | installItems, | |||
| const PoolItemList & | deleteItems, | |||
| const PoolItemList & | lockUninstalledItems, | |||
| const PoolItemList & | keepItems | |||
| ) |
Add an additional sucessful solver run.
| context | Solver context | |
| installItems | List of items which are selected by the user | |
| deleteItems | List of items which are selected by the user | |
| lockUninstalledItems | List of items which are selected by the user | |
| keepItems | List of items which are selected by the user |
Definition at line 80 of file ContextPool.cc.
References _XDEBUG, contextList, zypp::solver::detail::dumpTaskList(), and maxContext.
| ResolverContext_Ptr zypp::solver::detail::ContextPool::findContext | ( | PoolItemList & | installItems, | |
| PoolItemList & | deleteItems, | |||
| const PoolItemList & | lockUninstalledItems, | |||
| const PoolItemList & | keepItems | |||
| ) |
Find a solver result in order to use it for the next solver run.
| context | Solver context | |
| installItems | List of items which are selected by the user | |
| deleteItems | List of items which are selected by the user | |
| lockUninstalledItems | List of items which are selected by the user | |
| keepItems | List of items which are selected by the user |
Definition at line 229 of file ContextPool.cc.
References _XDEBUG, contextList, and zypp::solver::detail::dumpTaskList().
| void zypp::solver::detail::ContextPool::reset | ( | ) | [inline] |
Delete all sucessful solver run.
Definition at line 124 of file ContextPool.h.
References contextList.
| std::ostream& operator<< | ( | std::ostream & | , | |
| const ContextPool & | contextPool | |||
| ) | [friend] |
unsigned zypp::solver::detail::ContextPool::maxContext [private] |
maximum stored solver results
Definition at line 65 of file ContextPool.h.
Referenced by addContext(), and ContextPool().
List of sucessful solver runs.
Definition at line 67 of file ContextPool.h.
Referenced by addContext(), contextListSize(), findContext(), and reset().
1.5.3